Loading services/core/java/com/android/server/fingerprint/FingerprintService.java +2 −2 Original line number Original line Diff line number Diff line Loading @@ -259,7 +259,7 @@ public class FingerprintService extends SystemService implements IBinder.DeathRe } } private boolean inLockoutMode() { private boolean inLockoutMode() { return mFailedAttempts > MAX_FAILED_ATTEMPTS; return mFailedAttempts >= MAX_FAILED_ATTEMPTS; } } private void resetFailedAttempts() { private void resetFailedAttempts() { Loading @@ -275,7 +275,7 @@ public class FingerprintService extends SystemService implements IBinder.DeathRe private boolean handleFailedAttempt(ClientMonitor clientMonitor) { private boolean handleFailedAttempt(ClientMonitor clientMonitor) { mFailedAttempts++; mFailedAttempts++; if (mFailedAttempts > MAX_FAILED_ATTEMPTS) { if (inLockoutMode()) { // Failing multiple times will continue to push out the lockout time. // Failing multiple times will continue to push out the lockout time. mHandler.removeCallbacks(mLockoutReset); mHandler.removeCallbacks(mLockoutReset); mHandler.postDelayed(mLockoutReset, FAIL_LOCKOUT_TIMEOUT_MS); mHandler.postDelayed(mLockoutReset, FAIL_LOCKOUT_TIMEOUT_MS); Loading Loading
services/core/java/com/android/server/fingerprint/FingerprintService.java +2 −2 Original line number Original line Diff line number Diff line Loading @@ -259,7 +259,7 @@ public class FingerprintService extends SystemService implements IBinder.DeathRe } } private boolean inLockoutMode() { private boolean inLockoutMode() { return mFailedAttempts > MAX_FAILED_ATTEMPTS; return mFailedAttempts >= MAX_FAILED_ATTEMPTS; } } private void resetFailedAttempts() { private void resetFailedAttempts() { Loading @@ -275,7 +275,7 @@ public class FingerprintService extends SystemService implements IBinder.DeathRe private boolean handleFailedAttempt(ClientMonitor clientMonitor) { private boolean handleFailedAttempt(ClientMonitor clientMonitor) { mFailedAttempts++; mFailedAttempts++; if (mFailedAttempts > MAX_FAILED_ATTEMPTS) { if (inLockoutMode()) { // Failing multiple times will continue to push out the lockout time. // Failing multiple times will continue to push out the lockout time. mHandler.removeCallbacks(mLockoutReset); mHandler.removeCallbacks(mLockoutReset); mHandler.postDelayed(mLockoutReset, FAIL_LOCKOUT_TIMEOUT_MS); mHandler.postDelayed(mLockoutReset, FAIL_LOCKOUT_TIMEOUT_MS); Loading