Changed parameters in setDevicePolicyUserRestriction
In the new COPE mode, some user restrictions should be applied globally when called by the Work Profile PO. This CL introduces a new @IntDef int parameter, called admin, which can be either DEVICE_OWNER, PROFILE_OWNER or PROFILE_OWNER_ORG_OWNED_DEVICE. If admin is PROFILE_OWNER_ORG_OWNER_DEVICE then specific user restrictions will be added to the global bundle instead of the local bundle. This CL also removes the parameter cameraRestrictionScope and isDeviceOwner. Bug: 138709470 Test: UserRestrictionsUtilsTest DevicePolicyManagerTest UserRestrictionsTest Change-Id: Iaa0abbac47708d2d54bcf6c3df582414dff5a6c3
Loading
Please register or sign in to comment