求一个能过VPN检测的xposed小插件 |
您所在的位置:网站首页 › 隐藏xposed不被检测 › 求一个能过VPN检测的xposed小插件 |
public static boolean isVpnUsed() { try { Enumeration niList = NetworkInterface.getNetworkInterfaces(); if(niList != null) { for (NetworkInterface intf : Collections.list(niList)) { if(!intf.isUp() || intf.getInterfaceAddresses().size() == 0) { continue; } Log.d("-----", "isVpnUsed() NetworkInterface Name: " + intf.getName()); if ("tun0".equals(intf.getName()) || "ppp0".equals(intf.getName())){ return true; // The VPN is up } } } } catch (Throwable e) { e.printStackTrace(); } return false; } 最后于 2021-1-3 10:26 被tDasm编辑 ,原因: |
今日新闻 |
推荐新闻 |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |