Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Create VPN on Android programmatically

Tags:

android

vpn

pptp

I know this has been asked before, but most of them are 3 to 4 years ago with no definite answers. I would like to know if this is already possible as of 2015.

like image 235
jameshwart lopez Avatar asked Sep 06 '25 07:09

jameshwart lopez


1 Answers

Also there seems to API working for that in Android 22. VpnService and VpnService.Builder. Also you should check out this sample https://android.googlesource.com/platform/development/+/master/samples/ToyVpn/src/com/example/android/toyvpn/

Update: github.com/schwabe/ics-openvpn seems much better option when using openVPN profiles

like image 91
N0mi Avatar answered Sep 09 '25 06:09

N0mi