-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow to connect to a VPN server passing ovpn file path (in device's storage) and credentials parameters through api (adb) #1690
Comments
Why do you need that via adb? There is already an API (AIDL) that another app can use to do that. Also on newer Android versions, directly accessing the sdcard is almost impossible without user intervention anyway, so implementing this would only really work on older Android versions. |
@schwabe so, through AIDL can I use the ovpn file to connect to a VPN server passing it as a parameter with the credentials too? Without the need to import it? |
Yes. Check
|
Hello @schwabe I am following the same flow that you did in MainFragment:
But I'm getting the following error: This error is happening in the class
I don't know what I'm doing wrong. I tried with your test.conf file and with another vaild ovpn file. |
It would be very nice if we don't have to save a profile in the app to connect to a VPN server.
Something like:
adb -d shell am start -a android.intent.action.MAIN -n de.blinkt.openvpn/.api.ConnectVPN --es de.blinkt.openvpn.api.ovpnPath /sdcard/myVPNs/vpn1.ovpn --es de.blinkt.openvpn.api.username my_username --es de.blinkt.openvpn.api.password my_password
Thanks in advance.
The text was updated successfully, but these errors were encountered: