Use StorageManager.isFileEncrypted() instead of deprecated methods

Since emulated FBE is no longer supported, isFileEncryptedNativeOnly()
and isFileEncryptedNativeOrEmulated() are the same as the new method
isFileEncrypted().  Replace all calls to these deprecated methods in
this repository with isFileEncrypted().

Bug: 232458753
Change-Id: I95beea86ef771396c2e08f2d6a643fdc629ad89f
This commit is contained in:
Eric Biggers
2022-06-10 17:29:31 +00:00
parent b16b5b5476
commit ff16ec8542
8 changed files with 20 additions and 20 deletions

View File

@@ -131,7 +131,7 @@ public class BiometricUtils {
if (WizardManagerHelper.isAnySetupWizard(activityIntent)) {
// Default to PIN lock in setup wizard
Intent intent = new Intent(context, SetupChooseLockGeneric.class);
if (StorageManager.isFileEncryptedNativeOrEmulated()) {
if (StorageManager.isFileEncrypted()) {
intent.putExtra(
LockPatternUtils.PASSWORD_TYPE_KEY,
DevicePolicyManager.PASSWORD_QUALITY_NUMERIC);