From cd97c96734ac00a6a800724fe5d8e81ee0ee134c Mon Sep 17 00:00:00 2001 From: Dianne Hackborn Date: Thu, 25 Sep 2014 18:34:02 -0700 Subject: [PATCH] Fix issue #17574819: Chrome browser process is killed... ...in background due to dying renderer process Completely turn this off, for now. Change-Id: I028eefc9b7e627d29569ef72d9ab940ac5960c7c --- services/core/java/com/android/server/am/ActiveServices.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/core/java/com/android/server/am/ActiveServices.java b/services/core/java/com/android/server/am/ActiveServices.java index 8e8e4a60a75d9..01e80b708c79d 100755 --- a/services/core/java/com/android/server/am/ActiveServices.java +++ b/services/core/java/com/android/server/am/ActiveServices.java @@ -2134,7 +2134,8 @@ public final class ActiveServices { if (!hasCreate) { continue; } - if (proc != null && !proc.persistent && proc.thread != null + // XXX turned off for now until we have more time to get a better policy. + if (false && proc != null && !proc.persistent && proc.thread != null && proc.pid != 0 && proc.pid != ActivityManagerService.MY_PID && proc.setProcState >= ActivityManager.PROCESS_STATE_LAST_ACTIVITY) { proc.kill("bound to service " + sr.name.flattenToShortString()