[SOLVED] here is copy of an adfree hosts file, and where to put it - EVO 4G Q&A, Help & Troubleshooting

i tried to get adfree to work using the supersonic rooted ROM, and managed to allow it root access, but it barfed every other time i try to run it, and when it doesn't barf, it forces a system reboot.
after doing some searching, i found a solution. at least for those of us with rooted evos. not sure if you other folks could push it or not, since it writes to /system

okay, for anyone that also hates ads, i found this thread that has a hosts file.
i did have a copy of that file. but i updated in the reply below (thanks phiqtion for the original!)
the way i got it to work was DL the hosts file, unzipped it, put it in my sdk/tools folder, then
adb reboot recovery
*i ran maejrep/flipz/pauls recovery bat file*
adb shell
# mount /dev/block/mtdblock4 /system
# exit
adb push hosts /system/etc
adb reboot
and voila! no more ads
of course, if anyone has a functioning copy of adfree and a more up to date hosts file, please post!
*note - i am running toastcfm's rooted pc36img ROM now, because the supersonic kept throwing up. but, this probably will not work if you are not rooted.

updated hosts file HERE
thanks mediocrehippie!

Here's one for you:
When I use an ad free hosts file on my EVO and I connect to the internet on my PC via the EVO and Android WiFi tether, it blocks ads on my PC browser as well!
Sweet!

you can put it in your computer and will block them even if you dont connect through your evo.

here is a copy of the latest hosts file from 7/31
-deck

Hmm. I've been doing it with root explorer. Copy the hosts file to /system/etc and over write existing file, then reboot. I think some off the new progs are pushing ads to us in other ways that the hosts file doesn't come into play with.
Sent from my PC36100 using XDA App

this needs root, no?

herbthehammer said:
Hmm. I've been doing it with root explorer. Copy the hosts file to /system/etc and over write existing file, then reboot. I think some off the new progs are pushing ads to us in other ways that the hosts file doesn't come into play with.
Sent from my PC36100 using XDA App
Click to expand...
Click to collapse
when i try to do this it says there is not enough available memory. any thoughts?

I just used the hosts file from:
someonewhocares.org/hosts/​
He updates is very regularly, I haven't seen an add get by yet.

So, its has been awhile since the last update, here's the latest updated hosts file I just work on today...

timothydonohue said:
updated hosts file HERE
thanks mediocrehippie!
Click to expand...
Click to collapse
Is there a link to an updated and maintained hosts file?

m4f1050 said:
Is there a link to an updated and maintained hosts file?
Click to expand...
Click to collapse
Bump for info?...

Anybody knoe of an updated hosts file
Does adfree work now or do I have it installed for nothing? I used root explorer to replace the hosts file.

pittnuma said:
Anybody knoe of an updated hosts file
Does adfree work now or do I have it installed for nothing? I used root explorer to replace the hosts file.
Click to expand...
Click to collapse
Ad-free just installs the hosts file, so if you're doing it manually then the app is pointless. Gimme a sec & I'll upload an updated hosts for you.
Edit: here you go. This is from the app AdAway, it's better than Adfree imo.
http://db.tt/DKzwDtXl

Many thanks, appreciated.

if i'd like to add adfree hosts sources, which urls i need to use?
thanks, great app!

Related

Help me edit my hosts file

So I need to edit my "hosts" file because it's blocking audiogalaxy. (a pretty cool music streaming app)
So far I have determined that the hosts file is just a text file. So I copied it and edited it with word.
My problem is I don't know how to replace the existing file because system/etc (the place where the hosts file is stored) is read only.
I think that I can flash this somehow, but, I don't know how to do this. Please help.
here ya go, i made you a hosts.zip. just open it up and put your hosts file into the system/etc/ directory, then sign and flash.
-BMFC
bmfc187 said:
here ya go, i made you a hosts.zip. just open it up and put your hosts file into the system/etc/ directory, then sign and flash.
-BMFC
Click to expand...
Click to collapse
+1 For that!
man that was super easy.
The only reason it took me so long to replay was because I was learning to learning how to sign an app.
hey, its all good. glad i could help. you prolly already figured this out, but keep the update then anytime you need to update your hosts just replace it and resign and flash again.
if you try to use adfree to update your hosts file, it wont work on slide*....but what it WILL do is save the hosts file to your sdcard, where you can transfer it to your pc, (optionally) edit it to your liking, then replace it in the update, resign and reflash.
*Adfree has an option now to symlink the hosts file to /data so that the app will work with a locked bootloader, but i couldnt get it to work. but i didnt really try very hard, either.
EDIT: where is your sig quote from?
-BMFC
bmfc187 said:
hey, its all good. glad i could help. you prolly already figured this out, but keep the update then anytime you need to update your hosts just replace it and resign and flash again.
if you try to use adfree to update your hosts file, it wont work on slide*....but what it WILL do is save the hosts file to your sdcard, where you can transfer it to your pc, (optionally) edit it to your liking, then replace it in the update, resign and reflash.
*Adfree has an option now to symlink the hosts file to /data so that the app will work with a locked bootloader, but i couldnt get it to work. but i didnt really try very hard, either.
EDIT: where is your sig quote from?
-BMFC
Click to expand...
Click to collapse
I think the quote in his sig is from the Borg
ratchetrizzo said:
I think the quote in his sig is from the Borg
Click to expand...
Click to collapse
I know this may sound crazy, but i dont watch TV. i assume that its a TV show...at any rate i have no clue what the borg is...never heard of it..
-BMFC
The Borg come from the Star Trek series. They are a race of cyborgs who consume the technology of other species and add it to there own.
Basically they take all the best of what everyone else has made. Kind of like I do with my phone.
apollostees said:
The Borg come from the Star Trek series. They are a race of cyborgs who consume the technology of other species and add it to there own.
Basically they take all the best of what everyone else has made. Kind of like I do with my phone.
Click to expand...
Click to collapse
That explains it...call me sacriligious but I never liked star trek...
-BMFC
Sent from my T-Mobile myTouch 3G Slide using XDA App

[Q] Edit hosts file

Hello,
After reading theads about this universal problem.
I'm still looking for a solution to edit hosts file.
I don't want to pay for root explorer app (sorry).
I've tried AdFree but it adds only "127.0.0.1 localhost"
is there a way to edit this f*** file. I've a hosts file to use but no possibilies to use it...
If someone can help me, (s)he will be very kind....
re Hello,
I've seen a thead a patch to make a link to a file on the sdcard (I don't know where on the forum exactly)
Is there someone to help me ?
I recently have been looking into changing my own hosts file. I use Astro with the root option enabled to copy the hosts file in /system/etc/ to my SD card. With Astro you can change file extensions. Rename your SD copy to hosts.txt and you can edit it with ThinkFree. As for copying that back over, I'm not sure if it's as direct. I would suggest using an Android terminal to do the edits because you can edit without having to use ADB (I found all this out through other threads). Make sure you're root(ed) as well (su command). Also you might have to reboot after copying over your new file. My PC has trouble with my hosts file.
Basically what I've seen is that there's a line in the file that the device can't "understand" (or find) perhaps. My PC file has a couple groups of sites that I copied from a website (after checking for loopback). All in all there was a box or something somewhere because the encoding wasn't the right one. (If you add the .txt extension on the device ThinkFree will ask you what encoding. I use the suggested but that's probably my issue on my PC.) My PC kept making a new, blank copy of my hosts and turning my custom one into an iCal file (?).
Hope this helps a little, even though you're only adding one line...
Sent from my SPH-M910 using Tapatalk
Hello
Thanks for the info.
I've manage to do a link to a hosts file located in the sdcard using adb when I'm in recovery mode.
Now When I use AdFree, the app can update without problem the file
Lol you could do adb shell
cd /etc/
cat hosts
and see what it outputs. If it's wrong just do echo urlhere 127.0.0.1 >> hosts
Indirect said:
Lol you could do adb shell
cd /etc/
cat hosts
and see what it outputs. If it's wrong just do echo urlhere 127.0.0.1 >> hosts
Click to expand...
Click to collapse
It's Ok,
when I do this, it outputs all the adress associated with 127.0.0.1
It displays the content of /sdcard/etc/hosts file.
Easy Host File
I have been able to change my hosts file with no paid apps,adb, or recovery. This will work with Astro or ES File Explorer.
Find and download the hosts file you wish to use; I use mvps. If you want to edit it or add entries do so now. To save it with no file extension on Windows under tools-->folder options enable "show file extensions for known types". Control click and select "rename"; rename "hosts.txt" as "hosts". Window will warn you about changing the extension but clear the warning. Copy this to the root of your sdcard.
On your rooted phone open your file manager (Astro or ES) and click menu. Allow root permission. You will see a legend that says your app has been granted superuser privileges. Navigate to sdcard and copy your desired hosts file. Go to root directory and paste the new file in /system/etc. You will get a warning that files will be overwritten/folders merged. Allow. Now you're done, easy money!
---------- Post added at 06:21 PM ---------- Previous post was at 06:15 PM ----------
To avoid a "blank" you have to show file types for known extensions. Editing is easy in Notepad++. This way you can add new annoyances at will. There's no place like 127.0.0.1!
I Understand the good side of your method.
Just a question. Can we do a link (ln -s....) via ADB with the original recovery ( the unrooted one) ?

[Mod]Ad free host file + hulu plus

Made this to have ad blocking and be able to watch Hulu on my gnex without having to revert from adfree every time I wanted to use Hulu. Just removed the lines that referenced Hulu.
IT IS ADVISED YOU MAKE A NANDROID BEFORE APPLYING.
Just rename "huluhost" to "hosts"
Backup original host file from /ect
Then move or copy new host to /ect
May need to delete cache/davlik
http://db.tt/HUhD8dRN
Sent from my Galaxy Nexus using XDA
Just saw this when I went back a page. Glad to find an updated hosts file with a bit extra bite. :-D Mind if I add some stuff to it, and use it in my ROM releases? I WILL give you credit for it. :-D
will this work on any device?
Or just nexus?
Yessss, thank you!
Sent from my Galaxy Nexus using Tapatalk 2
Didnt work fo me I had adds in every app.
Should work on any device.. host file is basically the same stuff as windows.. can even use this file for your windows machine and block the ads there too..
chevycam94 said:
Just saw this when I went back a page. Glad to find an updated hosts file with a bit extra bite. :-D Mind if I add some stuff to it, and use it in my ROM releases? I WILL give you credit for it. :-D
Click to expand...
Click to collapse
Not at all do what you want with it.
Medic97 said:
Didnt work fo me I had adds in every app.
Click to expand...
Click to collapse
Yea sorry. You have to rename it to hosts
Originally the OP said host
*OP has been updated*
Sorry about the typo. It should work once you rename it to hosts.
Does my Nexus have to be rooted? Aside from the ad's, I'm pretty happy with it the way it is. I can't find the /etc folder or a hosts file at all.
meganame said:
Does my Nexus have to be rooted? Aside from the ad's, I'm pretty happy with it the way it is. I can't find the /etc folder or a hosts file at all.
Click to expand...
Click to collapse
You need root.
@blue2107 the file is down.
FYI. Here is a the method I use, it will also keep your file up to date.
1) Use adfree to download latest hosts file, this will also backup your original
2) Copy the file to your sd card
3) Open the file with a text editor that supports "find and replace" function, I used Jota Text Editor
4) Replace "hulu" with something else, I use "nothulu"
5) Replace the ect/hosts file with the one you just edited
Let me know if you have any feedback or if you have any problems with this method.
Also I attached a copy of the file I am using.
Check out "AdAway"
https://play.google.com/store/apps/details?id=org.adaway
It has a white list feature.
I have not used that feature myself, but the application is great.

HyperDrive ROM Help Please thanks

okay i installed the rom about 1 week ago, and i wanna know if someone can help me
1st off is there anyway i can disable the adblocker after i installed it.
2nd my viper4android is not working any help?
thanks for reading this thanks guys have a great day
Galaxy note 3 n900t KK 4.4
re: ad blocker
CODGOD35 said:
okay i installed the rom about 1 week ago, and i wanna know if someone can help me
1st off is there anyway i can disable the adblocker after i installed it.
2nd my viper4android is not working any help?
thanks for reading this thanks guys have a great day
Galaxy note 3 n900t KK 4.4
Click to expand...
Click to collapse
Ok, the way to disable the hosts file is easy.
Use a root capable file manager like Root Explorer
and go to /System/Etc (open the etc folder).
There you will find a file called "hosts", just delete
the file and restart the phone and your done.
If you ever want to install another or aa new adblocker
it will re-create the hosts file for you automatically.
Good luck!
Perfect!!!!!!
Misterjunky said:
Ok, the way to disable the hosts file is easy.
Use a root capable file manager like Root Explorer
and go to /System/Etc (open the etc folder).
There you will find a file called "hosts", just delete
the file and restart the phone and your done.
If you ever want to install another or aa new adblocker
it will re-create the hosts file for you automatically.
Good luck!
Click to expand...
Click to collapse
Nice direction. I can't wait to use this.
Misterjunky said:
Ok, the way to disable the hosts file is easy.
Use a root capable file manager like Root Explorer
and go to /System/Etc (open the etc folder).
There you will find a file called "hosts", just delete
the file and restart the phone and your done.
If you ever want to install another or aa new adblocker
it will re-create the hosts file for you automatically.
Good luck!
Click to expand...
Click to collapse
What if I don't want to delete the host file? Can I edit the host file? the settings would be like this only?
127.0.0.1
re: hosts file
Lorettaa said:
What if I don't want to delete the host file? Can I edit the host file? the settings would be like this only?
127.0.0.1
Click to expand...
Click to collapse
You can always rename it to hosts.bak, and you can also edit it manually
with an appropriate ascii editor.
If you know exactly which line in the hosts file causes problems with some other
app that are installed in your phone then you can if you like remove that one line
only and leave the rest alone so it will continue to block ads from the other apps
or sites and so on.
Good luck!
Thank you sir. Renaming it to .bak is also a good trick.
Adaway: http://forum.xda-developers.com/showthread.php?t=2190753
It also work with 4.4.2 Kitkat. I personally use this with Lucky patcher and able to get satisfy result. See how that goes for you .
@Lorettaa Thanks for the tips, I will try that and will let you know how the results work out.
No problem dude.

Marshmallow not reading /system/etc/hosts?

This is a weird one. I can't seem to get my T-Mobile One M8 running Marshmallow to use the entries in the hosts file.
First I rooted my phone and installed Adaway. Went through and made the sym link from /system/etc/hosts to /data/data/hosts, Adaway succeeded - but no ads were blocked. I opened both the raw file and the symlink in Root Explorer, and they looked fine, but pinging any of the entries went to the real server instead of 127.0.0.1.
So I tried more basic and put the stock /system/etc/hosts file back in place, then copied over StevenBlack's host file over it. Same result. It's like Marshmallow doesn't even give a crap that there's a hosts file there and refuses to load anything from it. I even verified it was saved in UNIX format via Notepad++.
For all the steps, I only made changes in TWRP after mounting the system rw, and the changes in the hosts files stayed after a reboot.
Any ideas? I'm really stumped.
Did you ever figure this out? I have the same issue...
Hi!
I've had the same problem on my M8s. Checked multiple times the permissions, file formatting and nothing worked. Then I've added a line
Code:
net.tethering.noprovisioning=true
to the /system/build.prop file and now hosts file is working as it should
Since I can't post links in my posts due to xda policy PM me if you need link to a full guide how to do this.
Spend long time to figure out why ad blocking doesn't work on mine HTC one. Thanks !

Categories

Resources