SET App permissions on Zebra devices

SET App permissions on Zebra devices

Hi all,

 

Is it possible to automatically grand all required permissions when installing an app via Mobicontrol?

Some command that I can add to the packages?

3 Answers

Order By:   Standard | Newest | Votes
Ross , Hathaway | posted this 21 March 2019

How are you enrolling the device?

  • 0
  • 0
Raymond Chan | posted this 21 March 2019

This is not possible for devices using Android+ device agent.

For devices running Android Enterprise device agent 13.6.0.1662+,  all required app permissions should be granted for "managed apps" by default.  To fine tune individual permissions of a particular app, the following script commands can be used:

 

  afw_set_permission_grant_state  bundle_ID  permission_name  allow

  afw_set_permission_grant_state  bundle_ID  permission_name  deny

  afw_set_permission_grant_state  bundle_ID  permission_name  default

 

bundle_ID is the bundle ID of the app of interest.  permission_name  is the permission name as defined by Google, e.g.  android.permission.WRITE_CONTACTS,  android.permission.CAMERA,  android.permission.WRITE_EXTERNAL_STORAGE, etc.

 

  • 0
  • 0
Matt Dermody | posted this 26 March 2019

If they are enrolled as Android+ (DA) you might still be able to get this to work if you use an AppMgr based MX profile with the mxconfig script to have the APK delivered as a file by SOTI where the MX layer then installs it, along with any required permissions. Given that these are TC51s there is a good chance you're using AE (hopefully AEDO), but those devices were right on the cusp so you might have enrolled them as Android+ if you originally deployed them on Marshmallow or Nougat. 

  • 0
  • 0

Give us your feedback
Give us your feedback
Feedback