Remove a break so that FLAG_PERMISSION_REVOKE_WHEN_REQUESTED is applied
to permissions in all users. This addresses failures in SplitPermissionTest when run on secondary users. bug: 140274903 Test: cts-tradefed run cts-dev -m CtsPermissionTestCases -t android.permission.cts.SplitPermissionTest and... $ adb install CtsAppThatRequestsLocationPermission28.apk $ adb shell pm grant --user 10 android.permission.cts.appthatrequestpermission android.permission.ACCESS_COARSE_LOCATION $ adb shell pm grant --user 10 android.permission.cts.appthatrequestpermission android.permission.ACCESS_BACKGROUND_LOCATION $ adb install CtsAppThatRequestsLocationAndBackgroundPermission29.apk $ adb shell dumpsys package android.permission.cts.appthatrequestpermission and verify: USER_SENSITIVE_WHEN_GRANTED|USER_SENSITIVE_WHEN_DENIED] android.permission.ACCESS_BACKGROUND_LOCATION: granted=false Change-Id: I7191f06ea2e311113e0982d3b0b66aa5b1749ad9
Loading
Please register or sign in to comment