summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmilio López <turl@tuxfamily.org>2012-02-26 20:15:32 +0000
committerEmilio López <turl@tuxfamily.org>2012-02-26 20:40:56 +0000
commit87b1801966418e7d244add9af7813dc7b1553198 (patch)
tree5ced05129728dcc74696dfb14ae4ab4c67de27d4
parent9f176fda7efc8726136c3395cab922006f84d010 (diff)
downloadframeworks_base-87b1801966418e7d244add9af7813dc7b1553198.zip
frameworks_base-87b1801966418e7d244add9af7813dc7b1553198.tar.gz
frameworks_base-87b1801966418e7d244add9af7813dc7b1553198.tar.bz2
policy: don't lock users out if they wipe their fingerprint database
If users delete their fingerprint database and proceed to lock the screen, let them in so they can configure another lock method. Also fixes a typo Change-Id: I006a86e5e0f72a3d08d5c0b3a96cc659fecbeede
-rw-r--r--policy/src/com/android/internal/policy/impl/FingerUnlockScreen.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/policy/src/com/android/internal/policy/impl/FingerUnlockScreen.java b/policy/src/com/android/internal/policy/impl/FingerUnlockScreen.java
index eab7e77..d658280 100644
--- a/policy/src/com/android/internal/policy/impl/FingerUnlockScreen.java
+++ b/policy/src/com/android/internal/policy/impl/FingerUnlockScreen.java
@@ -924,6 +924,12 @@ class FingerUnlockScreen extends LinearLayoutWithDefaultTouchRecepient
try {
switch (iResult) {
+ case AuthentecHelper.eAM_STATUS_NO_STORED_CREDENTIAL:
+ // Might happen if the user wipes their database
+ // and the fingerprint unlock method remains active.
+ // Let it continue with the OK case so screen unlocks
+ if (DEBUG) Log.d(TAG,"No stored credential");
+
case AuthentecHelper.eAM_STATUS_OK:
m_bVerifyied = true;
if (DEBUG) Log.d(TAG,"keyguardDone, m_bVerifyied=" + m_bVerifyied);
@@ -942,12 +948,6 @@ class FingerUnlockScreen extends LinearLayoutWithDefaultTouchRecepient
bRetryAfterLockout = true;
break;
- case AuthentecHelper.eAM_STATUS_NO_STORED_CREDENTIAL:
- // Should never happen.
- if (DEBUG) Log.d(TAG,"No stored credential");
- bRetryAfterLockout = true;
- break;
-
case AuthentecHelper.eAM_STATUS_LIBRARY_NOT_AVAILABLE:
Log.e(TAG, "Library failed to load... cannot proceed!");
bRetryAfterLockout = true;
@@ -964,7 +964,7 @@ class FingerUnlockScreen extends LinearLayoutWithDefaultTouchRecepient
break;
case AuthentecHelper.eAM_STATUS_UNKNOWN_ERROR:
- Log.e(TAG, "Unkown error!");
+ Log.e(TAG, "Unknown error!");
bRetryAfterLockout = true;
break;