Originally Posted by manojl76
Hi thanks for try helping me
Host file almost 5mb
Yes every time I update the host I reboot
Doesn't have any proxy
Ads show in mobile data and wifi
Ok, let's try something really basic. Please open a local shell in a terminal app (connectBot is one option).
Gain root permission by typing "su" in the terminal.
At the root prompt, usually a #, type "grep google.com /etc/hosts". You should see output similar to the following:
grep google.com /etc/hosts
The number group at the start of the line is the IP address the domain will be redirected to. In my case 127.0.0.1.
Choose one of those entries and ping it in the terminal, "ping adservices.google.com". The output should show the IP address it's redirected to in the hosts file.
PING adservices.google.com (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.575 ms
64 bytes from localhost (127.0.0.1): icmp_seq=2 ttl=64 time=0.412 ms
64 bytes from localhost (127.0.0.1): icmp_seq=3 ttl=64 time=0.343 ms
64 bytes from localhost (127.0.0.1): icmp_seq=4 ttl=64 time=0.255 ms
64 bytes from localhost (127.0.0.1): icmp_seq=5 ttl=64 time=0.143 ms
--- adservices.google.com ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4005ms
rtt min/avg/max/mdev = 0.143/0.345/0.575/0.147 ms
If this is working correctly, then either there is a proxy serving ads, usually through the router on WiFi, or a proxy entry in the mobile data APN setting or SIM card.
If ad blocking works in some apps, such as in a browser but not other apps, that usually means the problem app is not using domain names, but rather IP addresses which Adaway can not help with.