summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Dianne Hackborn <hackbod@google.com> 2015-07-29 00:46:20 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2015-07-29 00:46:20 +0000
commit5b009d523c6ad89f946e4a19f3fdba3c63bcf1f5 (patch)
tree0e0a85d0066891d25d9534ec0ce7b91175fde2e5
parentb492ced89eaf38b2b9962dbfae2435dd242abf19 (diff)
parenta73b68fb856aa3563be7423e5f93314eddc7d144 (diff)
Merge "Fix issue #22802617: APR: spurious wtf when restarting a persistent process" into mnc-dev
-rw-r--r--services/core/java/com/android/server/am/ActivityManagerService.java5
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);