Merge "Mark the persistent flag while creating the ProcessRecord" into tm-qpr-dev
This commit is contained in:
@@ -3005,9 +3005,10 @@ public final class ProcessList {
|
||||
hostingRecord.getDefiningUid(), hostingRecord.getDefiningProcessName());
|
||||
final ProcessStateRecord state = r.mState;
|
||||
|
||||
if (!mService.mBooted && !mService.mBooting
|
||||
if (!isolated && !isSdkSandbox
|
||||
&& userId == UserHandle.USER_SYSTEM
|
||||
&& (info.flags & PERSISTENT_MASK) == PERSISTENT_MASK) {
|
||||
&& (info.flags & PERSISTENT_MASK) == PERSISTENT_MASK
|
||||
&& (TextUtils.equals(proc, info.processName))) {
|
||||
// The system process is initialized to SCHED_GROUP_DEFAULT in init.rc.
|
||||
state.setCurrentSchedulingGroup(ProcessList.SCHED_GROUP_DEFAULT);
|
||||
state.setSetSchedGroup(ProcessList.SCHED_GROUP_DEFAULT);
|
||||
|
||||
Reference in New Issue
Block a user