Using Android OS Version call in Script

Using Android OS Version call in Script

Is there a macro that would report back the current Android OS Version (8.1.0) for use in a script file? Specifically looking to create an IF statement that calls the current OS Version and then calls a specific MX XML file depending on if an upgrade or downgrade needs to be performed to get the device on a specific BSP.

 

For example:

 

IF %OSVersion%==8.1.2 mxconfig /sdcard/OSUpdate.xml

IF %OSVersion%>=9 mxconfig sdcard/OSDowngrade.xml

2 Answers

Order By:   Standard | Newest | Votes
Scott | posted this 14 November 2019

Historically there is no support for conditionals on Android.  No IF.  "If" you have migrated to version 15 though you can use javascript and MobiControl exposes a namespace that provides OS level.

  • 1
  • 0
Matt Dermody | posted this 14 November 2019

For that situation I prefer to use the Virtual groups to filter devices by what OS Upgrade/Downgrade or LG patch they need assigned and then use File Syncs + Post Install to execute them. 

  • 0
  • 0

Give us your feedback
Give us your feedback
Feedback