How are existing VPN applications creating new profiles in Android 2.0 - 2.3?

后端 未结 1 1708
走了就别回头了
走了就别回头了 2021-02-01 19:07

After much searching on StackOverflow, it seems rooting a device in the only way to create a VPN profile pre-4.0

My question is how do the following apps do it without r

相关标签:
1条回答
  • 2021-02-01 19:46

    you could just redirect the user to the VPN settings screen via an undocumented intent.

            Intent intent = new Intent("android.net.vpn.SETTINGS");
            intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
            startActivity(intent);
    

    This seems to work on 1.6-4.1 phones.

    0 讨论(0)
提交回复
热议问题