OSDN Git Service

KeyStore.reset changes
authorBrian Carlstrom <bdc@google.com>
Thu, 2 Jun 2011 23:21:55 +0000 (16:21 -0700)
committerBrian Carlstrom <bdc@google.com>
Thu, 2 Jun 2011 23:24:45 +0000 (16:24 -0700)
restore keystore reset behavior of removing master key.
otherwise after reboot keystore has is LOCKED and not UNINITIALIZED
cmds/keystore/keystore.cpp

when removing password, reset the keystore, so it doesn't remain
locked with a now bogus password.

core/java/com/android/internal/widget/LockPatternUtils.java

Change-Id: If5e0bb50b42599e9ca27a8b91d6cec12528419a1

cmds/keystore/keystore.cpp

index 31db9fd..b48be6e 100644 (file)
@@ -392,9 +392,7 @@ public:
             return false;
         }
         while ((file = readdir(dir)) != NULL) {
-            if (isKeyFile(file->d_name)) {
-                unlink(file->d_name);
-            }
+            unlink(file->d_name);
         }
         closedir(dir);
         return true;