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:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user