yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] petrus764:
Tried that, didn't work. Think it has to do with having to use systemless hosts on 7.0 and the mount stuff that supersu systemless patches gets reversed when unrooting and restoring the original boot.img.

Edit: unrooting without restoring stock boot.img keeps adblcok, but then the app that I want to use still detects modified software.
[Android Apps and Games] Nex23:
Hey guys,

having trouble here.

I flashed the zip-host-file with flashfire, then installed the adaway apk.

So what do i do now exactly ?

edit:

1. Boot in bootloader mode

2. fastboot boot twrp-3.0.2-1-bullhead.img ................... does this mean going into recovery mode ?

3. In TWRP mount system partition
[Android Apps and Games] robot_head:
What are permissions for zip file, I'm on a x86 CPU and a lot of things won't flash, flash fire doesn't work on this phone either.. I placed file with root browser, need permissions for folder and files in folder? Thank you
[Android Apps and Games] antroid88:
Before installing AdAway did you try these steps http://xdaforums.com/showpost.php?p=68376352&postcount=6817 ? What they do - you create hosts file in another partition and point it to the system through symbolic link (it's kinda a shortcut like in Windows). Then you point in AdAway to the new location of hosts. So when it updates hosts it doesn't touch system partition. I can upload my hosts file if you want, but I believe it won't help you because to follow steps above you have to load into recovery because if system is mounted (Android is loaded) you can't delete original hosts file and create symbolic link even if you try chmod 777 on the original hosts. This problem is well described in AdAway help under S-on/S-off.

---------- Post added at 12:50 PM ---------- Previous post was at 12:46 PM ----------

2. - it means you flash custom recovery via adb command.

Actually did you try first to apply ad blocking in AdAway. There's a chance that you don't need to follow these steps. zip and these steps are different ways to make AdAway work on N.
[Android Apps and Games] Nex23:
2. - it means you flash custom recovery via adb command.

Actually did you try first to apply ad blocking in AdAway. There's a chance that you don't need to follow these steps. zip and these steps are different ways to make AdAway work on N.[/QUOTE]

Hm ah so when i have rootet i dont need this i guess.

Well, i dont know if it works. At least it didnt get all ads. Edit: I think it works to be honest. Just in one app it doesnt seem to work.

So for all who have questions: If you are rootet flash the ZIP via Flashfire (i think you dont have to checkbox anything), then install the apk, and that's it.
[Android Apps and Games] antroid88:
Hm ah so when i have rootet i dont need this i guess.

Well, i dont know if it works. At least it didnt get all ads.[/QUOTE]

You have to be root to use AdAway. And with N there are several ways to make this app work:

1 - follow the steps that you quote above

2 - flash the zip from the first post and try to run AdAway..

If you are in the US, you won't see any adds in apps or websites if AdAway works.
[Android Apps and Games] Nex23:
I see. No, i am in central Europe.
[Android Apps and Games] petrus764:
Thanks, but my problem isn't getting Adaway to work. I'm trying to use a modified hosts file on Nougat with a 5x and non modified boot.img (alas without root). But I'm not sure it's possible anymore, like it was on the nexus 5 and marshmallow. Installing adaway and unrooting doesnt work, cause when I unroot and restore the original boot.img adblock stops working aswell. Guess it's the symlink thats removed in the process.

Anyway, since adaway is the only thing I root for these days, I'd hoped to find another way to enable adblock but I guess I'm still stuck with root. Ironic that iOS supports adblock in safari, the one thing I miss in android.
[Android Apps and Games] mkp52mkp:
guys I'm using nougat prerooted stock+ rom on 6p. this error is showing on adaway. any help plz..
[Android Apps and Games] RollTribe:
Hmm... I tried this and AdAway says there's no symlink between my location and the system/etc/hosts location. I feel like I must have put in the final command wrong, but I don't want to mess up re-entering it. Should I just re-enter the final three commands to try to create the symlink? I'm not an expert with linux terminal, thanks.
[Android Apps and Games] mitchdickson:
Lol read literally a few posts before yours. It's crazy how people just post before making any effort.
[Android Apps and Games] mkp52mkp:
sorry i should've read first. its solved now. just had to flash the zip. :D:silly:
[Android Apps and Games] antroid88:
No worries. The actual command to create symbolic link is

ln -s /data/hosts ./hosts

.

cd /system/etc/

navigates you to etc folder on system partition

rm hosts

delete hosts file

touch /data/hosts

creates new enpty host file

chmod 666 /data/hosts

gives users permissions to read/write the file, but not execute

ln -s /data/hosts ./hosts

creates symbolic link from new hosts file in /data to it's proper location in /system

I believe you missed slash, eg typed system, not /system somewhere. Bash is sensitive.
[Android Apps and Games] pkelly517:
Yes.

We know.
[Android Apps and Games] dark_polok:
Hello!

I want to install adaway on my Redmi 3 Pro which is currently on 6.8.25 dev rom from xiaomi.eu. It's running android 5.1.1 and the recovery version I have is TWRP 3.0.2.0. How should I install the app?

Should I Flash the systemless flashable .zip file in recovery and then install the app?

Or should I simply install the app without doing anything in the recovery.

Thanks
[Android Apps and Games] srynoname:
What exactly does this zip file do? Can I do manually what the .zip does? I don't like to flash zips from unknown sources. Thanks.
[Android Apps and Games] corkiejp:
You don't have systemless root, so no point in flashing the zip. Just Install the app.
[Android Apps and Games] ktmom:
AdAway doesn't much care about anything but where to put the hosts file. That depends on how you're rooted.

If you are using systemless root (system partition is unmodified or unwritable); flash the zip first, then install the apk. If you have trouble and flash the zip in twrp (or FlashFire) save the log to see what happened when the zip was flashed.

If your system partition is modified and writeable, just install the apk.
[Android Apps and Games] Toutatis_:
"from unknown sources" :crying:
[Android Apps and Games] ktmom:
If you had read the requisite 10 pages back, you would have found this post.
[Android Apps and Games] noobp:
Hello i like this app! It definetly works i have less ads but still have sometimes when a youtube video starts. I use the hosts sources that come with the App + host from malwaredomainlist. Can you give me a better source to stop that ads on the youtube video start. Thank you!
[Android Apps and Games] Toutatis_:
You can't block YouTube adds with AdAway. You need Xposed and the module YouTube AdAway by wanam
[Android Apps and Games] srynoname:
Hmm, not for me. I did these steps, changed location in Adaway, regenerated hosts file in Adaway, rebooted phone, but Ads still showing in Chrome (data saving turned off).

I am on Nexus 5X with Android 7 stock. Any idea what could be wrong? Thanks for any hint!
[Android Apps and Games] Nex23:
I heard that adaway doesn't work in chrome. Also not in the YouTube app. Doesn't work in Leo as well. Try "walloid" or "pi music player" you should see no add there.
[Android Apps and Games] NLBeev:
Adaway is a 'hosts' file manager.

Url's of ads are redirected to the ip-number of the device itself.

Probably YouTube and Chrome use other nonstandard functions.
[Android Apps and Games] githyanki:
It works in chrome. Be sure to disable data saver.
[Android Apps and Games] antroid88:
Try to flash zip from the first post. Reinstall AdAway and regenerate hosts.

PS: AdAway works in Chrome, apps, but not in youtube, spotify where ads are not banners.
[Android Apps and Games] tanfidzularus:
Okay, I guess opera is an exception.

But on several app I still see ads. I already installed minmin guard too. But ads still around. Any work around I should try?
[Android Apps and Games] androcraze:
What apps?

Some apps can pull-in ads that circumvent the hosts file (YouTube is probably the most prevalent example). AdAway is simply modifying the hosts file, and nothing more. If an app doesn't route through "hosts", there's nothing that can be done via AdAway.

You have some options:

1. Find a similar app that does what you want it to do, that doesn't have ads.

2. Try AdBlock. AdBlock has some additional bells and whistles, and can pull a few "tricks". I've never used it, but folks have come in this thread asking whether AdAway can mimic some of the AdBlock features.

3. Install xposed, and add modules that support ad-blocking for the given app.

4. Pay the developer for the registered version of the app, so the ads will go away.

I favor #1. If you can't find something similar, ask.

FWIW, Lightning Browser is a fine browser that's about as light and quick as any I've come across.
[Android Apps and Games] asj0422:
Does the non systemless (regular) adaway work with the stable release of N, or is the systemless method still the only way to get hosts file ad blocking on N?
[Android Apps and Games] tanfidzularus:
I am using smart launcher. And there's still ads on it.
[Android Apps and Games] mitchdickson:
Solution: buy the pro version.
[Android Apps and Games] big:
Great app :D
[Android Apps and Games] guhvanoh:
I think I read somewhere (please don't ask where) that Opera has got adblock built in on the Android version. I know that Opera has had this for ages since I use it on the desktop and yes I'm still on version 12 there.
[Android Apps and Games] NLBeev:
When there are still ads after installing Adaway.

Google stuff like Chrome and YouTube and some apps don't like the hosts file is blocking ads.

So don;t use it or accept. You guys/girls should read post 6862 and my previous post 6857.

http://xdaforums.com/showthread.php?p=68431721/
[Android Apps and Games] tanfidzularus:
for some site yes. But sometimes it directed to other sites and open up a new tab automatically.

Although maybe opera blocked it and not showing it, but it pretty annoying sometimes.
[Android Apps and Games] glitterbrat:
I updated my Nexus 5x to Android 7 today and Adaway isn't working. I followed these instructions - http://xdaforums.com/showpost.php?p=68376352&postcount=6817 - and it now shows adblock applied successfully, but it doesn't appear to be working in any app. An example is the app Skout - no ads today until after I'd updated. I've tried visiting several of the domains that are in my hosts file on chrome and they resolve correctly, including ones that definitely didn't resolve earlier today. It seems like Android is completely ignoring the hosts file, or using a different copy stored somewhere else.
[Android Apps and Games] mitchdickson:
Why not just flash the systemless zip from the OP and use AdAway normally?
[Android Apps and Games] glitterbrat:
thanks, that seemed to work. I didn't know this was considered the normal way for Adaway to work as I've never needed to flash that zip on previous versions of Android and not had any problems
[Android Apps and Games] mitchdickson:
It's been explained seemingly a thousand times in this thread, but glad it's working for you.
[Android Apps and Games] :
Hello . Thanks for this great app !!! It saved my life a thousand times .

Lately "Unity Ads" videos started to show up in some apps, how can i block those "Unity Ads" .

Is it possible to find the IP address which i should add to blocked list ?

Thanks .
[Android Apps and Games] androcraze:
In AdAway, click the "..." (three dots), go to "Log DNS Requests", and follow the instructions.
[Android Apps and Games] Petr Viitman:
Thank you!:good:
[Android Apps and Games] fmc000:
Sorry if this is has already been asked but do I have to reflash the systemless AdAway every time I upgrade my ROM and subsequently I have to reflash the systemless SuperSU?
[Android Apps and Games] ktmom:
Yes
[Android Apps and Games] oreki9:
I am using Temasek os [MM] in moto e with clarity kernel. After installing Adaway from F-droid and downloading the database i rebooted it. But its showing "Unfortunately, System UI has stopped". Can somebody help me?
[Android Apps and Games] osrox:
Thanks to this App & it's developer,

Finally, my phone is rid of hundreds of ads !
[Android Apps and Games] MatVekk:
Not work in Aosp Nougat 7.0 in Nexus 7 2013 Flo

Inviato dal mio Nexus 7 Flo Nougat 7.0
[Android Apps and Games] Toutatis_:
Flash the systemless zip...
[Android Apps and Games] XNO:
Thanks this helped me. :svetius:
[Android Apps and Games] gordo80:
I flash the zip, but still getting this error. Nexus 6p Running Nougat and rooted. Any ideas!
[Android Apps and Games] Nergal di Cuthah:
the error message pretty much spells it out.

You need S-off

http://www.addictivetips.com/mobile...on-htc-android-phones-with-unrevoked-forever/
[Android Apps and Games] gordo80:
I have a Nexus 6P. I thought S-OFF is only for HTC devices. What am I missing here?
[Android Apps and Games] Nergal di Cuthah:
DELETED

Edit ok I'm an idiot, sorry I just plain missed that you said it

Ignore me, sorry :(

---------- Post added at 08:38 PM ---------- Previous post was at 08:29 PM ----------

Oops
[Android Apps and Games] androcraze:
Did you flash the systemless zip in the first post?

Even if you're not systemless, it still should work.
[Android Apps and Games] ktmom:
The order needs to be flash zip, then install apk. Is that what you did?

You could look here.
[Android Apps and Games] gordo80:
The only that I don't have is busybox. Is it safe to install busybox on Android 7.0 OTA build for a Nexus 6P?
[Android Apps and Games] ktmom:
That's best asked in the 6p forum. I don't have one, and N isn't available yet for my 6. But since there is a debloated prerooted deoxeded N ROM with busybox, I'd think it should be fine.
[Android Apps and Games] androcraze:
What do you need busybox for?
[Android Apps and Games] mrRobinson:
If you flashed the zip then you leave hosts file at stock location. The fact it is trying to create a symlink means you didn't do that.
[Android Apps and Games] mko000:
Why is the "old" method not working anymore on N? Why is it neccessary to use the systemless method even if you don't need it? Thanks in advance for your explanation ;).
[Android Apps and Games] NLBeev:
Security. There no space on the system partition.
[Android Apps and Games] mko000:
On all devices? Interesting. Thanks!
[Android Apps and Games] NLBeev:
Not all. Custom / Debloated Rom's may have enough space on the system partition.
[Android Apps and Games] osm0sis:
Might be the switch to toybox mount command as well, it's not as forgiving of syntax as the toolbox implementation; -t is necessary now and the -o order is more finicky:

mount -o rw,remount -t auto /system

[MENTION=3292224]franciscofranco[/MENTION] and I did some testing and the above should work on all Android versions including Nougat. [MENTION=3355398]mrRobinson[/MENTION] might just need to tweak the mount command used to resolve functionality on devices that do have space.
[Android Apps and Games] quangtungnguyen:
Hey guys this works great, but is anyone having troubling watching videos off of websites like CNET and ign? Pressing play does nothing.
[Android Apps and Games] Seanbest:
AdAway will apply, but after a short while it will be disabled again. Running Dirty Unicorn ROM. Any suggestions? I've tried traditional and using the systemless zip flash.
[Android Apps and Games] ktmom:
If you disable AdAway does it work? If so, use the "log DNS requests" command in the 3-dot menu to find the urls to whitelist.

---------- Post added at 18:24 ---------- Previous post was at 18:23 ----------

What device? What root method? Have you tried getting a log?
[Android Apps and Games] AG22:
Does Adaway remove adds from apps? I mean, some apps have adds on their free versions. Does Adaway remove these adds?

Thanks
[Android Apps and Games] Ja_som:
Yes, but maybe not in all, it depends as how ads are added into app...
[Android Apps and Games] AG22:
Thanks, I'll give it a try. :)
[Android Apps and Games] Lastwurdz:
my chess.com app all of a sudden started showing ads. i have both adaway and adblocker running. any ideas what could be allowing this app to show ads after not having an issue for months??
[Android Apps and Games] Pkt_Lnt:
The app dev started serving ads via IP numeric addresses instead of DNS name addresses. Lots of apps and websites are doing that because of ad blockers. It is a tug of war battle that goes back and forth.
[Android Apps and Games] Lastwurdz:
:eek: hopefully i'll end up on the winning side of this tug of war. i forgot just how annoying ads were :eek:
[Android Apps and Games] Gawd:
Does this block ads on YouTube as well? Or using Xposed (YouTube AdAway module) is the only way out?

Also, does it removes ads from Apps as well?

Apps and browser, is that it? Or somewhere else? I'm sorry, new to this.

Thank-you
[Android Apps and Games] Ja_som:
Please, search, read. All your questions are already answered in this thread...
[Android Apps and Games] Gawd:
It would have been better if you could have just replied with the answer itself, although I know it's my fault to not search. But I just wanted a concise answer.
[Android Apps and Games] Ja_som:
OK, so again...

No, yes

Yes

Yes, no...

Happy?
[Android Apps and Games] Gawd:
Very well, but what's that somewhere else. I can't even think of a phrase to search.

Edit: gotcha, so it's just Apps and browser

Thank you
[Android Apps and Games] Ja_som:
My answer for it was NO, I don't know where else except browser and apps you want to block ads...
[Android Apps and Games] Spannaa:
You might want to read the XDA Rules again - especially #1 ;)
[Android Apps and Games] Gawd:
Should I write an apology letter?
[Android Apps and Games] androcraze:
Look Folks:

Whatever the rules or protocols for the forums are, we're still going to get "noobs" or people struggling with searching in the thread asking questions. Every XDA forum has it, and it will NEVER go away.

I try to be courteous, but sometimes I fail. But I still try.

I'd rather see this thread as welcoming, and not hostile. Bickering just isn't.... right.

[MENTION=3355398]mrRobinson[/MENTION]:

Every 5th post on here deals with asking about YouTube ads. Can you add a comment in Post#1 under the "Problems? Read this:" section?

Perhaps:

* AdAway cannot block ads in some Android applications (like YouTube) that internally bypass the hosts file, and there is no way of adding a feature to AdAway to do so.

Or whatever will get the message across.

If it were every 10th page of posts, I'd say "people need to search better"; it's on every page. The message isn't there initially, and people aren't inclined to search. At least we'd be able to point the questions to Post #1.
[Android Apps and Games] sansnil:
Generally people find it annoying when people post questions which have previously been answered because it's not useful forum material. I'm sure some people do try to look first but most don't read the OP or even try to use search which is highly lame and should be called out. That I can forgive if not understand but it blows my mind when people get snarky and combative about it. It shows how utterly devoid they are of thinking of anyone but themselves which is antithetical to the whole point of a group forum.
[Android Apps and Games] WTF?:
I want to block ads on youtube, but I am not interested in the bugginess of xposed. - Android seems to be unforgiving of programs that are that invasive into its core. CM has always had this same bugginess issue. This is why a rooted, debloated stock Android is the way to go if you treasure reliability. (bootloader unlocked, of course!)
[Android Apps and Games] androcraze:
A vanilla AOSP build is even better. With PHH's root.

---------- Post added at 14:17 ---------- Previous post was at 14:06 ----------

One person asking a question and 15 responders pouncing clutters the thread even more.

I'm a big fan of FAQs.... "Take a look in Post #1. That question is answered in the FAQ". Simple.

"That question has already been answered 100 times! Why can't you do a search for once!". Bad.

I hate to say it, but the snarky-ness usually doesn't start with the poster, but rather the responder(s). A brutal reply guarantees an avalanche of ugly back-and-forth.
[Android Apps and Games] nxt:
Nexus 6P, Android 7.0

SuperSU 2.78

Works great with systemless adaway and adaway 3.1.1

Once I install SUHide, adaway immediately says phone needs to be rooted. Doesn't work.

Unisntalled SUHide and it works again.
[Android Apps and Games] githyanki:
You don't need the app to be working most of the time. After it updates the host file, it doesn't do anything. Just update it every month or so.
[Android Apps and Games] Spannaa:
I understand what you're saying (and am probably being classed as a snarky responder for directing someone to the XDA rules), but surely the clutter starts with the (repeat) questions themselves.

If people just read and searched (like they're meant to), they probably wouldn't need to ask their question in the first place and therefore wouldn't need a response of any kind.

XDA is (was?) meant to be a Developers forum, not a helpdesk for lazy members who want a quick fix.

Apologies for the OT and no offence intended.
[Android Apps and Games] Andrew025:
Reminded me of this.
[Android Apps and Games] androcraze:
None taken. It's just futile trying to "right" something that can't. People are inherently lazy, including both you and myself. That can't change.
[Android Apps and Games] Spannaa:
Personally, I don't consider myself lazy when it comes to XDA - I often spend ages trying to find the answer to issues I encounter with hardware/software and very rarely need to actually ask a question. The result is that I understand the solution and learn from it.

Another problem with the ever increasing 'clutter' is that it puts Developers & Themers off posting their work on XDA - there are plenty who've moved elsewhere (G+ for example) because they can moderate their own communities and spend more time on what really matters rather than wasting it dealing with the ever increasing barrage of unnecessary queries.

Again, apologies for the OT.
[Android Apps and Games] Pkt_Lnt:
Well of course if you hide root from AdAway it will complain. Sounds like you missed this in post #1 about suhide:

Only enable suhide on the apps that will not work with root.
[Android Apps and Games] nxt:
I didn't enable suhide for Adaway. I only flashed it and by default it enables Android Pay.
[Android Apps and Games] eamelas:
I cannot have functional adaway to Vibe Shot with 6.0.1. It cannot install hosts. Any solution?
[Android Apps and Games] Ja_som:
flash zip file from OP
[Android Apps and Games] Atharkhan101:
Will it be better if i check the other 2 options (screenshot attached).

What would happen if i don't check those options

Sent from my Micromax Canvas 4 A210 Jellybean 4.2.2 (Lollipop themed rom by FSadino + Gravitybox).
[Android Apps and Games] guhvanoh:
Yes. You may miss out blocking some sites that are in those but not in the ones you've chosen. It can't hurt to have all of them. That's the way I look at it.
[Android Apps and Games] NLBeev:
Some Google searches (url) are blocked.
[Android Apps and Games] bagarwa:
On Android N Public build

I have Nexus 6P, Stock Android 7 Public, SuperSu v2.78, franco kernel r31.

I flashed the AdAway_systemless_hosts_v2.zip linked in the OP via twrp-3.0.2-2. This was the output -

Mounting /su image for editing...
Prepping Adaway for systemless hosts...

Flashing this zip means that you leave the target host file directed to /system/etc/hosts
This zip ensures that it actually will go to your data partition.

installation complete!
Updating partition details...
...done

I then rebooted the system. AdAway still says ad blocking is disabled and I'm still getting ads.

Do I need to do anything else?
[Android Apps and Games] githyanki:
Click the button that says download files and apply ad blocking