Skip to content
Commit 2fa704eb authored by Eran Messeri's avatar Eran Messeri
Browse files

Utilize context user ID for canAdminGrantSensorsPermissions

Remove, from the system API surface, the canAdminGrantSensorsPermissionsForUser
method, leaving only canAdminGrantSensorsPermissions.

In canAdminGrantSensorsPermissions, get the user ID from the context.

This means callers that need to find out the permission grant state for
a particular user would have to construct a context object for that
user.

Bug: 179690270
Bug: 170627643
Test: DeviceOwnerTest#testDeviceOwnerProvisioning ManagedProvisioningTests:com.android.managedprovisioning.parser.ExtrasProvisioningDataParserTest ManagedProvisioningTests:com.android.managedprovisioning.parser.PropertiesProvisioningDataParserTest ManagedProvisioningTests:com.android.managedprovisioning.model.ProvisioningParamsTest android.devicepolicy.cts.DevicePolicyManagerTest com.android.cts.devicepolicy.MixedDeviceOwnerTest#testAdminControlOverSensorPermissionGrantsDefault com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testAdminControlOverSensorPermissionGrantsDefault com.android.cts.devicepolicy.DeviceOwnerTest#testAdminControlOverSensorPermissionGrantsDefault com.android.cts.devicepolicy.MixedProfileOwnerTest#testAdminControlOverSensorPermissionGrantsDefault
Change-Id: I118f642c15b3f9848ff97d13e1e32b3bd5dba63d
parent a4734632
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