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

Commit 0f42129f authored by Makoto Onuki's avatar Makoto Onuki
Browse files

Make sure to update oom-adjustment when a service starts.

Fixes 37725592
Test: cts-tradefed run cts-dev --skip-device-info --skip-preconditions --skip-system-status-check com.android.compatibility.common.tradefed.targetprep.NetworkConnectivityChecker -a armeabi-v7a -l VERBOSE -m CtsAppTestCases -t 'android.app.cts.ActivityManagerProcessStateTest'

Change-Id: I7ef06474dd2f338426601c1c555f8af8d782b538
parent 2d5c0d89
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1868,7 +1868,8 @@ public final class ActiveServices {
        final boolean newService = app.services.add(r);
        bumpServiceExecutingLocked(r, execInFg, "create");
        mAm.updateLruProcessLocked(app, false, null);
        updateServiceForegroundLocked(r.app, true);
        updateServiceForegroundLocked(r.app, /* oomAdj= */ false);
        mAm.updateOomAdjLocked();

        boolean created = false;
        try {