Skip to main content
New Member
May 30, 2025
Question

Getting DEVICE_POLICY_MANAGEMENT role

  • May 30, 2025
  • 0 replies
  • 0 views

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!