Page 1 of 2

Connect VPN

Posted: 13 Jun 2013 20:30
by kingkong
Guys,

Now tasker can connect openvpn using the following plugin.

https://play.google.com/store/apps/deta ... oconnector

Any way to do this in Automagic?

Thanks

Re: Connect VPN

Posted: 15 Jun 2013 07:59
by Martin
Hi,

From the app description it sounds that you can probably use an action Start Activity to start this app. I assume you have to check explicit component, select this app and pass the VPN profile name in the data uri field (untested).
Another comment in the comment section suggests to use Launch Shortcut to start an OpenVPN tunnel and skip this app entirely (also untested).

Regards,
Martin

Re: Connect VPN

Posted: 30 Jun 2013 17:04
by kingkong
I tried but didn't worked for me.

Could you please share flow?

Re: Connect VPN

Posted: 01 Jul 2013 17:48
by Martin
Hi,

I don't use a VPN myself and can not give you a working flow.
Did anyone else create such a flow and could share the flow here?

Thanks,
Martin

Re: Connect VPN

Posted: 04 Jul 2013 17:40
by kingkong
Hi,

I have created a shortcut of VPN, but I can not find that shortcut in execute shortcut action.

Could you please tell me how can I execute shortcuts?

Thanks

Re: Connect VPN

Posted: 05 Jul 2013 13:13
by Martin
Hi,

Action Launch Shortcut has to create a new shortcut using the button Build Shortcut, it is not possible to execute an existing shortcut available on your home screen.

Please try whether the following steps work for you. I can not say whether it will really work since I'm not using a VPN myself.
  • ensure that everything in OpenVPN is configured properly (I used OpenVPN for Android and created a profile named test in the profiles section).
  • create a new flow with an action Launch Shortcut
  • press the button Build Shortcut
  • scroll to OpenVPN Shortcut and select your profile
  • in Automagic select Menu->Execute to test the action

Regards,
Martin

Re: Connect VPN

Posted: 05 Jul 2013 17:48
by kingkong
Hi Martin,

I already tried this and there was no openvpn in the build shortcut menu, please help.

Thanks

Re: Connect VPN

Posted: 06 Jul 2013 13:03
by Martin
Hi,

Are you using this app here or another app?
https://play.google.com/store/apps/deta ... kt.openvpn

What device and Android version are you using?

Regards,
Martin

Re: Connect VPN

Posted: 07 Jul 2013 23:25
by kingkong
Hi Martin,

It works like a charm.

Thanks

Re: Connect VPN

Posted: 16 Sep 2014 19:32
by rafaelrro
Hi everyone,

I'm trying to do something close, but using Pertino's VPN application with the action 'Start Service'.
https://play.google.com/store/apps/deta ... no.connect

But when I try to execute, Automagic returns:
Not allowed to start service Intent { cmp=com.pertino.connect/com.pertino.vpn.service.PertinoVpnService } without permission android.permission.BIND_VPN_SERVICE
Is it possible to add this permission to Automagic? If not is there something else I should try instead?

[]'s