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

Commit 6ac8e781 authored by Louis Chang's avatar Louis Chang
Browse files

Prevent system uid component from running in an isolated app process

Similar to commit 78a3a749, but this CL is targeting on activities.

Bug: 343169511
Flag: EXEMPT bugfix
Test: locally verified via the sample app
Change-Id: Iaa7a929b73beaa076f965b3413f6a856df235ae7
parent 2bebdf21
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -5514,7 +5514,7 @@ public class ActivityTaskManagerService extends IActivityTaskManager.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.isCore(procUid) || !UserHandle.isSameUser(procUid, uid)) {
                    // Don't use an app process or different user process for system component.
                    continue;
                }