Merge "Do not call into vold when the device is not block encrypted"
This commit is contained in:
committed by
Android (Google) Code Review
commit
586d0f3315
@@ -2661,8 +2661,8 @@ class StorageManagerService extends IStorageManager.Stub
|
||||
mContext.enforceCallingOrSelfPermission(Manifest.permission.CRYPT_KEEPER,
|
||||
"no permission to access the crypt keeper");
|
||||
|
||||
if (StorageManager.isFileEncryptedNativeOnly()) {
|
||||
// Not supported on FBE devices
|
||||
if (!StorageManager.isBlockEncrypted()) {
|
||||
// Only supported on FDE devices
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -2685,8 +2685,8 @@ class StorageManagerService extends IStorageManager.Stub
|
||||
mContext.enforceCallingOrSelfPermission(Manifest.permission.CRYPT_KEEPER,
|
||||
"no permission to access the crypt keeper");
|
||||
|
||||
if (StorageManager.isFileEncryptedNativeOnly()) {
|
||||
// Not supported on FBE devices
|
||||
if (!StorageManager.isBlockEncrypted()) {
|
||||
// Only supported on FDE devices
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user