Script to grant Device Admin permission
If there was an option for this it would likely be through the following script structure but I'm honestly not sure this could work. This would be a Device Owner setting another DPC as a Device Administrator which might work but probably shouldnt.
afw_set_permission_grant_state PACKAGE NAME android.permission.BIND_DEVICE_ADMIN allow
Thank you for your post on SOTI Central.
The 'Device Admin' permission is considered a 'Special Permission' which the Android Enterprise agent cannot grant to 3rd party applications.
Technical Support | SOTI Inc. | 1.905.624.9828 | email@example.com | www.soti.net |