Connect with profile from shell

Post Reply
bulker
OpenVpn Newbie
Posts: 2
Joined: Mon Apr 09, 2018 2:47 pm

Connect with profile from shell

Post by bulker » Mon Apr 09, 2018 2:58 pm

I'm trying to connect with my_profile_name profile from shell with android am command. Playing around it I got working solution for OpenVPN Connect 1.1.27:

Code: Select all

am start -n net.openvpn.openvpn/net.openvpn.openvpn.OpenVPNClient \
-a android.intent.action.VIEW \
--es net.openvpn.openvpn.AUTOSTART_PROFILE_NAME my_profile_name
Does anyone know how to run same stuff with 3.0+ version?
Based on Tasker FAQ https://docs.openvpn.net/faqs/faq-regar ... or_Android here is what I try:

Code: Select all

am start -n net.openvpn.openvpn/net.openvpn.unified.MainActivity \
-a net.openvpn.openvpn.CONNECT \
--es net.openvpn.openvpn.APP_SECTION PC \
--es net.openvpn.openvpn.AUTOSTART_PROFILE_NAME "PC my_profile_name" \
--ez net.openvpn.openvpn.AUTOCONNECT true
I've tried different combinations of extras but it just opens PC section of the app. Thanks for suggestions.

bulker
OpenVpn Newbie
Posts: 2
Joined: Mon Apr 09, 2018 2:47 pm

Re: Connect with profile from shell

Post by bulker » Thu May 31, 2018 12:40 pm

Two months have passed, but I still have no solution. Bump.

Post Reply