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

This commit is contained in:
Jing Ji
2021-05-25 21:57:37 +00:00
committed by Android (Google) Code Review

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();