diff options
| -rw-r--r-- | services/core/java/com/android/server/am/ActiveServices.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/services/core/java/com/android/server/am/ActiveServices.java b/services/core/java/com/android/server/am/ActiveServices.java index 71cbc10074d6..a58d850e042f 100644 --- a/services/core/java/com/android/server/am/ActiveServices.java +++ b/services/core/java/com/android/server/am/ActiveServices.java @@ -5845,7 +5845,7 @@ public final class ActiveServices { if (r.inSharedIsolatedProcess) { app = mAm.mProcessList.getSharedIsolatedProcess(procName, r.appInfo.uid, r.appInfo.packageName); - if (app != null) { + if (app != null && !app.isKilled()) { final IApplicationThread thread = app.getThread(); final int pid = app.getPid(); final UidRecord uidRecord = app.getUidRecord(); @@ -5870,6 +5870,8 @@ public final class ActiveServices { // If a dead object exception was thrown -- fall through to // restart the application. } + } else { + app = null; } } else { // If this service runs in an isolated process, then each time |