8

I need to implement VPN IPsec on android programmatically i.e. connecting, disconnecting on the click of button inside my own app, without asking user explicitly. Came across VpnService(https://developer.android.com/reference/android/net/VpnService.html) and its implementation i.e. toyvpn (https://android.googlesource.com/platform/development/+/master/samples/ToyVpn/src/com/example/android/toyvpn/)

Some of the threads already discussing the same:

But didn't find any satisfactory answer. What I inferred is, either I have to write whole implementation by myself. Or something about hidden API in Android.

Cœur
  • 37,241
  • 25
  • 195
  • 267
krnbatta
  • 497
  • 5
  • 17

0 Answers0