Persistent process should have all capabilities.

By default.

Fix: 149930393
Test: "adb shell dumpsys activity -a", system process record have
curCapability=7.

Change-Id: I9dacaefbb33a6e595044b452dcbfd3b26fc9df2b
This commit is contained in:
Hui Yu
2020-02-20 11:33:30 -08:00
parent 881ed9a619
commit 0feac07083

View File

@@ -1128,6 +1128,7 @@ public final class OomAdjuster {
app.setCurRawAdj(app.maxAdj);
app.setHasForegroundActivities(false);
app.setCurrentSchedulingGroup(ProcessList.SCHED_GROUP_DEFAULT);
app.curCapability = PROCESS_CAPABILITY_ALL;
app.setCurProcState(ActivityManager.PROCESS_STATE_PERSISTENT);
// System processes can do UI, and when they do we want to have
// them trim their memory after the user leaves the UI. To