shroudedcode / apk-mitm

🤖 A CLI application that automatically prepares Android APK files for HTTPS inspection
https://npm.im/apk-mitm
MIT License
3.6k stars 337 forks source link

Remove limited network detection #116

Open amreo opened 1 year ago

amreo commented 1 year ago

After I installed the patched app the app show "limited network or no network" message. It's because I have configured the mitmproxy, so I think this code should be patched

        ConnectivityManager connectivityManager = (ConnectivityManager) context.getSystemService("connectivity");
        NetworkCapabilities networkCapabilities = connectivityManager.getNetworkCapabilities(connectivityManager.getActiveNetwork());
        if (networkCapabilities != null) {
            return networkCapabilities.hasCapability(12);
        }
        return false;

A affected app is PosteID (from posteitaliane)