From ffefd0fdd1baa66665ed6195b2adeb0e1e3bb7e4 Mon Sep 17 00:00:00 2001 From: Brian Colonna Date: Mon, 14 May 2012 10:34:08 -0400 Subject: [PATCH] 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 --- .../com/android/internal/policy/impl/KeyguardUpdateMonitor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/policy/src/com/android/internal/policy/impl/KeyguardUpdateMonitor.java b/policy/src/com/android/internal/policy/impl/KeyguardUpdateMonitor.java index 7238fdf2e9998..18b8042179047 100644 --- a/policy/src/com/android/internal/policy/impl/KeyguardUpdateMonitor.java +++ b/policy/src/com/android/internal/policy/impl/KeyguardUpdateMonitor.java @@ -81,7 +81,7 @@ public class KeyguardUpdateMonitor { private int mFailedAttempts = 0; private int mFailedBiometricUnlockAttempts = 0; - private static final int FAILED_BIOMETRIC_UNLOCK_ATTEMPTS_BEFORE_BACKUP = 15; + private static final int FAILED_BIOMETRIC_UNLOCK_ATTEMPTS_BEFORE_BACKUP = 5; private boolean mClockVisible;