OSDN Git Service

Reduce number of attempts before factory reset to 30.
authorPaul Crowley <paulcrowley@google.com>
Fri, 21 Nov 2014 09:43:17 +0000 (09:43 +0000)
committerPaul Crowley <paulcrowley@google.com>
Fri, 21 Nov 2014 09:44:09 +0000 (09:44 +0000)
Bug: 18292029

Change-Id: I2a78775d0505a3064838443ea631fee0ad612e5c

src/com/android/settings/CryptKeeper.java

index f386abb..f08ed5a 100644 (file)
@@ -95,7 +95,7 @@ public class CryptKeeper extends Activity implements TextView.OnEditorActionList
     private static final int MESSAGE_NOTIFY = 2;
 
     // Constants used to control policy.
-    private static final int MAX_FAILED_ATTEMPTS = 100;
+    private static final int MAX_FAILED_ATTEMPTS = 30;
     private static final int COOL_DOWN_ATTEMPTS = 10;
 
     // Intent action for launching the Emergency Dialer activity.