Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e479c0d2 authored by Jing Ji's avatar Jing Ji
Browse files

Skip noteAppKill if the attaching pid is unknown to us

Bug: 188157539
Test: Manual
Change-Id: I6f10e22433e0d650755afc9be9677ecfeae35cc4
parent 328d2d56
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -4298,8 +4298,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();