diff options
| author | 2023-10-04 19:25:24 +0000 | |
|---|---|---|
| committer | 2023-10-04 19:25:24 +0000 | |
| commit | 98df1c6e3f8804254c9a0d6f88d65b822db96c74 (patch) | |
| tree | 4304e10ae00e1c6f26dc687a4504205884a59dc1 | |
| parent | ca34073d93570ae83f26b7d098f37d57d37be7ee (diff) | |
| parent | 031d34974d1e9e8450256ae7b6c14d388e467ac1 (diff) | |
Merge "Updated: always show the keyguard on device lockdown" into rvc-dev am: 031d34974d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/24805807
Change-Id: Id2b4f9656cad815cb7a94d6fdacd0dc6c50013f3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java b/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java index f6370cf4fc7b..c93fa62b15e2 100644 --- a/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java +++ b/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java @@ -561,6 +561,13 @@ public class KeyguardViewMediator extends SystemUI implements Dumpable { } @Override + public void onStrongAuthStateChanged(int userId) { + if (mLockPatternUtils.isUserInLockdown(KeyguardUpdateMonitor.getCurrentUser())) { + doKeyguardLocked(null); + } + } + + @Override public void onTrustChanged(int userId) { if (userId == KeyguardUpdateMonitor.getCurrentUser()) { synchronized (KeyguardViewMediator.this) { @@ -1148,6 +1155,10 @@ public class KeyguardViewMediator extends SystemUI implements Dumpable { mExternallyEnabled = enabled; if (!enabled && mShowing) { + if (mLockPatternUtils.isUserInLockdown(KeyguardUpdateMonitor.getCurrentUser())) { + Log.d(TAG, "keyguardEnabled(false) overridden by user lockdown"); + return; + } if (mExitSecureCallback != null) { if (DEBUG) Log.d(TAG, "in process of verifyUnlock request, ignoring"); // we're in the process of handling a request to verify the user @@ -1359,8 +1370,9 @@ public class KeyguardViewMediator extends SystemUI implements Dumpable { return; } - // if another app is disabling us, don't show - if (!mExternallyEnabled) { + // if another app is disabling us, don't show unless we're in lockdown mode + if (!mExternallyEnabled + && !mLockPatternUtils.isUserInLockdown(KeyguardUpdateMonitor.getCurrentUser())) { if (DEBUG) Log.d(TAG, "doKeyguard: not showing because externally disabled"); mNeedToReshowWhenReenabled = true; |