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.
Accepted Solution
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
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