Test notification of admin-granted location permission
Test that when an admin silently grants a location-related permission,
then the user is shown a notification.
This is tested in Device Owner only mode for simplicity, since
notification listeners in the work profile are ignored.
NOTE: DevicePolicyManager.getPermissionGrantState currently returns
'denied' for these permissions because the associated app-op isn't
granted. That's a separate issue that should be looked into.
Bug: 148770541
Bug: 148197098
Test: atest CtsDevicePolicyManagerTestCases:com.android.cts.devicepolicy.MixedDeviceOwnerTest#testLocationPermissionGrantNotifies
Change-Id: I1ce856bf1338db49131c567b067bb40ff5de1e88
6 files changed