Loading packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java +0 −5 Original line number Diff line number Diff line Loading @@ -841,11 +841,6 @@ public class KeyguardViewMediator extends SystemUI { synchronized (this) { if (DEBUG) Log.d(TAG, "setKeyguardEnabled(" + enabled + ")"); if (isSecure()) { Log.d(TAG, "current mode is SecurityMode, ignore hide keyguard"); return; } mExternallyEnabled = enabled; if (!enabled && mShowing) { Loading services/core/java/com/android/server/wm/WindowManagerService.java +6 −0 Original line number Diff line number Diff line Loading @@ -5363,6 +5363,12 @@ public class WindowManagerService extends IWindowManager.Stub != PackageManager.PERMISSION_GRANTED) { throw new SecurityException("Requires DISABLE_KEYGUARD permission"); } // If this isn't coming from the system then don't allow disabling the lockscreen // to bypass security. if (Binder.getCallingUid() != Process.SYSTEM_UID && isKeyguardSecure()) { Log.d(TAG, "current mode is SecurityMode, ignore hide keyguard"); return; } if (token == null) { throw new IllegalArgumentException("token == null"); Loading Loading
packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java +0 −5 Original line number Diff line number Diff line Loading @@ -841,11 +841,6 @@ public class KeyguardViewMediator extends SystemUI { synchronized (this) { if (DEBUG) Log.d(TAG, "setKeyguardEnabled(" + enabled + ")"); if (isSecure()) { Log.d(TAG, "current mode is SecurityMode, ignore hide keyguard"); return; } mExternallyEnabled = enabled; if (!enabled && mShowing) { Loading
services/core/java/com/android/server/wm/WindowManagerService.java +6 −0 Original line number Diff line number Diff line Loading @@ -5363,6 +5363,12 @@ public class WindowManagerService extends IWindowManager.Stub != PackageManager.PERMISSION_GRANTED) { throw new SecurityException("Requires DISABLE_KEYGUARD permission"); } // If this isn't coming from the system then don't allow disabling the lockscreen // to bypass security. if (Binder.getCallingUid() != Process.SYSTEM_UID && isKeyguardSecure()) { Log.d(TAG, "current mode is SecurityMode, ignore hide keyguard"); return; } if (token == null) { throw new IllegalArgumentException("token == null"); Loading