diff options
| author | 2015-07-29 01:27:00 +0000 | |
|---|---|---|
| committer | 2015-07-29 01:27:00 +0000 | |
| commit | 94d5e6b047ecef8e06b45c61ce850e4f1619fe0e (patch) | |
| tree | 0ecedef6b6c1d0d04c8fa5591559fbadbebaaa18 | |
| parent | 05e4e78d24c5583a44d3f7e52985d028de420723 (diff) | |
| parent | 779ccbe3cb556ab00ad04f2f2317e8ad4bfc8f2c (diff) | |
am 779ccbe3: am 5b009d52: Merge "Fix issue #22802617: APR: spurious wtf when restarting a persistent process" into mnc-dev
* commit '779ccbe3cb556ab00ad04f2f2317e8ad4bfc8f2c':
Fix issue #22802617: APR: spurious wtf when restarting a persistent process
| -rw-r--r-- | services/core/java/com/android/server/am/ActivityManagerService.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/services/core/java/com/android/server/am/ActivityManagerService.java b/services/core/java/com/android/server/am/ActivityManagerService.java index cf7ebe882f59..89e500e0432f 100644 --- a/services/core/java/com/android/server/am/ActivityManagerService.java +++ b/services/core/java/com/android/server/am/ActivityManagerService.java @@ -5840,7 +5840,10 @@ public final class ActivityManagerService extends ActivityManagerNative // We shouldn't already have a process under this name, but just in case we // need to clean up whatever may be there now. ProcessRecord old = removeProcessNameLocked(proc.processName, proc.uid); - if (old != null) { + if (old == proc && proc.persistent) { + // We are re-adding a persistent process. Whatevs! Just leave it there. + Slog.w(TAG, "Re-adding persistent process " + proc); + } else if (old != null) { Slog.wtf(TAG, "Already have existing proc " + old + " when adding " + proc); } UidRecord uidRec = mActiveUids.get(proc.uid); |