ADB intents - script commands

ADB intents - script commands

Hi!

Is there some way of issuing an adb shell intent command to a device running MobiControl to issue a script on the device?

Does MobiControl have an intent receiver?

 

The reason for this is that we have devices with a crashing agent as soon as we exit the lockdown manually, the devices are offline and can't be put online again so we want to be able to send script notify kiosk off to the devices.

8 Answers

Order By:   Standard | Newest | Votes
Matt Dermody | posted this 28 June 2019

There is a sendintent script however if the agent is crashing then I'm not sure how you're going to be able to send any scripts to the device from SOTI. I guess you're more looking to send and intent to the agent itself rather than have the agent send an intent to another application, is that fair?

 

With all that said, if your agent is actually crashing I would treat that as a bug and investigate having the agent upgraded rather than trying to find a workaround. 

  • 0
  • 0
Johan W | posted this 28 June 2019

No this was not what I was looking for.

 

We have devices which are offline (can't get them back online for different reasons). And when exiting the lockdown into admin mode, the agent crashes and we are thrown back into lockdown. This is some bug in the agent version.

Therefore we are looking for a way of for example connecting the device to a computer, run adb command and broadcast an intent to the device agent, then the agent takes the intent and make a script out of the data sent in the intent.

Like for example, notify kiosk off.

For now, these devices are quite bricked :) Since we are blocking factory reset as well we cannot start the device in recovery mode and use that.

  • 0
  • 0
Matt Dermody | posted this 28 June 2019

But you have USB connectivity and ADB access while the devices are in this perpetual lockdown? Assuming you can use ADB and USB access isnt blocked, could you possibly try to do an ADB upgrade of the SOTI agent?

 

Otherwise, you could try to kill the agent completely with adb shell am force-stop <packagename>

  • 0
  • 0
Johan W | posted this 28 June 2019

Well we can kill the agent, but it restarts itself.

MobiControl is just too powerful in this case :)

  • 0
  • 0
Matt Dermody | posted this 28 June 2019

Can you disable it?

adb shell pm disable <package name>

  • 0
  • 0
Matt Dermody | posted this 28 June 2019

Can you disable it?

adb shell pm disable <package name>

  • 0
  • 0
Johan W | posted this 28 June 2019

Unfortunately no

  • 0
  • 0
Johan W | posted this 28 June 2019

Actually I might have found a way of fixing the devices with the adb command

 

adb shell pm clear net.soti.mobicontrol.elm.samsung

  • 1
  • 0

Give us your feedback
Give us your feedback
Feedback