diff options
| author | 2024-12-12 14:45:07 +0100 | |
|---|---|---|
| committer | 2024-12-12 14:56:19 +0100 | |
| commit | 97d062ea06d87b8437eb0c13908b5dcb928e710d (patch) | |
| tree | 377ea6da8f69d57819e6c369c7bcf2dc22b0382c /libs/androidfw/misc.cpp | |
| parent | 57724986052b8d2b8b5f6e96085348ee2cf7eb09 (diff) | |
Allow the system user to access public displays
On HSUM devices some activity launches as the system user on public
secondary displays fail (VirtualDeviceHomeTest) because that user is
not considered "visible" by UserVisibilityMediator.
This is already taken into account in DisplayContent#hasAccess but
not in ActivityTaskSupervisor#isCallerAllowedToLaunchOnDisplay.
A similar check is done in Display#hasAccess and both of the existing
methods allow the access for the system user.
This CL is simply making the logic consistent and valdiating the
HSUM support for these activity launches.
Fix: 376008387
Test: atest VirtualDeviceHomeTest
Flag: EXEMPT trvivial bugfix
Change-Id: I708e33c0917a3a589528de2cfaf7edb2aed8c547
Diffstat (limited to 'libs/androidfw/misc.cpp')
0 files changed, 0 insertions, 0 deletions