14

我已阅读有关VpnServiceVpnService.Builder的信息,但无法获得将 vpn 类型设置为 PPTP 或 L2TP 的任何方法,即使我没有获得任何可以设置用户/密码的方法。

笔记: 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.

请帮忙。如果有 3party API,请给出参考。

4

1 回答 1

7

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

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

于 2013-01-04T23:18:37.777 回答