Connect with profile from shell
Posted: 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:
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:
I've tried different combinations of extras but it just opens PC section of the app. Thanks for suggestions.
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
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