Merge "Skip noteAppKill if the attaching pid is unknown to us" into sc-dev am: c1e65680bf

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14676306

Change-Id: I74c718401feead128a176154628851e03b529645
This commit is contained in:
Jing Ji
2021-05-25 22:07:37 +00:00
committed by Automerger Merge Worker

View File

@@ -4324,8 +4324,8 @@ public class ActivityManagerService extends IActivityManager.Stub
if (pid > 0 && pid != MY_PID) {
killProcessQuiet(pid);
//TODO: killProcessGroup(app.info.uid, pid);
mProcessList.noteAppKill(app, ApplicationExitInfo.REASON_INITIALIZATION_FAILURE,
ApplicationExitInfo.SUBREASON_UNKNOWN, "attach failed");
// We can't log the app kill info for this process since we don't
// know who it is, so just skip the logging.
} else {
try {
thread.scheduleExit();