Keyguard: Don't lock when phone process crashes

Fixed an issue where the keyguard locked in response to the
phone process crashing. Since that's not avoidable for the
moment, don't treat unknown sim states as absent.

Bug: 78060670
Test: adb shell kill `pid com.android.phone`; verify that the phone did not lock
Change-Id: Ic5aa51d3b0521740b828d934c6653f8d5ae6380a
This commit is contained in:
Adrian Roos
2018-04-24 14:21:39 +02:00
parent bbfe498aef
commit 6628d74eb4

View File

@@ -502,9 +502,6 @@ public class KeyguardViewMediator extends SystemUI {
break;
default:
if (DEBUG_SIM_STATES) Log.v(TAG, "Unspecific state: " + simState);
synchronized (KeyguardViewMediator.this) {
onSimAbsentLocked();
}
break;
}
}