Loading services/core/java/com/android/server/am/ActivityStarter.java +4 −0 Original line number Diff line number Diff line Loading @@ -620,6 +620,10 @@ class ActivityStarter { .getSystemService(Context.KEYGUARD_SERVICE); final Intent credential = km.createConfirmDeviceCredentialIntent(null, null, userId); // For safety, check null here in case users changed the setting after the checking. if (credential == null) { return; } final ActivityRecord activityRecord = targetStack.topRunningActivityLocked(); if (activityRecord != null) { final IIntentSender target = mService.getIntentSenderLocked( Loading services/core/java/com/android/server/am/UserController.java +1 −1 Original line number Diff line number Diff line Loading @@ -1468,7 +1468,7 @@ final class UserController { } final KeyguardManager km = (KeyguardManager) mService.mContext .getSystemService(KEYGUARD_SERVICE); return km.isDeviceLocked(userId); return km.isDeviceLocked(userId) && km.isDeviceSecure(userId); } boolean isLockScreenDisabled(@UserIdInt int userId) { Loading Loading
services/core/java/com/android/server/am/ActivityStarter.java +4 −0 Original line number Diff line number Diff line Loading @@ -620,6 +620,10 @@ class ActivityStarter { .getSystemService(Context.KEYGUARD_SERVICE); final Intent credential = km.createConfirmDeviceCredentialIntent(null, null, userId); // For safety, check null here in case users changed the setting after the checking. if (credential == null) { return; } final ActivityRecord activityRecord = targetStack.topRunningActivityLocked(); if (activityRecord != null) { final IIntentSender target = mService.getIntentSenderLocked( Loading
services/core/java/com/android/server/am/UserController.java +1 −1 Original line number Diff line number Diff line Loading @@ -1468,7 +1468,7 @@ final class UserController { } final KeyguardManager km = (KeyguardManager) mService.mContext .getSystemService(KEYGUARD_SERVICE); return km.isDeviceLocked(userId); return km.isDeviceLocked(userId) && km.isDeviceSecure(userId); } boolean isLockScreenDisabled(@UserIdInt int userId) { Loading