在Android中以编程方式配置PPTP / L2TP VPN

时间:2012-12-04 13:55:09

标签: java android api vpn

我已经阅读过有关VpnServiceVpnService.Builder的内容,但是无法获得将vpn类型设置为PPTP或L2TP的任何方法,即使我没有得到任何可以设置user /的方法密码

注意: There are many questions in SO I read them but didn't find solution. I looked into ToyVpn application but this there are only 3 parameters we set in this application.

请帮忙。如果有3方API,请提供参考。

1 个答案:

答案 0 :(得分:7)

是的,stackoverflow中的所有答案都应该告诉你,VPNService API用于创建自己的VPN应用程序,它有自己的VPN堆栈(可能恰好是PPTP / LT2P / ToyVPN / OpenVPN / MyOwnVerySecure VPN协议)而不是配置系统VPN。

配置系统VPN的API很简单,不包含在SDK中。

相关问题