Don't toggle app state for updated system apps.
authorJeff Davidson <jpd@google.com>
Tue, 7 Jul 2015 20:29:07 +0000 (13:29 -0700)
committerJeff Davidson <jpd@google.com>
Tue, 7 Jul 2015 22:09:10 +0000 (15:09 -0700)
commit286fc2211b36fb3b7766f2a8e090b356427c2bc1
tree268c8244c1482d643e540ddb9564c7d5927e6e24
parent1d744e15a15081c74b96513ed1cc95a1739087bb
Don't toggle app state for updated system apps.

The default carrier app logic to disable/enable apps depending on the
SIM state should only apply to the copy of the app on /system. Once
the app has been updated via /data, we should leave the enabled
setting as the default (though we should still grant carrier
privileges as needed in this case).

Otherwise we may unexpectedly disable a previously enabled app if it
is updated and then the SIM state changes or device reboots at a time
when the SIM isn't loaded.

Bug: 22321187
Change-Id: Ia7281c5a174bd32fc4d63375603ace0b29794894
src/java/com/android/internal/telephony/CarrierAppUtils.java
tests/telephonytests/src/com/android/internal/telephony/CarrierAppUtilsTest.java