How to use "AccessManager" profile to grant "All Dangerous Permissions" to an application package - on devices running with MX 13.1?

//Solved
R Richard Venderbosch 7 months 3 weeks ago
82 1 0

Can you give me some Java sample code on how to use the MX "AccessManager" profile to grant "All Dangerous Permissions" to our application - or atleast some permissions?

Which permission names can be used for the "PermissionAccessPermissionName" parameter?

I tried for example fine location permission (Manifest.permission.ACCESS_FINE_LOCATION) on a TC78 with latest Android 13 OS build version, but in our application always I always see this error:

<parm-error name="PermissionAccessAction" value="1" desc="mDevAdminService.setPerm….MODE_ALLOWED.toString()) must not be null"/>

Same code with permission Manifest.permission.MANAGE_EXTERNAL_STORAGE (added in MX 10.4) is running successful.

Please register or login to post a reply

Accepted Solution

R Richard Venderbosch

I found the name "ALL_DANGEROUS_PERMISSIONS" to use on this website

https://github.com/ZebraDevs/MX-EMDK-Android-Java-CriticalPermissionsHelper/blob/master/CriticalPermissionsHelper/src/main/java/com/zebra/criticalpermissionshelper/EPermissionType.java

1 Replies

R Richard Venderbosch

I found the name "ALL_DANGEROUS_PERMISSIONS" to use on this website

https://github.com/ZebraDevs/MX-EMDK-Android-Java-CriticalPermissionsHelper/blob/master/CriticalPermissionsHelper/src/main/java/com/zebra/criticalpermissionshelper/EPermissionType.java

CONTACT
Can’t find what you’re looking for?