Exciting things are coming - our community is moving to a new home!
Whilst we make this move, the community is now in READ-ONLY mode today and there maybe some downtime (we will try to keep this to a minimum). Learn more here.

Forum Discussion

ilya's avatar
ilya
Level 1.5: Cupcake
2 years ago

Getting DEVICE_POLICY_MANAGEMENT role

I'm stuck with getting DEVICE_POLICY_MANAGEMENT role for my application. 

 

DevicePolicyManager reports that my application is active admin (isAdminActive() returns 'true') and device owner (isDeviceOwnerApp() returns 'true'). But role is not assigned ('dumpsys role' reports no holders for android.app.role.DEVICE_POLICY_MANAGEMENT). Pre-requisites for getting this role seem to be fulfilled  (like required-components from roles.xml)

 

Found this article from @jasonbayton saying "Only an OEM can grant this permission to an application". Does this mean there's no way for downloaded application to get DEVICE_POLICY_MANAGEMENT role and device's configuration files to be modified for granting this role (config_devicePolicyManagement)?

 

Thank you!

No RepliesBe the first to reply