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

Commit feedb38d authored by Jing Ji's avatar Jing Ji Committed by Kyriakos Ispoglou
Browse files

Prevent system uid component from running in an isolated app process

Bug: 140055304
Test: Manua
Change-Id: Ie7f6ed23f0c6009aad0f67a00af119b02cdceac3
Merged-In: I5a1618fab529cb0300d4a8e9c7762ee218ca09eb
(cherry picked from commit 0bfebadf)
parent df8e8e03
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -3986,7 +3986,8 @@ public class ActivityManagerService extends IActivityManager.Stub
            final int procCount = procs.size();
            for (int i = 0; i < procCount; i++) {
                final int procUid = procs.keyAt(i);
                if (UserHandle.isApp(procUid) || !UserHandle.isSameUser(procUid, uid)) {
                if (UserHandle.isApp(procUid) || !UserHandle.isSameUser(procUid, uid)
                        || UserHandle.isIsolated(procUid)) {
                    // Don't use an app process or different user process for system component.
                    continue;
                }