Indicator for admin control over sensor permission grants
Add a flag indicating whether an admin may or may not control permission grants for sensors-related permissions. By default, on a fully-managed device, the admin may control sensor permission grants. The admin may opt-out by providing the newly-added provisioning extra, EXTRA_PROVISIONING_PERMISSION_GRANT_OPT_OUT. On a managed profile, will no longer be able to control sensor permission grants. This change adds the provisioning extra and state flag in the ActiveAdmin, a follow-up change will make the permission controller utilize the flag. Bug: 158735247 Test: atest android.devicepolicy.cts.DevicePolicyManagerTest Test: atest com.android.cts.devicepolicy.MixedDeviceOwnerTest#testAdminControlOverSensorPermissionGrantsDefault com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testAdminControlOverSensorPermissionGrantsDefault com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testAdminControlOverSensorPermissionGrantsDefault com.android.cts.devicepolicy.MixedProfileOwnerTest#testAdminControlOverSensorPermissionGrantsDefault Change-Id: Iffd02450ee624416eccda8301ff84676f226c0d0
Loading
Please register or sign in to comment