From 0a9389d296636a3c8322381ff859b3527753bcc2 Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Wed, 26 Jan 2022 05:19:25 +0000 Subject: [PATCH] Remove clearEncryptionPassword() from LockPatternUtils Remove this method which cleared the FDE password, since is no longer used. It was only being used by the accessibility settings in the Settings app, and that caller was removed by http://ag/16624515. Bug: 208476087 Change-Id: If0c75774555d3503f21857e66cce527c5edfa586 (cherry picked from commit 8e265a9fd375625f7585a5deae6f0544624cbabb) Merged-In: If0c75774555d3503f21857e66cce527c5edfa586 --- .../com/android/internal/widget/LockPatternUtils.java | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/core/java/com/android/internal/widget/LockPatternUtils.java b/core/java/com/android/internal/widget/LockPatternUtils.java index 3923febe17dae..408decc9ca569 100644 --- a/core/java/com/android/internal/widget/LockPatternUtils.java +++ b/core/java/com/android/internal/widget/LockPatternUtils.java @@ -762,17 +762,6 @@ public class LockPatternUtils { return StorageManager.isFileEncryptedNativeOrEmulated(); } - /** - * Clears the encryption password. - */ - public void clearEncryptionPassword() { - try { - getLockSettings().updateEncryptionPassword(StorageManager.CRYPT_TYPE_DEFAULT, null); - } catch (RemoteException e) { - Log.e(TAG, "Couldn't clear encryption password"); - } - } - /** * Retrieves the quality mode for {@code userHandle}. * @see DevicePolicyManager#getPasswordQuality(android.content.ComponentName)