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

Commit ac1da481 authored by Jim Miller's avatar Jim Miller Committed by Android Git Automerger
Browse files

am f873f9ab: am bd5b61c4: Merge "Fingerprint should throttle after 5 attempts" into mnc-dr-dev

* commit 'f873f9ab':
  Fingerprint should throttle after 5 attempts
parents 7f15432f f873f9ab
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -259,7 +259,7 @@ public class FingerprintService extends SystemService implements IBinder.DeathRe
    }

    private boolean inLockoutMode() {
        return mFailedAttempts > MAX_FAILED_ATTEMPTS;
        return mFailedAttempts >= MAX_FAILED_ATTEMPTS;
    }

    private void resetFailedAttempts() {
@@ -275,7 +275,7 @@ public class FingerprintService extends SystemService implements IBinder.DeathRe

    private boolean handleFailedAttempt(ClientMonitor clientMonitor) {
        mFailedAttempts++;
        if (mFailedAttempts > MAX_FAILED_ATTEMPTS) {
        if (inLockoutMode()) {
            // Failing multiple times will continue to push out the lockout time.
            mHandler.removeCallbacks(mLockoutReset);
            mHandler.postDelayed(mLockoutReset, FAIL_LOCKOUT_TIMEOUT_MS);