I've used AFWall+ to block Weather Services Pro from using my data plan, but My Data Manager app still shows it in the top 3 of data plan use. Is there some background process using data that isn't being blocked? Is there some other way to block it from using mobile data but still work on Wi-Fi?
HTC Vision/G2 with CM7.2.0 Android 2.3.7
Update: I found an FAQ:
How do I know if my phone supports iptables?
Issue the following command in ADB shell or in Terminal Emulator:
iptables -L -t nat
$ su # iptables -L -t nat Chain PREROUTING (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination Chain POSTROUTING (policy ACCEPT) target prot opt source destination
Is that correct?
Also this might be the issue, though I don't know how to prove it or troubleshoot it:
AFWall+ does not work under CM 7.x, how can i fix this?
CM 7.x uses old version of iptables which has conflict with AFWall+ built-in iptables. As a workaround you can try to update your iptables to the latest version. But it should work without it. Contact developer/raise an issue on github.
Also, I enabled the "Fix Startup Data Leak" option, and after a reboot, nothing could access the internet at all; it could connect to Wi-Fi but the icon was white indicating no internet connection. Then I went into AFWall and pressed Apply, and stuff started to work. Now I can block Browser and when I try to load things in the browser it says "Web page not available" as expected. So maybe it's working now?
Also firewall log is no longer empty:
AppID : 10080 Application Name: Weather Services PRO Total Packets Blocked: 348 220.127.116.11(40) 18.104.22.168(16) 22.214.171.124(40) 126.96.36.199(4) 188.8.131.52(40) 184.108.40.206(40) 220.127.116.11(40) 18.104.22.168(48) 22.214.171.124(40) 126.96.36.199(40) --------- AppID : 10167 Application Name: Facebook Total Packets Blocked: 26 188.8.131.52(6) 184.108.40.206(2) 220.127.116.11(18) ---------
So I think that fixed it. Weather app says "request timed out" and Facebook says "Network Error", but Gmail etc still work. :D If it works over the next few days I'll move this into an answer.