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

Commit 9f557739 authored by Sudheer Shanka's avatar Sudheer Shanka Committed by Android (Google) Code Review
Browse files

Merge "Update isAppStorageSandboxed to handle shell uid."

parents d8b71cf1 a8dc32e4
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -19170,6 +19170,9 @@ public class ActivityManagerService extends IActivityManager.Stub
            if (!SystemProperties.getBoolean(StorageManager.PROP_ISOLATED_STORAGE, false)) {
                return false;
            }
            if (uid == SHELL_UID || uid == ROOT_UID) {
                return false;
            }
            synchronized (mPidsSelfLocked) {
                final ProcessRecord pr = mPidsSelfLocked.get(pid);
                return pr == null || pr.mountMode != Zygote.MOUNT_EXTERNAL_FULL;