Merge "Fix 4993068: Don't check password history when dpm sets the password"

This commit is contained in:
Jim Miller
2011-08-22 13:28:54 -07:00
committed by Android (Google) Code Review

View File

@@ -1556,13 +1556,6 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub {
return false;
}
}
LockPatternUtils utils = new LockPatternUtils(mContext);
if(utils.checkPasswordHistory(password)) {
Slog.w(TAG, "resetPassword: password is the same as one of the last "
+ getPasswordHistoryLength(null) + " passwords");
return false;
}
}
int callingUid = Binder.getCallingUid();