使用android vpnservice连接pptp vpn

Oce*_*lot 26 vpn android pptp

我正在尝试编写一个可以连接到我的VPN服务器的应用程序pptp protocol,因为我正在研究我发现android.net.vpnservice我可以连接,但是当我阅读一些文档时,不清楚如何连接到VPN(没有用于设置用户名或密码的API,也没有用于设置我的VPN类型的API(l2tp,pptp);我还测试了Google提供的示例应用程序(toyvpn),也没有我之前提到过的内容.

这是我发现的一些代码:

// Create a new interface using the builder and save the parameters.
mInterface = builder.setSession(mServerAddress)
                .setConfigureIntent(mConfigureIntent)
                .establish();
mParameters = parameters;
Run Code Online (Sandbox Code Playgroud)

RGA*_*GAT 5

嗨,这有点晚了,但我在搜索时发现了一些东西.

我也在尝试使用pptp和openvpn构建自己的VPN隧道/连接.

OpenVPN已经有了解决方案.

PPTP正在尝试以下解决方案.

如何以编程方式创建Android 4.0的新VPN接口?

上面的链接被发现在

如何以编程方式配置VPN?