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

Commit 8ee26edf authored by Roman Birg's avatar Roman Birg
Browse files

DevicePolicyManager: synchronize calls to internal methods



Change-Id: I8711c4fa73801d1cdeb754d2b667898c92383fef
Signed-off-by: default avatarRoman Birg <roman@cyngn.com>
parent 8d45da87
Loading
Loading
Loading
Loading
+10 −8
Original line number Diff line number Diff line
@@ -2740,6 +2740,7 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub {
            return false;
        }

        synchronized (this) {
            int passwordQuality = getPasswordQuality(null, userHandle);
            if (passwordQuality > DevicePolicyManager.PASSWORD_QUALITY_UNSPECIFIED) {
                return true;
@@ -2750,6 +2751,7 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub {
                    || encryptionStatus == DevicePolicyManager.ENCRYPTION_STATUS_ACTIVATING) {
                return true;
            }
        }

        // Keystore.isEmpty() requires system UID
        long token = Binder.clearCallingIdentity();