Skip to content

Commit ffefd0f

Browse files
author
Brian Colonna
committed
Fix 6283709: set max FUL failed attempts to 5
After an unrecognized face occurs 5 times in a row, we disable FUL until the user unlocks via the backup lock. This prevents attacks where someone tries a bunch of different photos, hoping for a good enough match to the device's owner. This value was previously set to 15, which is much higher than necessary. This change sets it to 5. We've been holding off on this change because it makes our testing more difficult, but we want this in there for factory ROM this week. Change-Id: I4e1acc5b1dcc2c0629e0c0fe97a837d6edc44d5d
1 parent 0d607fb commit ffefd0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

policy/src/com/android/internal/policy/impl/KeyguardUpdateMonitor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public class KeyguardUpdateMonitor {
8181

8282
private int mFailedAttempts = 0;
8383
private int mFailedBiometricUnlockAttempts = 0;
84-
private static final int FAILED_BIOMETRIC_UNLOCK_ATTEMPTS_BEFORE_BACKUP = 15;
84+
private static final int FAILED_BIOMETRIC_UNLOCK_ATTEMPTS_BEFORE_BACKUP = 5;
8585

8686
private boolean mClockVisible;
8787

0 commit comments

Comments
 (0)