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

Commit 95254800 authored by Jim Miller's avatar Jim Miller Committed by Android (Google) Code Review
Browse files

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

parents cf508bd5 0191bba1
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -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();