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

Commit a8dc32e4 authored by Sudheer Shanka's avatar Sudheer Shanka
Browse files

Update isAppStorageSandboxed to handle shell uid.

Bug: 119265456
Test: atest cts/tests/app/src/android/app/cts/DownloadManagerTest.java
Change-Id: If4f8e1f8603cf206b3437c1c7c1a95707e0ef300
parent 87915d66
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -19183,6 +19183,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;