We are looking for configure VPN programatically using Protocol- L2TP/IPsec android open source code.
I have tried the https://android.googlesource.com/platform/development/+/master/samples/ToyVpn/src/com/example/android/toyvpn/ToyVpnClient.java
Here it's configuring the user profile info
Intent intent = new Intent(this, ToyVpnService.class)
.putExtra(prefix + ".ADDRESS", mServerAddress.getText().toString())
.putExtra(prefix + ".PORT", mServerPort.getText().toString())
.putExtra(prefix + ".SECRET", mSharedSecret.getText().toString());
startService(intent);
I want to manage the NAME, TYPE, SERVER ADDRESS, IPSEC Pre-shared Key for server VPN setup after that connection with shared USERID and Password.