Skip to content

Commit 8bf0aa9

Browse files
author
Dianne Hackborn
committed
Fix issue #5636525: ANR observed in setup wizard after changing language
We could sometimes allow a process to be killed while still waiting for an activity in it to finish stopping. Change-Id: Ibf89665c4ad6da6be22de04a82b19ef778a7fda0
1 parent 672342c commit 8bf0aa9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

services/java/com/android/server/am/ActivityManagerService.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2720,6 +2720,10 @@ private final void handleAppDiedLocked(ProcessRecord app,
27202720
}
27212721
if (!r.finishing) {
27222722
Slog.w(TAG, "Force removing " + r + ": app died, no saved state");
2723+
EventLog.writeEvent(EventLogTags.AM_FINISH_ACTIVITY,
2724+
System.identityHashCode(r),
2725+
r.task.taskId, r.shortComponentName,
2726+
"proc died without state saved");
27232727
}
27242728
r.makeFinishing();
27252729
mMainStack.mHistory.remove(i);
@@ -13596,6 +13600,7 @@ private final int computeOomAdjLocked(ProcessRecord app, int hiddenAdj,
1359613600
adj = ProcessList.PERCEPTIBLE_APP_ADJ;
1359713601
app.adjType = "stopping";
1359813602
}
13603+
app.hidden = false;
1359913604
app.foregroundActivities = true;
1360013605
}
1360113606
}

0 commit comments

Comments
 (0)