summaryrefslogtreecommitdiff
path: root/libs/androidfw/AttributeResolution.cpp
diff options
context:
space:
mode:
author Artem Radchenko <artem.radchenko@globallogic.com> 2021-03-01 12:10:06 +0200
committer Artem Radchenko <artem.radchenko@globallogic.com> 2021-03-03 10:41:36 +0000
commit14d1a545c9b55fd6c23aec53cb2bc8bfc88a8849 (patch)
treeebe2f71f9207bdf08b22def7a285b3f04c45baeb /libs/androidfw/AttributeResolution.cpp
parent6a01b8d23b14091fa50a10528d9340282d18814b (diff)
Fix LegacyGlobalActions broadcast receiver
By default CLOSE_SYSTEM_DIALOGS broadcast is sent only for current user. Current user is user 10 on devices with headless system user enabled. LegacyGlobalActions broadcast receiver is registered with system user (user 0), so the broadcast is not received. It is proposed to use registerReceiverAsUser with UserHandle.ALL when registering receiver to be able to receive broadcast. Bug: 181734723 Test: cts-tradefed run cts-dev -m CtsAccessibilityServiceTestCases -t android.accessibilityservice.cts.AccessibilityGlobalActionsTest#testPerformGlobalActionPowerDialog or Manual: 1. Open global actions dialog: adb shell input keyevent --longpress KEYCODE_POWER (automotive implementation uses LegacyGlobalActions implementation by default) 2. Broadcast close system dialogs intent: adb shell am broadcast -a android.intent.action.CLOSE_SYSTEM_DIALOGS Signed-off-by: Artem Radchenko <artem.radchenko@globallogic.com> Change-Id: I71c7903ccb3d7f9a95a99014d14da37c61d40f8e
Diffstat (limited to 'libs/androidfw/AttributeResolution.cpp')
0 files changed, 0 insertions, 0 deletions