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

Commit 5073145f authored by Leo Hsu's avatar Leo Hsu Committed by Leo_Hsu
Browse files

Fix a bug: unable to start activity when AM is killing the process.

Symptom: No activity was started for startActivity, low repro rate.
Root Cause: Starting activity on a process which was killed by ActivityManagerService.killUnneededProcessLocked() and before receiving AppDeathRecipient of it.
Solution: Choose the flow of starting a new process if ProcessRecord.killedByAm is true.

Change-Id: Ida2639b0fb4631222fc92d65aadc9fd2da637b45
parent dafcc610
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1050,7 +1050,7 @@ public final class ActivityStackSupervisor {

        r.task.stack.setLaunchTime(r);

        if (app != null && app.thread != null) {
        if (app != null && app.thread != null && !app.killedByAm) {
            try {
                if ((r.info.flags&ActivityInfo.FLAG_MULTIPROCESS) == 0
                        || !"android".equals(r.info.packageName)) {