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

Commit 849b889b authored by Martijn Coenen's avatar Martijn Coenen Committed by Android (Google) Code Review
Browse files

Merge "Clear calling identity when determining instant app status."

parents 2934dc3d 7c01c22c
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -4369,9 +4369,14 @@ class StorageManagerService extends IStorageManager.Stub
                packageName = packagesForUid[0];
            }

            final long token = Binder.clearCallingIdentity();
            try {
                if (mPmInternal.isInstantApp(packageName, UserHandle.getUserId(uid))) {
                    return StorageManager.MOUNT_MODE_EXTERNAL_NONE;
                }
            } finally {
                Binder.restoreCallingIdentity(token);
            }

            if (mStorageManagerInternal.isExternalStorageService(uid)) {
                // Determine if caller requires pass_through mount; note that we do this for