diff --git a/services/core/java/com/android/server/am/ActiveServices.java b/services/core/java/com/android/server/am/ActiveServices.java index 2efc83c4af060..a80cf7d7825a0 100644 --- a/services/core/java/com/android/server/am/ActiveServices.java +++ b/services/core/java/com/android/server/am/ActiveServices.java @@ -3868,6 +3868,8 @@ public final class ActiveServices { r.name.getClassName()); stopServiceAndUpdateAllowlistManagerLocked(r); if (r.app.getThread() != null) { + // Bump the process to the top of LRU list + mAm.updateLruProcessLocked(r.app, false, null); updateServiceForegroundLocked(r.app.mServices, false); try { bumpServiceExecutingLocked(r, false, "destroy");