summaryrefslogtreecommitdiff
path: root/tools/aapt2/ResourceParser.cpp
diff options
context:
space:
mode:
author Dohyun Lee <dohyun.lee@lge.com> 2024-05-28 16:44:06 +0900
committer BK Choi <bkchoi@google.com> 2024-07-17 16:43:53 +0000
commit79aa93f4bc6abeadf906ac635ac16eea90b15079 (patch)
tree28ea5762eeaf687d20ed1be09c5f2735e39733e1 /tools/aapt2/ResourceParser.cpp
parent05d1d08f3757d7568e97000afd072decf9f159e3 (diff)
Show error dialogs(ANR, crash) for the visible background users
In a car environment, error dialogs are not displayed by default when an ANR or a crash occurs. However, this can confuse the passenger users and leave them uninformed when an app is terminated by an ANR or a crash without any notification. To address this, error dialogs are allowed for the passenger users who have UI access on assigned displays (a.k.a. visible background users) on devices that have config_multiuserVisibleBackgroundUsers enabled. Accordingly, this patch fixes CtsAppTestCases:ActivityManagerTest#testGetProcessInErrorState fail for visible background users. Bug: 342315883 Flag: EXEMPT bugfix (does not affect phones) Test: manually verified that error dialogs are shown when an ANR or a crash occurs for the visible background user. Test: atest --user-type secondary_user_on_secondary_display CtsAppTestCases:ActivityManagerTest#testGetProcessInErrorState Test: atest CtsAppTestCases:ActivityManagerTest#testGetProcessInErrorState Test: atest ActivityTaskManagerServiceTests Signed-off-by: Dohyun Lee <dohyun.lee@lge.com> (cherry picked from https://partner-android-review.git.corp.google.com/c/platform/frameworks/base/+/2837587) Change-Id: If0733679d2fb8622634568827d7238aab43df800 Signed-off-by: Dohyun Lee <dohyun.lee@lge.com>
Diffstat (limited to 'tools/aapt2/ResourceParser.cpp')
0 files changed, 0 insertions, 0 deletions