This MOD is two files:
Enable Adblock Update File
Disable Adblock Update File
Download this two files to your SD card, apply (flash from recovery) first file if you need AdBlock, apply second if you don't need AdBlock. This files works at all rooted Android ROM's and phones, not only for Desire.
Source for AdBlock hosts file:
http://www.mvps.org/winhelp2002/hosts.txt
http://pgl.yoyo.org/adservers/serverlist.php?showintro=0;hostformat=hosts
See also my B&W Theme for Desire :-D.
Thank you
Thanks, works like a charm!
this block adds in apps?
Works very good! Thank you!
pinkolin said:
This MOD is two files:
Enable Adblock Update File
Disable Adblock Update File
Download this two files to your SD card, apply (flash from recovery) first file if you need AdBlock, apply second if you don't need AdBlock. This files works at all rooted Android ROM's and phones, not only for Desire.
Source for AdBlock hosts file:
http://www.mvps.org/winhelp2002/hosts.txt
http://pgl.yoyo.org/adservers/serverlist.php?showintro=0;hostformat=hosts
See also my B&W Theme for Desire :-D.
Click to expand...
Click to collapse
where do we put hosts.txt file?
pinkolin, there are extra lines at the end of the hosts file:
Code:
</pre>
</body>
</html>
I suppose they should not be there, even if they do not cause issues.
kmetek said:
where do we put hosts.txt file?
Click to expand...
Click to collapse
It's in /system/etc but if you flash the ZIP file above, it will put the file at the right place by itself.
Thank you
what is the difference between adblock and ad free? does one block website adverts and the other block adverts in apps, or do they do the same thing?
Another way to do it...
And with this solution you can use AdFree with no freeze :
With ROM Manager, reboot in clockworkmod recovery...
From your computer with adb in DOS mode (adb-windows.exe for me) do this :
> adb-windows.exe shell
you should have now a # prompt
# mount /system
# mount /data
# cd /system/etc/
# mv hosts /data/data/
# ln -s /data/data/hosts hosts
# cd /
# umount /data
# umount /system
Now you can reboot your system from Clockworkmod recovery menu
Install ADFree from the market, and it should work.
It worked well for me.
Use it at your own risk.
Just to explain what it does :
When phone is working the partition /system is in read only. ADFree tries to write in it, it crash.
The solution I give is the same as for bootanimation.zip
Move the file "hosts" from read-only file-system (/system) to a writable file-system (/data) and make a symbolic link to it in /system to fake it position.
Phone believes "hosts" is still in /system. and ADFree can write in it because it is in /data for real....
Thank you so much Orphee. This eventually fixed it for me after struggling for a couple of hours without success. Couldn't write hosts to system/etc/ while system running; couldn't get Droid explorer to mount files (device in recovery mode). Tried with Root Explorer and couldn't copy hosts to /system/etc/ due to 'file too large/not enough room' error. Tried with adb and again couldn't successfully copy hosts file. All very frustrating, and I wish I understood the problem better.
Anyway, your symbolic link solution finally cracked it, though I had to try twice. FIrst time Adfree stalled. Second time I ran 'Revert' first and it then it worked fine.
Hi there. I can't get this to flash. I get:
Code:
E:Failure at line 3:
copy_dir PACKAGE:system SYSTEM:
Installation aborted.
What now?
Orphee said:
Another way to do it......
Click to expand...
Click to collapse
Best explanation and instructions I've seen on this - thanks a lot!
hey guys,
I don;'t know if you already knew this but,
if i've installed adfree on my phone the application
pingchat! wont work anymore it cant get connected to the server
to send the messages :s and when i delete adfree it works normally...
I used the 'enable' zip, but my hosts file still cannot be changed. Using CM 6.0.2
Can this be applied from ClockworkMod recovery mode to a stock Froyo sense rooted phone that is odexed and s-on?
Also not answered is does it block website ads when in browser or/& ads that appear when running apps.
Anyone???
Edit: Worked like a charm! No more damm ads.
Thanks
Worked like a charm!!
carlos67 said:
Can this be applied from ClockworkMod recovery mode to a stock Froyo sense rooted phone that is odexed and s-on?
Also not answered is does it block website ads when in browser or/& ads that appear when running apps.
Anyone???
Click to expand...
Click to collapse
Yes it blocks the ads from apps & browser
Woah! Great! so, no ads when im playng Angry Birds!
Pure Calendar Widget (Agenda)
I use the "Pure Calendar Widget (Agenda)" from the market, after flashing the MOD and rebooting the widget fails to load my calendar. Have flashed the disable MOD and it's back to working as normal. Weird as its a paid app and there is no advertising in it.
How to Edit the HOST file to immune ad??
To edit hosts you have to be rooted. If you are rooted just get adfree from the market. It already blocks most ads and will update your hosts file automatically.
Not sure if folks here are aware of this, but most of the ads pushed to my phone have disappeared after I mapped a lot of ad servers to 127.0.0.1 (localhost, the phone itself) -- the idea is from http://forum.xda-developers.com/showthread.php?t=509997 who finally made an app out of it, but what I simply follow (maybe once in a month, as the host file is updated with newer domains) is: (1) download http://winhelp2002.mvps.org/hosts.txt and save it as "hosts" without extension (2) adb shell; su; remount /system (3) copy this file over /system/etc/hosts (4) reboot
Kousik
kousik said:
Not sure if folks here are aware of this, but most of the ads pushed to my phone have disappeared after I mapped a lot of ad servers to 127.0.0.1 (localhost, the phone itself) -- the idea is from http://forum.xda-developers.com/showthread.php?t=509997 who finally made an app out of it, but what I simply follow (maybe once in a month, as the host file is updated with newer domains) is: (1) download http://winhelp2002.mvps.org/hosts.txt and save it as "hosts" without extension (2) adb shell; su; remount /system (3) copy this file over /system/etc/hosts (4) reboot
Kousik
Click to expand...
Click to collapse
This is included in some of our roms, and does not belong in the dev section, especially because it is not your work at all
Just use Luckypatcher to remove ads in apps
Hey, if you are going to use the free version of an app allow the ads to be displayed. At least the dev of the app gets some revenue from it because you are too cheap to buy the non-ad version for a few bucks.
hi
I try to edit the hosts file in my nexus and it just not work that mean I puuled it out and edit it and when I try to push it back I get an error so I did it with my root explorer (I have root device)and still I can get to the site what am I doing wrong?
thank you
I7210I said:
hi
I try to edit the hosts file in my nexus and it just not work that mean I puuled it out and edit it and when I try to push it back I get an error so I did it with my root explorer (I have root device)and still I can get to the site what am I doing wrong?
thank you
Click to expand...
Click to collapse
Did u mount R/W the system partition? You can also use Hosts Editor app for that.
yes I mount r/w about the editor I want something you can't change in easly that way I want it manually
it suppose to be like these right (about google)
127.0.0.1 www.google.com
127.0.0.1 google.com
?
I7210I said:
yes I mount r/w about the editor I want something you can't change in easly that way I want it manually
it suppose to be like these right (about google)
127.0.0.1 www.google.com
127.0.0.1 google.com
?
Click to expand...
Click to collapse
127.0.0.1 domaine_name without "www." - always like that
still not blocking
I7210I said:
still not blocking
Click to expand...
Click to collapse
How can I help you with such information??? Which browser? Which domain?....
Hi,
I want add some sites on my hosts file. It seems generated by Adaway and there is this message :
Please do not modify it directly, it will be overwritten when AdAway is applied again.
How can I add some sites and avoid the overwritting by adway ?
Thanks
Add them in AdAway.