Using Android OS Version call in Script

F
Fisch
Zebra Technologies International, LLC

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

6 years ago
MobiControl - Android Script Engine
ANSWERS
S
Scott
6 years ago

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.

MD
Matt Dermody Diamond Contributor
6 years ago

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.