summaryrefslogtreecommitdiffstats
path: root/core/java
diff options
context:
space:
mode:
authorAmith Yamasani <yamasani@google.com>2014-10-17 18:58:58 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-10-17 18:58:58 +0000
commit3de84d0de63387c252ef790b4afaf29012cc0bf7 (patch)
tree61508b05078c4e71750463577d16f6fddc72651c /core/java
parent70d0ca89d16d07d7e0edb100a429793e1fec0f0c (diff)
parenta865bb5df834194dee339db615c17d7c7b63aaa3 (diff)
downloadframeworks_base-3de84d0de63387c252ef790b4afaf29012cc0bf7.zip
frameworks_base-3de84d0de63387c252ef790b4afaf29012cc0bf7.tar.gz
frameworks_base-3de84d0de63387c252ef790b4afaf29012cc0bf7.tar.bz2
am a865bb5d: Merge "Use the correct method to check if device is encrypted" into lmp-dev
* commit 'a865bb5df834194dee339db615c17d7c7b63aaa3': Use the correct method to check if device is encrypted
Diffstat (limited to 'core/java')
-rw-r--r--core/java/com/android/internal/widget/LockPatternUtils.java5
1 files changed, 1 insertions, 4 deletions
diff --git a/core/java/com/android/internal/widget/LockPatternUtils.java b/core/java/com/android/internal/widget/LockPatternUtils.java
index 9a1c9fc..412b4d2 100644
--- a/core/java/com/android/internal/widget/LockPatternUtils.java
+++ b/core/java/com/android/internal/widget/LockPatternUtils.java
@@ -728,12 +728,9 @@ public class LockPatternUtils {
/** Update the encryption password if it is enabled **/
private void updateEncryptionPassword(final int type, final String password) {
- DevicePolicyManager dpm = getDevicePolicyManager();
- if (dpm.getStorageEncryptionStatus(getCurrentOrCallingUserId())
- != DevicePolicyManager.ENCRYPTION_STATUS_ACTIVE) {
+ if (!isDeviceEncryptionEnabled()) {
return;
}
-
final IBinder service = ServiceManager.getService("mount");
if (service == null) {
Log.e(TAG, "Could not find the mount service to update the encryption password");