Script to grant Device Admin permission
- 01 October 2020
- MobiControl - Android Scripting
2 Answers- 0 Upvote
- 1 Follower
2 Answers
Hi Farid,
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.
Kind regards,
Technical Support | SOTI Inc. | 1.905.624.9828 | support@soti.net | www.soti.net |
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