Deploying an Android app with custom script action to trigger a given intent upon deployment

Solved

I'm new to Soti Mobicontrol. Would like to know if someone can point me how to do this. I found documentation that Soti can execute intents on Android:

https://soti.net/mc/help/v14.3/en/scriptcmds/reference/sendintent.html

I first want to deploy an uploaded Android app APK, then together with or after the app deployment, execute an intent on that device. I kind of got the 1st part, but not the 2nd part for executing intent on a device after the app is deployed to it. Someone help me connect the dots.

For the intent, adapting the command syntax we estimated/derived for AirWatch, the AirWatch command would have been something like

mode=explicit,broadcast=false,action=android.intent.action.MAIN,package=com.mist.marvisclient,class=com.mist.marvisclient.MainActivity,extraString=MOBILE_SDK_SECRET=TheSecretValueHere

what's the equivalent translated command for Soti sendintent command?

3 years ago
SOTI MobiControl
ANSWERS
RC
Raymond Chan Diamond Contributor
3 years ago

Without your app and device model to do any tests, the following is just an educated guess.  You can try

sendintent -a "intent:#Intent; action=android.intent.action.MAIN;component=com.mist.marvisclient/.MainActivity;S.MOBILE_SDK_SECRET=TheSecretValueHere;end;"

Solution
D
DJMOD@SOTI
3 years ago

Hi David,

Thanks for requesting a response from SOTI Support Staff, Thank you Raymond for Providing inputs on the query .David please check the link here to find more information about intent script.