Merge "Put stopping service's host process on top of cached process list" into sc-dev

This commit is contained in:
Jing Ji
2021-03-01 22:38:27 +00:00
committed by Android (Google) Code Review

View File

@@ -3841,6 +3841,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");