summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorBryce Lee <brycelee@google.com>2015-12-14 14:39:10 -0800
committerBryce Lee <brycelee@google.com>2015-12-14 14:39:10 -0800
commit4614596a395b6c86fff3f35a07edda2e848d743c (patch)
treead430b0f95f5eb0ad517071090def35f6b3ef65a /services
parent3c67873f0a20a958f6cf1ccccb472fa050bf55b7 (diff)
downloadframeworks_base-4614596a395b6c86fff3f35a07edda2e848d743c.zip
frameworks_base-4614596a395b6c86fff3f35a07edda2e848d743c.tar.gz
frameworks_base-4614596a395b6c86fff3f35a07edda2e848d743c.tar.bz2
Allow access to deprecated LOCK_PATTERN_ENABLED flag.
It is possible that older platforms may have not cleared the lock pattern, but instead only checked this flag to determine the lock pattern enabled state. In such cases, upgrading to a platform with that only checks the lock pattern can lead to the lock screen being re-enabled by accident. These new methods allow this condition to be identified and resolved. Bug: 26029690 Change-Id: I8f7ebc0e1915049afe49c219c87010aa38a16244
Diffstat (limited to 'services')
-rw-r--r--services/core/java/com/android/server/LockSettingsService.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/services/core/java/com/android/server/LockSettingsService.java b/services/core/java/com/android/server/LockSettingsService.java
index f1d7da4..45e7b5e 100644
--- a/services/core/java/com/android/server/LockSettingsService.java
+++ b/services/core/java/com/android/server/LockSettingsService.java
@@ -350,6 +350,10 @@ public class LockSettingsService extends ILockSettings.Stub {
}
}
+ if (LockPatternUtils.LEGACY_LOCK_PATTERN_ENABLED.equals(key)) {
+ key = Settings.Secure.LOCK_PATTERN_ENABLED;
+ }
+
return mStorage.readKeyValue(key, defaultValue, userId);
}