Loading core/java/android/app/admin/flags/flags.aconfig +7 −0 Original line number Diff line number Diff line Loading @@ -48,3 +48,10 @@ flag { description: "Update DumpSys to include information about migrated APIs in DPE" bug: "304999634" } flag { name: "quiet_mode_credential_bug_fix" namespace: "enterprise" description: "Guards a bugfix that ends the credential input flow if the managed user has not stopped." bug: "293441361" } services/core/java/com/android/server/pm/UserManagerService.java +13 −0 Original line number Diff line number Diff line Loading @@ -1592,6 +1592,19 @@ public class UserManagerService extends IUserManager.Stub { */ private void showConfirmCredentialToDisableQuietMode( @UserIdInt int userId, @Nullable IntentSender target) { if (android.app.admin.flags.Flags.quietModeCredentialBugFix()) { // TODO (b/308121702) It may be brittle to rely on user states to check profile state int state; synchronized (mUserStates) { state = mUserStates.get(userId, UserState.STATE_NONE); } if (state != UserState.STATE_NONE) { Slog.i(LOG_TAG, "showConfirmCredentialToDisableQuietMode() called too early, user " + userId + " is still alive."); return; } } // otherwise, we show a profile challenge to trigger decryption of the user final KeyguardManager km = (KeyguardManager) mContext.getSystemService( Context.KEYGUARD_SERVICE); Loading Loading
core/java/android/app/admin/flags/flags.aconfig +7 −0 Original line number Diff line number Diff line Loading @@ -48,3 +48,10 @@ flag { description: "Update DumpSys to include information about migrated APIs in DPE" bug: "304999634" } flag { name: "quiet_mode_credential_bug_fix" namespace: "enterprise" description: "Guards a bugfix that ends the credential input flow if the managed user has not stopped." bug: "293441361" }
services/core/java/com/android/server/pm/UserManagerService.java +13 −0 Original line number Diff line number Diff line Loading @@ -1592,6 +1592,19 @@ public class UserManagerService extends IUserManager.Stub { */ private void showConfirmCredentialToDisableQuietMode( @UserIdInt int userId, @Nullable IntentSender target) { if (android.app.admin.flags.Flags.quietModeCredentialBugFix()) { // TODO (b/308121702) It may be brittle to rely on user states to check profile state int state; synchronized (mUserStates) { state = mUserStates.get(userId, UserState.STATE_NONE); } if (state != UserState.STATE_NONE) { Slog.i(LOG_TAG, "showConfirmCredentialToDisableQuietMode() called too early, user " + userId + " is still alive."); return; } } // otherwise, we show a profile challenge to trigger decryption of the user final KeyguardManager km = (KeyguardManager) mContext.getSystemService( Context.KEYGUARD_SERVICE); Loading