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

Commit d4653639 authored by Hui Yu's avatar Hui Yu Committed by Android (Google) Code Review
Browse files

Merge "Persistent process should have all capabilities."

parents b9095577 0feac070
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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