I am trying to find a solution to control vpn connections within an android app I build. I could find the following results so far:
- Since Android version 2.3.x it is not possible to control android's vpn client through intents.
VpnService
provides methods to build your own vpn solutions from scratch and comes without any common protocols.
I found a solution to programmatically connect and disconnect vpn connections by using android's "openvpn connect" app in combination with intents I send from my app. Is there any possibility to add new openvpn profiles programmatically (through intents)? User interaction like accepting or agreeing to adding new profiles is ok.