Launch Android intent via SOTI Menu

Launch Android intent via SOTI Menu

Hello,

I would like to add an entry in the lokdown menu to open an Android broadcast intent.

I've tried with the sendintent command which works correctly, but it's not working with an entry in lockdown menu.

 

Command launched with sendintent (OK) :

sendintent -b "intent:#Intent;action=android.intent.action.SOS_BUTTON;end;" 


Launch in lockdown menu (not OK):
intent:#Intent;action=android.intent.action.SOS_BUTTON;end

I presume that in second case it's a activity intent launched by default, but I have no idea how to launch a broadcast.

Thank you for your help

4 Answers

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

If you can't get it to work that way you can encapsulate the working script in a .cmd file, place it on the device via package or file sync rule, and then create a shortcut to launch the script from the lockdown menu. 

  • 1
  • 0
Edgar Gomez | posted this 03 August 2020

In the lockdown configuration, start the item with intent://

 

  • 0
  • 0
Jonathan | posted this 04 August 2020

In the lockdown configuration, start the item with intent://

Thank you for your help : so I've tried with this 

intent://#Intent;action=android.intent.action.SOS_BUTTON;end

 

But it doesn't work neither. Android says "Activity not found"

  • 0
  • 0
JCMOD@SOTI | posted this 17 September 2020

Hi Jonathan,

 

The #Intent portion of the command seems to indicate that it's a Broadcast action. If it doesn't work in lockdown, perhaps the intent itself is not allowed on the device because of the lockdown itself. I suggest you switch your Lockdown type to "Activity Suppression" and observe the behavior.

 

Let us know how it goes?

 

Reference: 

https://www.soti.net/mc/help/v15.2/en/scriptcmds/reference/sendintent.html

https://www.soti.net/mc/help/v15.2/en/console/reference/dialogs/profiles/androidplus/profile_lockdown_addmenuitem_androidplus.html

 

Regards,

Technical Support | SOTI Inc. |1.905.624.9828 | support@soti.net | www.soti.net |

  • 1
  • 0

Give us your feedback
Give us your feedback
Feedback