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

@@ -30,7 +30,7 @@ public class ShadowStorageManager {
private static boolean sIsUnmountCalled;
private static boolean sIsForgetCalled;
private static boolean sIsFileEncryptedNativeOrEmulated = true;
private static boolean sIsFileEncrypted = true;
public static boolean isUnmountCalled() {
return sIsUnmountCalled;
@@ -44,7 +44,7 @@ public class ShadowStorageManager {
public static void reset() {
sIsUnmountCalled = false;
sIsForgetCalled = false;
sIsFileEncryptedNativeOrEmulated = true;
sIsFileEncrypted = true;
}
@Implementation
@@ -73,12 +73,12 @@ public class ShadowStorageManager {
}
@Implementation
protected static boolean isFileEncryptedNativeOrEmulated() {
return sIsFileEncryptedNativeOrEmulated;
protected static boolean isFileEncrypted() {
return sIsFileEncrypted;
}
public static void setIsFileEncryptedNativeOrEmulated(boolean encrypted) {
sIsFileEncryptedNativeOrEmulated = encrypted;
public static void setIsFileEncrypted(boolean encrypted) {
sIsFileEncrypted = encrypted;
}
private VolumeInfo createVolumeInfo(String volumeId) {