AFAIK, i did. I edited it using "FS File Explorer" with r/w turned on... Then i restarted phone and my change is still there.I doesn't ignore the hosts file, did you edit it with r/w permissions?
Yes, i found posts about these ad blocks when i read all these forums about this...That's how some AdBlock apps on market are working.
They just download huge (700K) host file and most of ads are history. (also in ads based applications)
PS: try something with your local host 127.0.0.1 first... you have to reboot your device after modification.
This approach and file "Block ads on PC & Android with an uber HOSTS file!" has work flawlessly on multiple device all with various firmwares and versions of Android.AFAIK, i did. I edited it using "FS File Explorer" with r/w turned on... Then i restarted phone and my change is still there.
Yes, i found posts about these ad blocks when i read all these forums about this...
I can ping "localhost", but i cant ping this host i added there...
I added record "127.0.0.1 bbb", then i restarted phone and i tried to run "ping bbb", but i got error msg about unresolved hostname aswell...
I have Nexus S and latest CyanogenMod 7.0.3 if it can help...
Unfortunately it does not work for me on my GT-I9305 (I9305XXUEML5).EDIT - Solution found: turn off "Reduce data usage" in Chrome
[email protected]:/ # mount -o rw,remount -t ext4 /dev/block/mmcblk0p13 /system [email protected]:/ # echo "127.0.0.1 domain.local" >> /system/etc/hosts [email protected]:/ # mount -o ro,remount -t ext4 /dev/block/mmcblk0p13 /system [email protected]:/ # grep domain.local /system/etc/hosts 127.0.0.1 domain.local
[email protected]:/ # ping domain.local PING domain.local (127.0.0.1): 56 data bytes 64 bytes from 127.0.0.1: seq=0 ttl=64 time=0.220 ms 64 bytes from 127.0.0.1: seq=1 ttl=64 time=0.186 ms 64 bytes from 127.0.0.1: seq=2 ttl=64 time=0.242 ms ^C --- domain.local ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.186/0.216/0.242 ms
[email protected]:/ # telnet domain.local 8080 GET / HTTP/1.0 HTTP/1.0 200 OK Date: Mon, 28 Apr 2014 11:47:42 GMT Server: openresty X-Powered-By: PHP/5.4.12 Connection: close Content-Type: text/html; charset=UTF-8 <!DOCTYPE html> <html> ... </html> Connection closed by foreign host
I got it!
I was playing etc... And i found that i need to put 1 empty line at end of file to make system to reload file!
No need to restart phone at all, i can ping new hostname immediatelly.
Now i can ping new hostname. But when i open it in Android browser, i get new exciting error msg:
Sorry The requested server does not have a DNS entry!
Any ideas now?