Android autojs如何防止APK被抓包工具抓包源码

function checkfd() {
    function isWifiProxy() {
        var S_ICS_OR_LATER = android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.ICE_CREAM_SANDWICH;
        var proxyAddress;
        var proxyPort;
        if (S_ICS_OR_LATER) {
            var portStr = java.lang.System.getProperty("http.proxyPort");
            proxyAddress = java.lang.System.getProperty("http.proxyHost");
            proxyPort = java.lang.Integer.parseInt(portStr != null ? portStr : "-1")

        } else {
            proxyAddress = android.net.Proxy.getHost(this);
            proxyPort = android.net.Proxy.getPort(this);
        }
        return (!android.text.TextUtils.isEmpty(proxyAddress)) && (proxyPort != -1);
    };
    if (isWifiProxy() == false) {
        //这里是检测
    } else {
        //exit();             
        toastLog("九黎在此守护");
        exit();
    }
} //检测fd
checkfd()

你可能感兴趣的:(脚本源码,autojs,auto.js)