How to programmatically create a new VPN interface with Android 4.0?

后端 未结 2 1164
鱼传尺愫
鱼传尺愫 2020-12-02 09:34

I\'d like to know whether it\'s possible to create a VPN interface programmatically with the new VPN APIs in Android 4.0. I\'ve looked through http://developer.android.com/r

2条回答
  •  星月不相逢
    2020-12-02 10:16

    Yes, there is a way. Use AndroidVpnService, it helps you create VPN interface on the device, there exist methods to configure that programmatically.

提交回复
热议问题