Tobias Brunner wrote:
> Hi David,
>
>> Neither of the above does anything when I run them.  If you see an error
>> in the above please let me know.
> arg0 and arg4 seem to be OK, but not sure about arg7.  Maybe the package
> name should actually be in arg6.  But it's difficult to say because I've
> not found any documentation of that format.
>
> Regards,
> Tobias
>
I looked a bit further and found another way to export the tasks:

    Enter_VPN (2)
        A1: Send Intent [
Action:org.strongswan.android.action.START_PROFILE Cat:Browsable Mime
Type: Data: Extra:org.strongswan.android.VPN_PROFILE_ID :
8d582063-fb0d-4234-aa1b-23d961583dd8 Extra: Extra:
Package:org.strongswan.android Class: Target:Broadcast Receiver ]

I think that can be reformatted a bit as:

Enter_VPN (2)
        A1: Send Intent [
                                   
Action:org.strongswan.android.action.START_PROFILE
                                    Cat:Browsable
                                    Mime Type:
                                    Data:
                                   
Extra:org.strongswan.android.VPN_PROFILE_ID :
8d582063-fb0d-4234-aa1b-23d961583dd8
                                    Extra:
                                    Extra:
                                    Package:org.strongswan.android
                                    Class:
                                    Target:Broadcast Receiver
                                  ]

Exit_VPN (3)
        A1: Send Intent [
Action:org.strongswan.android.action.DISCONNECT Cat:None Mime Type:
Data: Extra:org.strongswan.android.VPN_PROFILE_ID :
8d582063-fb0d-4234-aa1b-23d961583dd8 Extra: Extra:
Package:org.strongswan.android Class: Target:Broadcast Receiver ]

Once again reformatting as:

Exit_VPN (3)
        A1: Send Intent [
                                   
Action:org.strongswan.android.action.DISCONNECT
                                    Cat:None
                                    Mime Type:
                                    Data:
                                   
Extra:org.strongswan.android.VPN_PROFILE_ID :
8d582063-fb0d-4234-aa1b-23d961583dd8
                                    Extra:
                                    Extra:
                                    Package:org.strongswan.android
                                    Class:
                                    Target:Broadcast Receiver
                                 ]

If I understand this correctly this appears to match the directions in
the Wiki, so I am puzzled why these don't work.

If nobody here sees why this isn't working I guess I will have to try
contacting tasker support.

Dave

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to