Skip to content
Commit 76fbeede authored by Nicholas Sauer's avatar Nicholas Sauer
Browse files

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
parent 07d866a1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment