Fix some sign in errors.
AccountManagerService.SimWatcher was checking if storedImsi = "initial" instead of null as an initial condition. Also, on NV-only CDMA devices we were only sending SIM_STATE_CHANGED notifications when the radio powered down, which meant storedImsi was only initialized if the radio powered down.
This commit is contained in:
@@ -1397,7 +1397,7 @@ public class AccountManagerService extends IAccountManager.Stub {
|
||||
Log.v(TAG, "current IMSI=" + imsi + "; stored IMSI=" + storedImsi);
|
||||
}
|
||||
|
||||
if (!imsi.equals(storedImsi) && !"initial".equals(storedImsi)) {
|
||||
if (!imsi.equals(storedImsi) && !TextUtils.isEmpty(storedImsi)) {
|
||||
if (Log.isLoggable(TAG, Log.VERBOSE)) {
|
||||
Log.v(TAG, "wiping all passwords and authtokens");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user