SET App permissions on Zebra devices
This is not possible for devices using Android+ device agent.
For devices running Android Enterprise device agent 184.108.40.2062+, 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.
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.