Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 62cb5ce2 authored by Jeff Sharkey's avatar Jeff Sharkey Committed by Android (Google) Code Review
Browse files

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

parents 5985ddbf 0f26cbde
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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;
            }