Run MobiControl script from my app

Run MobiControl script from my app

Is it possible to send an intent from my application to execute a SOTI script? Either running a SOTI script file which I have sent to the device with FileSync or sending a command to MobiControl (e.g. reboot).

There are certain actions my app does not have permission to do but would be easy to achieve with a SOTI script. However, I need to do these actions conditionally from within my app such as executing an APK.

Based on the other forum post below, it is possible to launch a SOTI script from a shortcut on the lockdown. However, is it possible to launch a SOTI script from my application via an intent to MobiControl?

Android : Launch-able SOTI Script shortcut on SOTI Lockdown

 

Thanks.

5 Answers

Order By:   Standard | Newest | Votes
Matt Dermody | posted this 25 August 2020

There may be some exposed intents for controlling some of the behaviors of the SOTI agent such as a check in but I would be surprised if they would let you execute scripting through that mechanism. It would be a rather significant vulnerability to let any random app administer that level of control over the Device Owner. It'd be like giving the Device Owner comprehensive management control over the device and then freely exposing that control out to any app that wants to take advantage of it. 

  • 0
  • 0
DDMOD@SOTI | posted this 25 August 2020

Hi RM,

 

Thanks for the post!

Can you please share the device information including Manufacturer, Model, Device enrollment type and OS version?

Also, share the MobiControl version to check if this option is available.

 

Regards,

Technical Support | SOTI Inc. |+1-888-494-SOTI (7684) | support@soti.net | www.soti.net |

  • 0
  • 0
RM | posted this 25 August 2020

Manufacturer, Model, Device enrollment type and OS version?

Device: Honeywell CT60 running Android 9. Current OEM version: 88.00.05-(0056)

 

Enrollment: Work Managed Device (Provisioned / Enabled with Managed Google Play Accounts)

 

Also, share the MobiControl version to check if this option is available.

 

Agent Version
14.1.6.1018  

Remote Control Version
1.16.10.121

MobiControl Server version
14.3.1.1189

 

I can easily update the devices if that is the issue.

 

  • 0
  • 0
Raymond Chan | posted this 27 August 2020

To partially achieve something similar to what your described likely require very advanced hacks and surely compromise system integrity/security.    Even if such hacks work for now, it might be very specific to certain server/agent versions and/or device brand/model.  Also, it is not appropriate to talk about it in a public forum for security reason.   

 

However, if the devices of interest are assumed to be always online, then an already available approach is to have an app (authorized with oath2) running on the device to use MobiControl RESTful API's to request MobiControl server to request the device agent to run the required script.  This involve a round-trip delay and will break down whenever network connection is unavailable.

    

  • 0
  • 0
DDMOD@SOTI | posted this 28 August 2020

Hi RM,

 

Thanks for sharing the info.

As you said, this may be done using intents to launch a SOTI script on the lockdown. But, we need to understand the behavior of applications present on the lockdown and any other features applied to it. So, please raise a support case(click here) or call SOTI Support team(click here) to assist you in getting this done by accessing your environment?

 

Regards,

Technical Support | SOTI Inc. |+1-888-494-SOTI (7684) | support@soti.net | www.soti.net |

  • 0
  • 0

Give us your feedback
Give us your feedback
Feedback