From 804f499fda954080f69c0ae93512f129bb0cfaab Mon Sep 17 00:00:00 2001 From: Brian Carlstrom Date: Thu, 2 Jun 2011 16:21:55 -0700 Subject: [PATCH] KeyStore.reset changes 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 | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cmds/keystore/keystore.cpp b/cmds/keystore/keystore.cpp index 31db9fdc1..b48be6ef3 100644 --- a/cmds/keystore/keystore.cpp +++ b/cmds/keystore/keystore.cpp @@ -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;