(Android) Launch app activity shortcuts from the command line? I'd like to know how would it be possible to launch an action "shortcut" (like Greenify's auto-hibernation shortcut) through the command line in Android. 

I'm trying to launch a StrongSwan VPN profile on boot, but first I need to know what command does eg. the launcher send to it while launching the profile from the home screen. 

So far, what I've managed to observe is that when I launch SS with that shortcut, the logcat says: 

START u0 {act=org.strongswan.android.action.START_PROFILE flg=0x10000000 cmp=org.strongswan.android/.ui.MainActivity bnds=[360,1759][540,1920] (has extras)} from uid 10077 on display 0 


Any ideas on how to make it into command input? Thanks in advance!
Looking for an intent interceptor I came across IntentTask which is helpful for your objective. I installed Tasker, that app, setup a Task with action: 

Plugin &rarr; IntentTask &rarr; Launch Shortuct &rarr; Configuration: tap pencil icon &rarr; your app &rarr; the profile. 

The intent auto-populated there was: 

#Intent;action=org.strongswan.android.action.START_PROFILE;l.org.strongswan.android.VPN_PROFILE_ID=1;end


You can now attach your task to a boot profile in Tasker now. 

As for the command-line I tried the same intent in the command-line and it works too.

am start -a org.strongswan.android.action.START_PROFILE --el org.strongswan.android.VPN_PROFILE_ID 1


Replace 1 with the your profile's ID.