Forum Discussion

ilya's avatar
ilya
Level 1.5: Cupcake
16 days 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