Prevent visible background users from interfering with the current user's SysUI operations
- Currently, only one SysUI process can register with IStatusBarService
to listen for the CommandQueue events.
- However, not only the current user but also the visible background
users can invoke the APIs of IStatusBarService on the devices that
enable the visible background users.
- If the visible background user calls the APIs,the system service will
invoke callbacks to the SysUI process which is registered for a user
different from the one who requested.
- To prevent access from visible background users from interfering with
the current user's SysUI operations, we should only allow these APIs
for the system or the current user or the user that belongs to the
same profile group as the current user.
Bug: 332222893
Test: atest CtsAppTestCases:StatusBarManagerTest
atest --user-type secondary_user_on_secondary_display CtsAppTestCases:StatusBarManagerTest
Flag: NONE bugfix
Change-Id: I1a256e8d7e9ec46a53d19bb2462b6c4881a62012
Loading
Please register or sign in to comment