Connect VPN

Post your feature requets for new triggers, conditions, actions and other improvements.

Moderator: Martin

kingkong
Posts: 6
Joined: 23 May 2013 22:32

Connect VPN

Post by kingkong » 13 Jun 2013 20:30

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

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Connect VPN

Post by Martin » 15 Jun 2013 07:59

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

kingkong
Posts: 6
Joined: 23 May 2013 22:32

Re: Connect VPN

Post by kingkong » 30 Jun 2013 17:04

I tried but didn't worked for me.

Could you please share flow?

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Connect VPN

Post by Martin » 01 Jul 2013 17:48

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

kingkong
Posts: 6
Joined: 23 May 2013 22:32

Re: Connect VPN

Post by kingkong » 04 Jul 2013 17:40

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

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Connect VPN

Post by Martin » 05 Jul 2013 13:13

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

kingkong
Posts: 6
Joined: 23 May 2013 22:32

Re: Connect VPN

Post by kingkong » 05 Jul 2013 17:48

Hi Martin,

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

Thanks

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Connect VPN

Post by Martin » 06 Jul 2013 13:03

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

kingkong
Posts: 6
Joined: 23 May 2013 22:32

Re: Connect VPN

Post by kingkong » 07 Jul 2013 23:25

Hi Martin,

It works like a charm.

Thanks

rafaelrro
Posts: 4
Joined: 17 Apr 2014 15:06

Re: Connect VPN

Post by rafaelrro » 16 Sep 2014 19:32

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

Locked