From 525ca53b4fad0bb0a344188518f6567c841a0961 Mon Sep 17 00:00:00 2001 From: Jim Miller Date: Fri, 3 Jun 2016 18:39:16 -0700 Subject: [PATCH] Move legacy full disk encryption code to Settings. Fixes bug 27617297 Change-Id: I59455cc1fc46949348d2922834724ab40c14f886 --- .../internal/widget/LockPatternUtils.java | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/core/java/com/android/internal/widget/LockPatternUtils.java b/core/java/com/android/internal/widget/LockPatternUtils.java index 70941b6c300bd..9e8a25cbddb98 100644 --- a/core/java/com/android/internal/widget/LockPatternUtils.java +++ b/core/java/com/android/internal/widget/LockPatternUtils.java @@ -903,23 +903,6 @@ public class LockPatternUtils { } } - /** - * Gets whether the device is encrypted. - * - * @return Whether the device is encrypted. - */ - public static boolean isDeviceEncrypted() { - IMountService mountService = IMountService.Stub.asInterface( - ServiceManager.getService("mount")); - try { - return mountService.getEncryptionState() != IMountService.ENCRYPTION_STATE_NONE - && mountService.getPasswordType() != StorageManager.CRYPT_TYPE_DEFAULT; - } catch (RemoteException re) { - Log.e(TAG, "Error getting encryption state", re); - } - return true; - } - /** * Determine if the device supports encryption, even if it's set to default. This * differs from isDeviceEncrypted() in that it returns true even if the device is