Merge "DO NOT MERGE Clear calling identity before checking if user is running." into nyc-dev
This commit is contained in:
@@ -3653,7 +3653,12 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub {
|
||||
|
||||
private boolean isActivePasswordSufficientForUserLocked(
|
||||
DevicePolicyData policy, int userHandle, boolean parent) {
|
||||
enforceUserUnlocked(userHandle, parent);
|
||||
final long id = Binder.clearCallingIdentity();
|
||||
try {
|
||||
enforceUserUnlocked(userHandle, parent);
|
||||
} finally {
|
||||
Binder.restoreCallingIdentity(id);
|
||||
}
|
||||
|
||||
if (policy.mActivePasswordQuality < getPasswordQuality(null, userHandle, parent)
|
||||
|| policy.mActivePasswordLength < getPasswordMinimumLength(
|
||||
|
||||
Reference in New Issue
Block a user