From aa24906de299b392a3aa8576d3f0df77089f53c2 Mon Sep 17 00:00:00 2001 From: Uriel Rodriguez Date: Wed, 13 Jun 2012 17:30:13 -0400 Subject: [PATCH] BUG 5457035: lowering max FUL failed attempts to 3 After an unrecognized face occurs 3 times in a row, we disable FUL until the user unlocks via the backup lock. Lowering this values makes spoofing with liveliness enabled more difficult. Since we currently don't differentiate between the max number attempts with and without liveliness enabled, we had to lower it for all uses of FUL. Change-Id: I7a429f64cde2767ddd2ceb0885343acd0b802aac --- .../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 18b8042179047..87ec16b234199 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 = 5; + private static final int FAILED_BIOMETRIC_UNLOCK_ATTEMPTS_BEFORE_BACKUP = 3; private boolean mClockVisible;