Loading services/core/java/com/android/server/am/ActivityManagerService.java +9 −0 Original line number Diff line number Diff line Loading @@ -11951,6 +11951,15 @@ public class ActivityManagerService extends IActivityManager.Stub // If this is a preceding instance of another process instance allowRestart = mProcessList.handlePrecedingAppDiedLocked(app); // If somehow this process was still waiting for the death of its predecessor, // (probably it's "killed" before starting for real), reset the bookkeeping. final ProcessRecord predecessor = app.mPredecessor; if (predecessor != null) { predecessor.mSuccessor = null; predecessor.mSuccessorStartRunnable = null; app.mPredecessor = null; } // If the caller is restarting this app, then leave it in its // current lists and let the caller take care of it. if (restarting) { services/core/java/com/android/server/am/ProcessList.java +2 −1 Original line number Diff line number Diff line Loading @@ -5144,7 +5144,8 @@ public final class ProcessList { } Watchdog.getInstance().processDied(app.processName, app.getPid()); if (app.getDeathRecipient() == null) { if (app.getDeathRecipient() == null && mDyingProcesses.get(app.processName, app.uid) == app) { // If we've done unlinkDeathRecipient before calling into this, remove from dying list. mDyingProcesses.remove(app.processName, app.uid); app.setDyingPid(0); Loading Loading
services/core/java/com/android/server/am/ActivityManagerService.java +9 −0 Original line number Diff line number Diff line Loading @@ -11951,6 +11951,15 @@ public class ActivityManagerService extends IActivityManager.Stub // If this is a preceding instance of another process instance allowRestart = mProcessList.handlePrecedingAppDiedLocked(app); // If somehow this process was still waiting for the death of its predecessor, // (probably it's "killed" before starting for real), reset the bookkeeping. final ProcessRecord predecessor = app.mPredecessor; if (predecessor != null) { predecessor.mSuccessor = null; predecessor.mSuccessorStartRunnable = null; app.mPredecessor = null; } // If the caller is restarting this app, then leave it in its // current lists and let the caller take care of it. if (restarting) {
services/core/java/com/android/server/am/ProcessList.java +2 −1 Original line number Diff line number Diff line Loading @@ -5144,7 +5144,8 @@ public final class ProcessList { } Watchdog.getInstance().processDied(app.processName, app.getPid()); if (app.getDeathRecipient() == null) { if (app.getDeathRecipient() == null && mDyingProcesses.get(app.processName, app.uid) == app) { // If we've done unlinkDeathRecipient before calling into this, remove from dying list. mDyingProcesses.remove(app.processName, app.uid); app.setDyingPid(0); Loading