Fix to support secondary_user_on_secondary_display on ConnectivityManagerTest
secondary_user_on_secondary_display is for background users that
have access to UI on assigned displays (a.k.a. visible background
users)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.
The visible background user is not a current profile user.
So it needs android.Manifest.permission.INTERACT_ACROSS_USERS_FULL
to use WifiManager.getConnectionInfo() on the visible background user.
Fixes include
- Make to have the android.Manifest.permission.INTERACT_ACROSS_USERS_FULL permission, when using WifiManager.getConnectionInfo in ConnectivityManagerTest.
Bug: 380776983
Flag: EXEMPT test fix
Test: atest CtsNetTestCases:android.net.cts.ConnectivityManagerTest --user-type secondary_user_on_secondary_display
(cherry picked from https://android-review.googlesource.com/q/commit:cc2e9cb52e67946adb0501e72a8f26b7340b1cd3)
Merged-In: I58370c7973a6bc5e362c50959e6e942fcb4c2ffd
Change-Id: I58370c7973a6bc5e362c50959e6e942fcb4c2ffd
1 file changed