3
0
Fork 0
android_frameworks_base/services/accessibility
seokgyun.hong 7d4d2294d1 Prevent calls to StatusBarManagerInternal from visible background users
Visible background users have access to UI on assigned displays on devices that have config_multiuserVisibleBackgroundUsers enabled. The main use case is Automotive's multi-display Whole Cabin experience where
passengers (modeled as visible background users) can interact with the display in front of them concurrently with the driver (modeled as the the current user) interacting with driver's display.

- Calls to StatusBarManagerInternal trigger callbacks to the registered
  IStatusBar for the current user.
- However, StatusBarManagerInternal APIs can be called from not only
  the current user but also visible background users.
- We should prevent this to ensure that visible background users do not interfere with the current user's experience.

Bug: 332222893
Flag: EXEMPT bugfix
Test: atest MagnificationConnectionManagerTest
      atest WmTests:PhoneWindowManagerTests
(cherry picked from https://partner-android-review.googlesource.com/q/commit:62538ec79f939853bd4ea75e81f4f46204fce72d)
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:3bf69d6d2a6a0852c149d37304472d82a2f9f961)
Merged-In: Icdc6515e69e8044cf972a9e14e2fdd7f7a4b6958
Change-Id: Icdc6515e69e8044cf972a9e14e2fdd7f7a4b6958
2024-10-11 01:01:15 +00:00
..
java/com/android/server/accessibility Prevent calls to StatusBarManagerInternal from visible background users 2024-10-11 01:01:15 +00:00
Android.bp Merge "Migrate PermissionAnnotationDetector to global lint checks" into main 2024-09-12 14:09:57 +00:00
OWNERS
TEST_MAPPING Migrate FLAKY options from modules to test suites. 2024-09-09 15:07:46 +00:00
accessibility.aconfig Merge "Sends ACTION_CANCEL before the very first touch exploration HOVER event." into main 2024-09-05 20:18:56 +00:00
lint-baseline.xml