diff options
author | Amith Yamasani <yamasani@google.com> | 2014-10-17 18:58:58 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-10-17 18:58:58 +0000 |
commit | 3de84d0de63387c252ef790b4afaf29012cc0bf7 (patch) | |
tree | 61508b05078c4e71750463577d16f6fddc72651c /core/java | |
parent | 70d0ca89d16d07d7e0edb100a429793e1fec0f0c (diff) | |
parent | a865bb5df834194dee339db615c17d7c7b63aaa3 (diff) | |
download | frameworks_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.java | 5 |
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"); |