Always show error dialog for other profiles
Apps running on another profile of the same user were previously considered to be running in the background, so their error dialogs would not show unless ANR_SHOW_BACKGROUND was set. @bug 15665024 Change-Id: I7e559c6b7f8befc1553bc0ec06e89e5d7906d198
This commit is contained in:
@@ -1206,9 +1206,13 @@ public final class ActivityManagerService extends ActivityManagerNative
|
||||
}
|
||||
return;
|
||||
}
|
||||
if (!showBackground && UserHandle.getAppId(proc.uid)
|
||||
>= Process.FIRST_APPLICATION_UID && proc.userId != mCurrentUserId
|
||||
&& proc.pid != MY_PID) {
|
||||
boolean isBackground = (UserHandle.getAppId(proc.uid)
|
||||
>= Process.FIRST_APPLICATION_UID
|
||||
&& proc.pid != MY_PID);
|
||||
for (int userId : mCurrentProfileIds) {
|
||||
isBackground &= (proc.userId != userId);
|
||||
}
|
||||
if (isBackground && !showBackground) {
|
||||
Slog.w(TAG, "Skipping crash dialog of " + proc + ": background");
|
||||
if (res != null) {
|
||||
res.set(0);
|
||||
|
||||
Reference in New Issue
Block a user