Merge "Prevent system uid component from running in an isolated app process" into oc-dev am: 909ff7dc71 am: 68f3234072
am: 038be975a1
Change-Id: Ib4d8700eb5f5a8275a0a917ef6f6db2a0a3b85de
This commit is contained in:
@@ -3995,7 +3995,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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user