'Permissions for setting up the application as the device manager

what permissions do I need to request for my app to be inspired by being a device manager? I tried to request these permissions:

DEVICE_ADMIN_ENABLED BIND_DEVICE_ADMIN

And it does not want to be the device manager, what should I do for the app to ask to be the device manager? Do I need to request a specific permission?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source