Merge "Don't allow instant apps to access external storage."

This commit is contained in:
Jeff Sharkey
2019-01-19 17:22:55 +00:00
committed by Android (Google) Code Review

View File

@@ -3669,6 +3669,8 @@ class StorageManagerService extends IStorageManager.Stub
== PERMISSION_GRANTED || mIAppOpsService.checkOperation(
OP_REQUEST_INSTALL_PACKAGES, uid, packageName) == MODE_ALLOWED) {
return Zygote.MOUNT_EXTERNAL_INSTALLER;
} else if (mPmInternal.isInstantApp(packageName, UserHandle.getUserId(uid))) {
return Zygote.MOUNT_EXTERNAL_NONE;
} else {
return Zygote.MOUNT_EXTERNAL_WRITE;
}