Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 70eaef41 authored by Robin Lee's avatar Robin Lee Committed by Android (Google) Code Review
Browse files

Merge "Send pwchange broadcast to caller only in FBE case"

parents 3aa58c9e ee3a4374
Loading
Loading
Loading
Loading
+11 −3
Original line number Diff line number Diff line
@@ -3897,10 +3897,18 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub {
                saveSettingsLocked(userHandle);
                updatePasswordExpirationsLocked(userHandle);
                setExpirationAlarmCheckLocked(mContext, policy);

                // Send a broadcast to each profile using this password as its primary unlock.
                if (LockPatternUtils.isSeparateWorkChallengeEnabled()) {
                    sendAdminCommandLocked(
                            DeviceAdminReceiver.ACTION_PASSWORD_CHANGED,
                            DeviceAdminInfo.USES_POLICY_LIMIT_PASSWORD, userHandle);
                } else {
                    sendAdminCommandToSelfAndProfilesLocked(
                            DeviceAdminReceiver.ACTION_PASSWORD_CHANGED,
                            DeviceAdminInfo.USES_POLICY_LIMIT_PASSWORD, userHandle);
                }
            }
        } finally {
            mInjector.binderRestoreCallingIdentity(ident);
        }