Set App-Permissions with SOTI

Set App-Permissions with SOTI

Hey Guys,

Is there any chance to set up App-Permissions within SOTI on an Zebra TC20 Device?

We build an App which sets Wallpaper, changes Notifications an stuff like that. We can execute all these settings remote with the sendintent command. Unfortunately the App needs the Storage Permission wihich is not allowed after installation. Can Soti, MCStudio, Script Command Set or anything else grant the permissions without User action?

 

Thanks!

3 Answers

Order By:   Standard | Newest | Votes
Matt Dermody | posted this 03 September 2018

Scott nailed it. If you have the option you can compile your app to a lower API target so that the prompts are automatically accepted by the SOTI API distribution process. Otherwise, you can leverage the MX based AppMgr CSP to install the app instead of the default SOTI app distribution mechanism as that is supposedly designed to auto-accept the prompts for you, although I have had limited success with it. The TC20 has a "neutered" set of MX configurations because it is technically designed for cheaper environments to compete with consumer grade devices like the iPod Touch with a scanning sled. In most cases you're better off with a TC5x* and future generations of that product line as they have more MX configurations available and are designed to last longer than the TC2x line. 

 

http://techdocs.zebra.com/mx/appmgr/

Darryn Campbell has some great info on these topics:

 

https://developer.zebra.com/community/home/blog/2017/01/20/what-s-new-for-android-m-and-the-impact-on-zebra-developers

https://developer.zebra.com/community/home/blog/2018/08/03/what-s-new-for-android-n-and-the-impact-on-zebra-developers

 

  • 1
  • 0
Scott | posted this 31 August 2018

Depends on the application, OS version and Zebra device support.  Android permission model changed in M.  Zebra added the ability to silently approve permissions if app targetSdkVersion >= 23 and MX AppMgr is used to install the application.  From my testing, MobiControl does NOT use the MX AppMgr to install APKs so you have to use a combination of files and XML in package manager to achieve it.  Copy both the app and xml to the device and then mxconfig the xml.  Kind of a pain but it does work.  Not sure if the TC20 gets MX support or not.  We use the TC56 which does.

  • 1
  • 0
Daniel | posted this 03 September 2018

Hey Guys,

 

works awesome! Many Thanks, you made my day :-)

  • 0
  • 0

Give us your feedback
Give us your feedback
Feedback