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
Loading
Please register or sign in to comment