From abc69e93d65cdee7673abd2d0a734df7be01b96c Mon Sep 17 00:00:00 2001 From: riddle_hsu Date: Fri, 4 Jul 2014 12:37:45 +0800 Subject: [ActivityManager] Ensure alive process is not killedByAm. Symptom: Unable to kill by Am again and will be skipped updating its oom adj. Root Cause: A restarted process will reuse original process record. The flag killedByAm will keep previous state. Solution: Reset the flag killedByAm to false when the process is started. Note: Found another similiar patch If95137d91939cc44882ad2813131bcde0edd0c1b Change-Id: I59a86648ca8d0aed4c489d92751af120aae5ef90 --- services/java/com/android/server/am/ActivityManagerService.java | 1 + 1 file changed, 1 insertion(+) mode change 100644 => 100755 services/java/com/android/server/am/ActivityManagerService.java diff --git a/services/java/com/android/server/am/ActivityManagerService.java b/services/java/com/android/server/am/ActivityManagerService.java old mode 100644 new mode 100755 index baeced713fbd..3e79eae7c0e6 --- a/services/java/com/android/server/am/ActivityManagerService.java +++ b/services/java/com/android/server/am/ActivityManagerService.java @@ -2839,6 +2839,7 @@ public final class ActivityManagerService extends ActivityManagerNative app.setPid(startResult.pid); app.usingWrapper = startResult.usingWrapper; app.removed = false; + app.killedByAm = false; synchronized (mPidsSelfLocked) { this.mPidsSelfLocked.put(startResult.pid, app); Message msg = mHandler.obtainMessage(PROC_START_TIMEOUT_MSG); -- cgit v1.2.3-59-g8ed1b