summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Hui Yu <huiyu@google.com> 2020-02-20 11:33:30 -0800
committer Hui Yu <huiyu@google.com> 2020-02-20 11:40:39 -0800
commit0feac0708313451ece7e77b40c560638eca127fa (patch)
tree04cdf2e0004971ed96a1c1f8d22a62ee56ea1652
parent881ed9a6191c05cdb6bde81bc3e891d993a087e6 (diff)
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
-rw-r--r--services/core/java/com/android/server/am/OomAdjuster.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/services/core/java/com/android/server/am/OomAdjuster.java b/services/core/java/com/android/server/am/OomAdjuster.java
index a2ae6786d95d..c239feb155c6 100644
--- a/services/core/java/com/android/server/am/OomAdjuster.java
+++ b/services/core/java/com/android/server/am/OomAdjuster.java
@@ -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