Merge "Do not call into vold when the device is not block encrypted"

This commit is contained in:
TreeHugger Robot
2019-02-28 07:06:45 +00:00
committed by Android (Google) Code Review

View File

@@ -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;
}