OSDN Git Service

Keyguard: Don't lock when phone process crashes
authorAdrian Roos <roosa@google.com>
Tue, 24 Apr 2018 12:21:39 +0000 (14:21 +0200)
committerAdrian Roos <roosa@google.com>
Tue, 24 Apr 2018 12:21:43 +0000 (14:21 +0200)
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

packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java

index 5993c39..0be3d70 100644 (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;
             }
         }