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
107.23.165.43(40)
74.125.29.95(16)
54.236.89.222(40)
173.194.74.95(4)
54.236.118.224(40)
195.210.29.5(40)
54.236.161.75(40)
157.249.32.164(48)
54.236.175.13(40)
54.236.179.252(40)
---------
AppID : 10167
Application Name: Facebook
Total Packets Blocked: 26
69.171.235.80(6)
173.252.103.16(2)
69.171.242.30(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.
logcat
(see e.g. How can I view and examine the Android log? for details) to see what's going on. – Izzy Jul 12 '13 at 13:50