Improved Entitlement UI Launch for multiple admin users
This change addresses the launch of entitlement UI activities in Headless System User Mode (HSUM) on multi-user devices. HSUM is a configuration where the system user (user 0) does not represent a human user and primarily runs system services. In this mode, the first user set up on the device is not user 0. Modified the EntitlementManager logic to handle the launch of the entitlement UI in multi-user environments, specifically addressing scenarios where HSUM is enabled, which includes: 1. Always launch the UI to the foreground current user. 2. Check whether the current user is allowed to show the UI. This ensures the UI is presented to the appropriate user. Test: Manual 1. Mock requires entitlement 2. adb shell cmd user set-system-user-mode-emulation headless 3. enable hotspot Test: atest TetheringTests:EntitlementManagerTest Fix: 363972541 Change-Id: I950d678741a3f1714f347206fa161bcd7538b402
This commit is contained in:
parent
2afd53948f
commit
b4a92ff791
1 changed files with 94 additions and 6 deletions
|
|
@ -32,8 +32,10 @@
|
|||
<uses-permission android:name="android.permission.BLUETOOTH_PRIVILEGED" />
|
||||
<uses-permission android:name="android.permission.BROADCAST_STICKY" />
|
||||
<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" />
|
||||
<uses-permission android:name="android.permission.INTERACT_ACROSS_USERS"/>
|
||||
<uses-permission android:name="android.permission.MANAGE_USB" />
|
||||
<uses-permission android:name="android.permission.MODIFY_PHONE_STATE" />
|
||||
<uses-permission android:name="android.permission.QUERY_USERS"/>
|
||||
<uses-permission android:name="android.permission.READ_DEVICE_CONFIG" />
|
||||
<uses-permission android:name="android.permission.READ_NETWORK_USAGE_HISTORY" />
|
||||
<uses-permission android:name="android.permission.READ_PHONE_STATE"/>
|
||||
|
|
|
|||
Loading…
Reference in a new issue