Update permissions flags for all users before restoring
Ensure that permission flags are updated for all users in setWhitelistedRestrictedPermissions before restoring permission state. see ag/9286799 and ag/9278208 Fixes: 144690691 Test: atest SplitPermissionTest#inheritGrantedPermissionState --iterations 10 (run on both user 0 and secondary user) or running on secondary user: $ adb install out/.../CtsAppThatRequestsLocationPermission29.apk $ adb shell pm grant --user [SECONDARY_USER_ID] android.permission.cts.appthatrequestpermission android.permission.ACCESS_COARSE_LOCATION $ adb install out/.../CtsAppThatRequestsLocationPermission28.apk $ adb shell dumpsys package android.permission.cts.appthatrequestpermission Verify that ACCESS_BACKGROUND_LOCATION is granted to secondary user Change-Id: I7ca593a807f1fad68504e59e743b736f5f2c915a
Loading
Please register or sign in to comment