yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] DanielMalmgren:
I'm suspecting that my problem above got lost in our off-topic discussion, so I'm trying again. [MENTION=1561860]delta_foxtrot2[/MENTION] it doesn't work for me anyway :( The app now says my hosts file is up to date but the only hosts files I can find are /etc/hosts and /system/etc/hosts and both are empty except for localhost. Searched the entire device for files named hosts (the search even found an old mp3 with the theme music from Ghosts'n Goblins). How is that possible?
[Android Apps and Games] delta_foxtrot2:
Did you symlink /system/etc/hosts to /data/hosts?

Most new phones make /system read only except if you use a custom rom or custom bootloader
[Android Apps and Games] DanielMalmgren:
There

is

no /data/hosts! That's what's confusing me...
[Android Apps and Games] Normandroid:
I have tried a number of things and still have adds. I'm pretty sure I just haven't done the simlink correctly in the instructions. for clarification, I go into TWRP, mount, tick the box on system, back out to advanced, go into terminal and type all the lines written and then reboot? After those steps, I still have adds.

I'm not sure what thundercattt did differently, as I'm not terribly familiar with terminal other than adb commands. Maybe if someone here could help me out with the difference in what [MENTION=1561860]delta_foxtrot2[/MENTION] and thundercattt did, I can get AdFree to work again.

I love this app, been using it since Galaxy Nexus days. Thanks.

UPDATE: Not sure what I did to make it stick, but after messing around with Terminal in TWRP I got AdFree to work!
[Android Apps and Games] delta_foxtrot2:
Adfree creates it if you tick the symlink option.
[Android Apps and Games] delta_foxtrot2:
Yea it's becoming increasingly difficult probably to stop us from blocking ads without creating too much outcry...
[Android Apps and Games] DanielMalmgren:
Nope. Tried that, still nothing. Where exactly is the symlink expected to point?
[Android Apps and Games] svbarbosa:
/data/hosts.

You have to mount /system "r/w" in order to let AdFree create the symlink.

If you have Root Explorer navigate to /system and press the [MOUNT R/W] button that is displayed on the top right of the screen.

Then just run AdFree. Make sure the "Create symlink if needed" is marked and press the "DOWNLOAD AND INSTALL HOSTS" button.
[Android Apps and Games] DanielMalmgren:
Ha! That worked! So actually /system needs to be mounted rw in order for the app to download the hosts file to /data? Really makes no sense to me... Also this has always worked without doing anything else than clicking the download button, is that nougat doing things differently?
[Android Apps and Games] svbarbosa:
It is needed AFAIK since M. But just to create the symlink, because it is written to /system/etc.

Once the symlink is there updates work as usual. No need to do it again.
[Android Apps and Games] Atom Heart Mother:
Beautiful work
[Android Apps and Games] SegAgeS:
I'm not able to mount my system folder, I've tried using root Explorer and it looks to work but as soon as I exit the app it's not mounted. I've also tried commands in material terminal but they don't work either. Have I done something wrong when rooting? I can't get adfree to work at all
[Android Apps and Games] delta_foxtrot2:
Did you try leaving root explorer open and switching to adfree?
[Android Apps and Games] SegAgeS:
Yes I've switched between them but its still not working.
[Android Apps and Games] delta_foxtrot2:
Did you try setting it R/W in the bootloader and manually making a symlink?
[Android Apps and Games] SegAgeS:
I haven't I'm unsure about the adb side of things is there an installation / user guide for it?

- I think ive now installed it correctly, clicked system in mount within TWRP but after the first line of code cd /system/etc i get the error 'the system cannot find the path specified
[Android Apps and Games] delta_foxtrot2:
What OS is running on your computer?
[Android Apps and Games] illhangon:
Yes.
[Android Apps and Games] oae08:
All ad blockers were removed from playstore...
[Android Apps and Games] Rocket42:
Finding this made my day!!! Have had the app for a very long time and was using despite it not on mkt any longer but yesterday it told me i had an old version and to update..huh???!!! Went into the app and found my way here.

VERY HAPPY AGAIN

Sent from my SGH-i317

Using SkyBlue Xparent Tapatalk
[Android Apps and Games] Russbad:
Hulu Plus not working

So I registered and added the host files list for anything that says. hulu.com on my whitelist, but Hulu Plus still crashes when the adds come up. Any ideas on how to get it working to enable adds so I can watch my shows? Thanks.
[Android Apps and Games] shaikhsumair99:
Will try this.
[Android Apps and Games] dragonOL2:
I am in the exact same boat! Hulu Plus crashes no matter what I try. If anyone has figured out how to white list something in order for Hulu Plus to work, please fill us in!
[Android Apps and Games] qashqool:
hello delta, your app is wonderful.

I found an app (game) that does not work without ads, says to me to remove adds block :) is the price to pay for not wanting to see :highfive:

DS battery saver has an annoying ad when it starts, adfree cant block it. How can I manually block it?:confused:

I appreciate the help

Thks for help us
[Android Apps and Games] oae08:
What is this game lol. Try using a firewall to block this game internet connection = no ads.
[Android Apps and Games] qashqool:
Hi, the game is 4 in a row.
[Android Apps and Games] gardell3:
Good job! Thank you. Works great
[Android Apps and Games] boyoboy:
Revert to an older apk file, like Hulu Plus 2.7.201013.

And to un-check auto update in the play store for Hulu Plus.

I've add my copy of apk file, let me know if it works for you as it does for me.
[Android Apps and Games] anbaalie:
problem

after i had installed it

it give me update file (the first loading screen)

and i was waiting a lot but it does not open the app

so what can i DO ?

my phone is Desire HD android 2.3 with stock ROM

please can you help me?:confused:
[Android Apps and Games] dragonOL2:
Wow! Excellent, awesome! That did the trick, thanks much! :beer:
[Android Apps and Games] Mazer.one:
You're right, i changed my rom and it missed super Su ... :D

Everything works fine now , sorry.

Thanks for your work :thumbup:

Married… with Children
[Android Apps and Games] iflip:
Does this get rid of those pesky notification ads that pop up in the notifications bar when you install certain free Apps? I refuse to use those Apps that do that.
[Android Apps and Games] babylonbwoy:
Is it the "official" thread by the dev of AdFree ? If yes, then congrats for the relatively new UI, looks good and works as expected!

Thanks if you are from BigTinCan.
[Android Apps and Games] Rocket42:
Just checking in.... I installed the app from adfree website 4 days ago...i don't do anything special...as far as settings...just have the 127..... Checked after install it installed the host file but i check everyday and there hasn't been an update since...is this correct?

Sent from my SGH-i317

Using SkyBlue Xparent Tapatalk
[Android Apps and Games] Sancipak:
This app works great.... Bye2 add....awesome work.... But, there's always a but .....:p... I cant opened link from a.d.f.l.y...... Is there anyway to allow it..... ?
[Android Apps and Games] infectedorganism:
I would assume that there simply isn't an update available. Check 'check server for updates daily' and 'automatically apply updates', sit and forget.

That has never failed me, but on the off-chance that I do get an ad, I will run the program manually.
[Android Apps and Games] Rocket42:
Thank you very much for your reply!! Yeah...not a fan of auto updates but worth a shot

Sent from my SGH-i317

Using SkyBlue Xparent Tapatalk
[Android Apps and Games] Soli M:
Looooooooool
[Android Apps and Games] SegAgeS:
I'm using Windows 10
[Android Apps and Games] delta_foxtrot2:
A quick google of "ADB Win10" brought this up

https://xdaforums.com/showthread.php?t=2588979
[Android Apps and Games] SegAgeS:
Thanks for that, i think i need to learn to use google better.

I've installed everything correctly but im getting the errors below once im in twrp and ticked the system box in the mount section

C:\adb>cd /system/etc

The system cannot find the path specified.

C:\adb> rm hosts

'rm' is not recognized as an internal or external command,

operable program or batch file.

C:\adb> touch /data/hosts

'touch' is not recognized as an internal or external command,

operable program or batch file.

C:\adb> ln -s /data/hosts /system/etc/hosts

'ln' is not recognized as an internal or external command,

operable program or batch file.
[Android Apps and Games] delta_foxtrot2:
You need to do "adb.exe shell", then if you get a '$' prompt do "su" to get root access, or if you get a '#' prompt you can then run the commands above
[Android Apps and Games] SegAgeS:
I think it's sorted now thanks a lot for your help
[Android Apps and Games] molitar:
I am not sure if the app is working. After reading threads from here I need to download the newest version and I have done that. I used adb to manually create the symlink and I have verified that the /system/etc/hosts and /data/hosts are identical so it linked properly. It is full of hosts but when I go to view blocked hosts or view TCP host names it is blank. Is the app working properly?

Second issue since I had to download new version it now reports authentication error. I tried to register but I get an error on site for registration.
[Android Apps and Games] Brogy:
Also I can not register, writes: There was a problem that support need to check into, please check back shortly
[Android Apps and Games] delta_foxtrot2:
Was a problem with the database defaults and a recent mysql upgrade, I've fixed this and you can now register.
[Android Apps and Games] Brogy:
Thank you very much, everything works
[Android Apps and Games] kijkmeaan:
Hi, I can't open any adv. When I search with Google. I get blocked on "googleadservices". Couldn't find it with search.
[Android Apps and Games] delta_foxtrot2:
There is 7 hostnames in the db matching that....

4.afs.googleadservices.com
feedads.googleadservices.com
googleadservices.com
imageads.googleadservices.com
pagead2.googleadservices.com
partner.googleadservices.com
www.googleadservices.com
[Android Apps and Games] tomtom_38:
Hello I have a shield K1 and with the latest official update, adfree does not work in Browser like chrome Firefox opera.

In app it works fine. the devices has root access, no error message apears.
[Android Apps and Games] delta_foxtrot2:
Are you able to check the contents of /etc/hosts?
[Android Apps and Games] RussianBear:
Do you have to issue those adb commands, even when your system is rw? For whatever reason the app isn't able to alter the file in the etc folder. I had to copy a host file off another working phone running 6.x (I'm on 7.x now). I do have the latest app from your site.

Thank you!
[Android Apps and Games] delta_foxtrot2:
The ROM on some phones incorrectly report the partition as RW, in these cases you need to run the ADB commands from the boot rom.
[Android Apps and Games] phonetool:
Is ADB the only way? Possible with some editor on the phone?

Thanks
[Android Apps and Games] delta_foxtrot2:
ADB was the easiest way for me to do it, but doing it from console would also work.
[Android Apps and Games] RussianBear:
Did mine thru twrp console.
[Android Apps and Games] nelsongeorge:
word "ad free " sounding nice to here
[Android Apps and Games] phonetool:
How do we report a spam account from the xda phone app?
[Android Apps and Games] Sachin:
Report spam users here :- [Report spammers]
[Android Apps and Games] jayesh0099:
Hi,

I think its not working in my phone.

In mxplayer still able to see the ads.

I have tried to perform the steps which were provided for Android 6.0.

Performed steps from android terminal and also tried to perform the same from TWRP terminal.

Also, i have tried to use the option of TCP dump but not showing anything in "View TCP host names" but its just blank.

Can someone please help me to make it work.

Thank you in advance.
[Android Apps and Games] delta_foxtrot2:
I've noticed that some apps/webpages have "builtin" ads if they notice ad blocking.

Did you make sure the partition is set RW?

What phone/ROM?
[Android Apps and Games] jayesh0099:
Oneplus X AICP ROM (Android 6.0)
[Android Apps and Games] delta_foxtrot2:
is there another hosts file on your phone?
[Android Apps and Games] jayesh0099:
Nope. I have search hosts file through file manager.

Found only 2 result

1) /system/etc with soft link

2) /data/
[Android Apps and Games] papatzis:
Hi to all I am new to all these.I had check the local web server option.Can you please tell me how to access this server from my PC?

And something else. I had also checked Run TCPdump option. But I cannot know how to see Tcpdump screen.Sorry for my foolish questions.

Ads are blocking fine and I had had logged in the app with my credentials

I can also add hosts to the white black list using your site and my credentials

Thanks in advance.

Στάλθηκε από το Redmi Note 4 μου χρησιμοποιώντας Tapatalk
[Android Apps and Games] delta_foxtrot2:
I still need to get a new version of lighttpd as the current one doesn't work on latest versions of android, in any case it wasn't for sharing with other computers as it only listened to local loopback.

Since most ads and sites are going to https this isn't a solution that will work into the future in any case.
[Android Apps and Games] CUBENSIS:
what are the sources for the adfree hosts file? The hosts file lists 2 sources (PGL, MVPS), but the actual hosts file created has approximately 4x the entires that the PGL and MVPS contains. There must be more sources.
[Android Apps and Games] powerpuff1978:
I am trying to use Adfree on my OP5 and although the app reports success the host file in /system/etc doesn't change. The odd thing is if I start the app a second time it reports that the host file is already up to date so obviously it's editing something
[Android Apps and Games] Neil_Hines:
Hi, friends thanks for sharing and discuss this topic its really great topic for me. :o
[Android Apps and Games] delta_foxtrot2:
I just checked the update script and these are the current sources are:

$hosts = trim(file_get_contents("http://winhelp2002.mvps.org/hosts.txt"));

$hosts .= trim(file_get_contents("http://pgl.yoyo.org/adservers/serverlist.php?showintro=0;hostformat=hosts"));

$hosts .= trim(file_get_contents("http://hosts-file.net/ad_servers.asp"));
[Android Apps and Games] powerpuff1978:
I searched the entire device and the only two flocarions are in /etc and /system/etc

- I then made sure both of these files were renamed

- updated the host file from the app

- checked for a newly created host file (there was none)

- reopened the app and was told my host file was already up to date?
[Android Apps and Games] powerpuff1978:
I tried the AdAway application from the XDA app and it worked on the first try. Perhaps adfree android can borrow some code from this other project and solve this issue.
[Android Apps and Games] delta_foxtrot2:
The app uses a data file to track updates and gets a timestamp from the server to tell if it's up to date.

As for why hostname redirects aren't working for you I have no idea.
[Android Apps and Games] dwixprasetia:
I can,t open to start adfree. Still loading, why?

My phone mtk6580 android.6

And host file in /system/etc
[Android Apps and Games] delta_foxtrot2:
The hosting provider, which has been rock solid for 10+ years, seems to have gone belly up, and I'm trying to find a replacement and would welcome any suggestions.
[Android Apps and Games] Galaxy droid fan 7:
Try adaway it's a good replacement use it myself on my Galaxy Tab 3 all the time
[Android Apps and Games] phonetool:
LOL

You're telling the author of this app to try someone else's app when all he's looking for a network host?
[Android Apps and Games] Galaxy droid fan 7:
I don't mean to double post just don't know how to edit my post using Tapatalk ROFL here is the official link for it where you can download it https://f-droid.org/packages/org.adaway/ just make sure to enable install from unknown sources after you download the APK

---------- Post added at 07:37 PM ---------- Previous post was at 07:24 PM ----------

And here is a link to the hostnames for crackle if anyone is interested it works great once you add in the host names that look kind of like IP addresses it will block ads inside the Crackle app https://www.stephanpringle.com/hosts/crackle.txt the only thing that does not work with is YouTube but recently I discovered the new version of OG YouTube and modified YouTube app works great and has no ads plus it has background Play support you can listen to your favorite YouTube videos while multi-tasking :) https://www.apkmirror.com/apk/ogmod...ogyoutube-12-10-60-3-5u-android-apk-download/

---------- Post added at 07:40 PM ---------- Previous post was at 07:37 PM ----------

Oh I'm sorry I didn't know no hard feelings? :)

---------- Post added at 07:47 PM ---------- Previous post was at 07:40 PM ----------

And just for the record your app kicked butt I like it way better than AdAway I miss my little green app with the white umbrella XD It quit working about a year or so for me. I thought development was shut down I guess I was wrong send me a message when you have this figured out again I hope there are no hard feelings :) have a good day!
[Android Apps and Games] no_logic:
You already found new hosting, judging by the fact the site is up again and app can update? Very good, thanks for the quick action! :good:
[Android Apps and Games] delta_foxtrot2:
It's not fully working, I had a couple of corrupt tables, I'm hoping the old server will come back up sooner rather than later, some people with the same hosting provider have their systems up, but very very slow.
[Android Apps and Games] delta_foxtrot2:
I've managed to recover the corrupted tables and everything should be working again, let me know if there is any problems still.
[Android Apps and Games] delta_foxtrot2:
Make sure you get the app from the website(https://adfree.odiousapps.com), there is old versions floating about that won't work due to domain changes etc
[Android Apps and Games] tEmpes7uouS:
Hey,

I'm on android 7.1.1, and well, I tried download & install, and it said it was successful, but then when I went to check the hosts file, it was unchanged, no lines added. Am I missing something here? oh and yes I'm rooted.
[Android Apps and Games] ezioturkdevs:
Thanks :good:
[Android Apps and Games] delta_foxtrot2:
Did you follow these instructions
[Android Apps and Games] tEmpes7uouS:
What does that do exactly? There's only one hosts file on my phone btw, under system/etc.

---------- Post added at 04:44 AM ---------- Previous post was at 04:42 AM ----------

Also, those instructions are fairly vague. Better if you wrote them out properly.
[Android Apps and Games] delta_foxtrot2:
It makes a symlink in /data because from android 6 the main partition is read only when booted, and those instructions make a work around.

Feel free to make a new post describing the same process and I'll be happy to link to it instead.
[Android Apps and Games] tEmpes7uouS:
I'm not the developer.. it's almost as if you don't want people to use your app. You still haven't explained what exactly it does, btw. As far as I understand it creates a second hosts file in a location that is writable, and links it to the read-only hosts file.. but I'm rooted, so why would my original hosts file not be writable? hold on, I'm going to try to manually add a line to it.

---------- Post added at 10:10 PM ---------- Previous post was at 10:06 PM ----------

Yep, worked. Could add stuff to the hosts file just fine.
[Android Apps and Games] delta_foxtrot2:
I'm not bi-lingual but people supplied translations for the benefit of others.

As of android 6, some, not all, device lock the main partition as read only when booted up.

Well /etc is a secondary location linked from /system/etc

Can you privately message me your location for /system, it may differ to past/current partitions.
[Android Apps and Games] svbarbosa:
Hello [MENTION=1561860]delta_foxtrot2[/MENTION]!

I created a flashable zip with a script to automate the creation of the hosts symlink.

I tested in my Note 3 running RR 584 Nougat 7.1.2 rom.

Feel free to use it.

EDIT: Uploaded newer version. It works well also with Oreo. Tested with many devices from Samsung, Motorola and Xiaomi.

.
[Android Apps and Games] delta_foxtrot2:
Thanks for that, I've updated the notice on the first post to link to your post.
[Android Apps and Games] phonetool:
Works for me on Lineage 13.0 (6.0.1 marshmallow) on my Galaxy Nexus. Thanks bunches!
[Android Apps and Games] svbarbosa:
This zip is only a shell script, based on this thread:

[DEV][TEMPLATE] Complete Shell Script Flashable Zip Replacement + Signing [SCRIPT]

. Great work by [MENTION=4544860]osm0sis[/MENTION].

Since there is no binary it should work both in 32 bit and 64 bit phones. ;)
[Android Apps and Games] phonetool:
Also worked on my S3 with Lineage 14.1 (7.1.2).

Thanks again for making the fix so easy!
[Android Apps and Games] betongsky:
hi! How to uninstall that flashable zip file manually? Or can we request for you to create a flashable uninstaller pls? Im pertaining To fix host zip file. Thank
[Android Apps and Games] svbarbosa:
Just dirty flash your rom.
[Android Apps and Games] phonetool:
I learn new things every day
[Android Apps and Games] betongsky:
Thanks for the reply bro svbarbosa
[Android Apps and Games] KvasMax:
very good app
[Android Apps and Games] svbarbosa:
Fix Hosts for Adfree v2

I have an improved version of my Fix Hosts zip.

Now if there is already a hosts file in /data folder this file will be kept and linked to /etc/hosts.

So when you dirty flash your rom and run the fix, the correct hosts file will be kept and you stay ad free. No need to rerun adfree app on first reboot.

Get it from AFH:

Fix-hosts-for-adfree-v2.zip

.

Enjoy!

P.S. [MENTION=1561860]delta_foxtrot2[/MENTION], of course feel free to add this new version to the OP, using the above AFH link if possible.
[Android Apps and Games] delta_foxtrot2:
I'd rather link to a post with howto type info, rather than blindly linking to a file.
[Android Apps and Games] bastol85:
Tried this but still no hosts when checking from adfree. Running android 7 on Huawei nova rooted.
[Android Apps and Games] McRoy:
Still works on Oreo?

Flashable zip from [MENTION=3342533]svbarbosa[/MENTION]: Fix-hosts-for-adfree-v2.zip.

Or APK from: http://adfree.odiousapps.com/

??
[Android Apps and Games] svbarbosa:
I have not tried Oreo yet so can not answer that.

The apk is always needed. The zip is to use AdFree under Nougat.

You flash the zip using TWRP to create a symlink to /system/etc/hosts in /data.
[Android Apps and Games] MSK1:
Not sure if I have installed properly....

Lots of ads still coming through...

I am rooted and have lollipop installed on my note edge.

Have I installed incorrectly?
[Android Apps and Games] svbarbosa:
Check the size of /etc/hosts. It should be >2Mb. Or linked to /data/hosts also >2Mb.

If you are running Marshmallow or later use my zip to create the link. See post right before yours.
[Android Apps and Games] MSK1:
How do I do that. .. I can't see where I can do it
[Android Apps and Games] MSK1:
For clarity...

I have lollipop I believe... so just looking to understand how I can change the host size to pick up more ads.

When I click view host names the screen is blank. ..

But when I open the app it says the hosts are up to date.
[Android Apps and Games] svbarbosa:
Then it will be easier to flash my zip. It will not do any harm and might fix your problem.

Get it from here:

Fix-hosts-for-adfree-v2.zip

.

Reboot into recovery and flash the zip.

Then reboot into system and run adfree.

Make sure your settings match my screenshot.

Even if adfree tells you no update is needed press the [Download & Install Hosts] button to force an update.

Reboot again and you should be adfree!
[Android Apps and Games] Dincrid:
Thank you! Works great on HTC One
[Android Apps and Games] andreskafe:
This app and zip is for Nougat 7.1.2?