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

Commit 0f26cbde authored by Sudheer Shanka's avatar Sudheer Shanka
Browse files

Don't allow instant apps to access external storage.

Fixes: 122866463
Test: manual
Change-Id: Iecd8f19adf960041e9e2731f5abe12ad5b7dff89
parent bf62afc1
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -3656,6 +3656,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;
            }