Merge "DO NOT MERGE Clear calling identity before checking if user is running." into nyc-dev am: 2df7f9f9c0 am: c5d86736d3 am: 00b77edec0
am: 11c5ff0399
Change-Id: I649c06ea01b23db5668fa0694528cffd823b8d7b
This commit is contained in:
@@ -3809,7 +3809,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);
|
||||
}
|
||||
|
||||
final int requiredPasswordQuality = getPasswordQuality(null, userHandle, parent);
|
||||
if (policy.mActivePasswordQuality < requiredPasswordQuality) {
|
||||
|
||||
Reference in New Issue
Block a user