Launch Android intent via SOTI Menu

Solved Locked
J
Jonathan
E-Tribord

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
5 years ago
Android
ANSWERS
MD
Matt Dermody Diamond Contributor
5 years ago

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. 

Solution
EG
Edgar Gomez
5 years ago

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

J
Jonathan
5 years ago (edited 5 years ago)

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"

J
JCMOD@SOTI
5 years ago

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,