yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] tag68:
[MENTION=6915990]bwaybwoy[/MENTION], I'm afraid the purpose of the hosts file is different from what you think.

If some process wants to use some IP, it opens a socket.

If some process wants to access some server in the internet, it asks the os for the IP and then opens a socket (maybe that part is combined in some library or the os does both in one, but for this explanation that doesn't matter).

If the os gets asked for the IP of the domain of some server, it looks first in the local hosts file. If it isn't there, it asks the DNS server.

You see, if some app has some IP address which it needs to access, hosts file will not be involved.
[Android Apps and Games] bwaybwoy:
So I can't block those IPs using adaway? Is there any app to be able to do that? Since my ISP has stupidly blocked the access to admin of my Router, I can't block those IPs using IP filter function
[Android Apps and Games] tag68:
There are. As I don't use any of them I can't give recommendation. Google Android iptables may give first hints.

That's bad. You may consider replacing that router by your own, or chain them. If you do your own router between your network and the router from your provider, you're fine I guess (except space and a bit more to spend for current of second router). I wouldn't allow my provider to restrict access, I'd rather switch provider. But the problem for me does not exist, as it is law in Germany that router have to be possible to be bought by customer and the provider has to give the login data to the network.
[Android Apps and Games] NLBeev:
When you have a modem/router combination it is probably possible to have it switched to bridge mode.

Than you can use a second router that's fully controlled by yourself.

https://www.howtogeek.com/255206/how-use-your-router-and-isps-modemrouter-combo-in-tandem/amp/
[Android Apps and Games] bwaybwoy:
Thanks for ur advice. I'm living in third world country that my gov monopolies the provider here. So I don't have a choice to choose another ISP.

Btw I've chained the router to another since the very first time because I need to control and watch my family members when they use it.

---------- Post added at 10:25 AM ---------- Previous post was at 10:23 AM ----------

I'm using that combination. Your idea never crossed my mind. Thanks amazing man.
[Android Apps and Games] bbqbrisket:
cannot ENABLE Adaway

device: Sony Xperia Z1 compact.

Rooted with Kingroot (yuck)

Installed Adway from Fdroid.

When "downloading files and apply ad blocking.

Results fail and will not "Enable"

thanks for any help
[Android Apps and Games] KOLIOSIS:
Try to use SuperSume from the GooglePlayStore to re-root w/SuperSU:

https://play.google.com/store/apps/details?id=darkslide.com.supersumepro&hl=en

Not a guarantee this will fix your issues,but,it's worth it to rid your phone of Kingroot if possible.

Just follow the instructions according to your device & version of Android,if it's even applicable for your device.

Good Luck............... :good:
[Android Apps and Games] Markeee:
I have AdAway_systemless_hosts_v2.zip and AdAway-release_Build-Jun.26.2016.apk running on a my Nexus 6 with latest Pure Nexus

I installed it so long ago just been working I haven't reinstalled or updated anything

So my question are there some newer files i should update to ?

Also just got a Google Pixel c want to install Adaway there Pixel is on latest Pure Nexus rooted with SuperSU-v2.78-SR5

Anything I need to know about the Pixel C and adaway ?
[Android Apps and Games] shaqman89:
I think I found a bug. Adaway doesn't triggers storage permission when exporting custom lists. It shows as success but no file is created ever until you give the storage permission manually (I'm on nougat (7.0, btw). After it actually succeeds, the file created is called adaway-exported which can't be imported back since it shows only txt files.

If logs are needed, I'll grab them later, but I'm wondering if this also happens to others that are using nougat (and probably marshmallow).
[Android Apps and Games] Pkt_Lnt:
Add your comments here. This is in the OP, very last line.

https://github.com/AdAway/AdAway/issues/670
[Android Apps and Games] x.trinity:
Very true.

I had just the same prob.
[Android Apps and Games] Markeee:
Can someone point me to the how to install instructions ?
[Android Apps and Games] komixda:
Mysteriously, adaway has stopped working on 2 xiaomi mobiles that I have with MIUI.

Has anyone else happened to them?
[Android Apps and Games] ktmom:
It's pretty straightforward. Either download and flash the zip in the first post, or install F-Droid (link on developer's website also in 1st post). Once installed, open the app, if you are running in systemless mode, go to the 3-dot menu -> preferences and check run in systemless. After that, or if you don't care that it loads to the system partition, click on "download files and apply ad blocking".

If you get an error, search this thread, it'll have been asked before.
[Android Apps and Games] Markeee:
I have it running perfectly on my Nexus 6 with Pure Nexus but I installed it so long ago i forgot how I did it

Now I just got a Pixel C Tablet and just wanted to refresh my memory on how to install is all

So I'm rooted with SuperSU-v2.78-SR5 with Pure Nexus on the Pixel C just want to confirm exactly what file I need to install

go with the

AdAway-release_Build-Feb.08.2017.apk or AdAway-release_Build-Nov.19.2016.apk From the first post ?
[Android Apps and Games] ktmom:
The Feb release is a development release. I'd probably go with V3.2 the Nov 2016 version.
[Android Apps and Games] selw0nk:
Is adaway still blocking ads? It's been a while since I used this. Still updated too?
[Android Apps and Games] ktmom:
?? Have you looked at the downloads available in the first post? Or read the last couple of posts where we were discussing a Feb 2017 release?
[Android Apps and Games] rajatgupta1998:
Yes for sure. It's one of the few apps I first install after a fresh install.

Sent from Lord Tywin's athene.
[Android Apps and Games] j2002:
In my Mi5 is working perfectly.
[Android Apps and Games] tanivula:
It's semi working for me. What i noticed was that adaway would close but it would re start the process in the background (can see it in the notifications). Give it some time (don't reopen adaway) and it'll work.

In terms of actually blocking ads, seems to be working as it should!
[Android Apps and Games] rootlinux:
Adaway is supposed to close after it updates your host files.

It doesn't eat away in process.

Working great.

I am on jb and g+ works great.
[Android Apps and Games] treesurf:
Working well on a nexus s running a cm10.2 based ROM. Thank you.
[Android Apps and Games] gr8twhite:
Seems to be working fine on my Nexus 7 2013, jss15r.

Thanks.

:)
[Android Apps and Games] zinconnu:
Works fine, thanks! Better than AdFree which has stopped working today on my Desire (Android 4.0.4 ROM - AOKP).
[Android Apps and Games] jj92942000:
Omega v50.1 & Boeffla v4, ditched AdFree and just installed AdAway working well ty ty
[Android Apps and Games] leandronb:
Why this app needs so much permissions while adfree just need two?
[Android Apps and Games] elvis56:
Been using adaway for a long time on HTC desire, on my new phone and my media box running 4.2 android applying the adaway hosts file causes pretty much all Google apps to stop working.
[Android Apps and Games] Arcadias:
AdBlockPlus should work without any root access. I have been using it for a while, and after some WiFi configuration, it should work for you flawlessly! :)
[Android Apps and Games] Fir3saiL:
Works awesome on my galaxy s4, hyperdrive rom.. thanks dev!
[Android Apps and Games] peter7769:
Mine is still working but won't update and no matter where I try and download it still tells me it's out of date.

Hope it gets fixed soon.

Pete
[Android Apps and Games] rootlinux:
I have 14 host files in Adaway and all my google apps work.

Perhaps you may be on AOSP.

If so try a different gapps.

Mine work fine.
[Android Apps and Games] AluminumHaste:
The Dev host link is full of ads and redirects you should be banned for posting that link here. Every download button goes through 15 ad servers and eventually opened the play store to download a game. The irony of hosting a download to an adblocking program on a site full of ads lol.

All download links do the same thing.

---------- Post added at 12:33 PM ---------- Previous post was at 12:15 PM ----------

Okay figured it out that overlay on the left actually covers the whole screen and you have to close it lol. What the duck happened to Dev host?
[Android Apps and Games] 78Staff:
You got something funky going on there, Dev Host only shows one download button and it goes strait to downloading the file... Of course I may be blocking what you are seeing, or maybe it's something java related.

Either way, you might want to take it easy on suggestions of "banning people"... especially those who contribute so much to making our devices better... :good: ;)
[Android Apps and Games] Braneless:
Agreed...DevHost is working flawlessly for me, and always has. I just re-opened the Adaway link with Opera Classic - no issues.
[Android Apps and Games] grotesque02:
Last version say me can't copy files to host.

I'm rooted galaxy nexus with paranoid android
[Android Apps and Games] AluminumHaste:
NP was just very frustrated at the time. However you can clearly see in your screenshot that you are already blocking all the ads, my screenshot was with no adblocking.

---------- Post added at 02:01 PM ---------- Previous post was at 01:58 PM ----------

I just tried it with Internet Explorer on my computer and yes the ads and popups are all over the place.

Firefox and Chrome don't have that problem obviously because I have adblocking extensions installed. Try uninstalling adaway on your phones and other ad blockers and try downloading the file at devhost again.
[Android Apps and Games] Braneless:
That's how they're able to host all of these files. It would be unwise to rely solely on donations.
[Android Apps and Games] AluminumHaste:
I don't mind ads, what I can't abide is having 3 Download buttons that look the same, and all go to ads no matter which one you click.

And it's not even that simple. What happens is that you get redirected to about 15 websites, some open more tabs with ads. At one point it asked me to install some porn app, and redirected me to a porn site.

Is Dev Hots in such bad shape that they need to resort to porn ads?

And twice when clicking on the proper Download button, it took me to the play store to download a free game. No doubt full of spyware.
[Android Apps and Games] anurag_aks:
Suddenly Adaway is unable to block add on my device....It worked for couple of days after flashing RR ROM (3/22 nought build) then suddenly adds began to show.

I checked The root folder (system/etc/hosts) scr below*

Strangely same thing happend on the previous build too.I use Magisk v11.6

Plz help me
[Android Apps and Games] anurag_aks:
This is the screenshot
[Android Apps and Games] DEVILOPS 007:
Did you enable the setting in magisk manager for systemless ad blockers? Are you also using the most recent version of adaway (3.2, february 8th build 2017?)
[Android Apps and Games] anurag_aks:
Yes the mAgisk setting are enabled....

And no,i am on the Nov.2016 build...

Its very strange because it worked for 2 days...
[Android Apps and Games] DEVILOPS 007:
Why not use the latest build then? That could fix your issue.
[Android Apps and Games] anurag_aks:
Plz provide me the link to download the feb 2017 build...

:)
[Android Apps and Games] DEVILOPS 007:
Hi, noob question but how do I change it to 0.0.0.0? Thanks:)

---------- Post added at 06:29 PM ---------- Previous post was at 06:28 PM ----------

https://www.androidfilehost.com/?a=show&w=files&flid=45342
[Android Apps and Games] anurag_aks:
Thanks a lot for the help....

Let me check the problem is fixed or not with the adaway latest build.
[Android Apps and Games] DEVILOPS 007:
Okay cool, if that still doesn't work then try clean flashing your rom and Kernel and maybe try a different one. What device are you using?

---------- Post added at 06:37 PM ---------- Previous post was at 06:36 PM ----------

You're welcome btw:D
[Android Apps and Games] anurag_aks:
I am using REDMI note 3 kenzo
[Android Apps and Games] DEVILOPS 007:
Okay then, have you tried the most recent version yet?
[Android Apps and Games] Ultramanoid:
AdAway Preferences > Redirection IP
[Android Apps and Games] DEVILOPS 007:
Okay, thanks a lot. I actually looked in there but must be blind as I missed it:good:
[Android Apps and Games] anurag_aks:
Nope the latest Feb 17 build is also unable to block add on my devive:(

Why the systemless is greyed out in adaway??
[Android Apps and Games] DEVILOPS 007:
Not sure really, it could be where your device is redirecting the host file. Have you tried it with the Magisk setting disabled and clearing data from adaway? Also maybe try a different rom. You could also go to preferences and try messing around with the target hosts option and see if you can get it working.
[Android Apps and Games] sgspluss:
Is there any way to get finish hosts file without installing the app?

LOS didn't have root on board and dont want to flash su, want to replace the stock with this one in twrp.
[Android Apps and Games] Soli M:
HAHA
[Android Apps and Games] androcraze:
https://xdaforums.com/showthread.php?t=1916098
[Android Apps and Games] DEVILOPS 007:
Is this normal, thanks? I mean how it says local and online not available.
[Android Apps and Games] Skull97:
In case you need magisk, you have to use the previous stable build (Nov.2016), as this build has magisk broken. Is ad not blocked in all apps or just in some apps? Your host (screenshot) has no problem, though.

Try to clear adaway cache then apply it again. You may have to apply it plenty of time before it's functional, I also need to do it whenever it appears.

Have you checked if it is the right web page to those hosts?
[Android Apps and Games] jcmm11:
Mine says the same for enabled hosts, and everything here is working fine.
[Android Apps and Games] m0han:
also this maybe: https://xdaforums.com/showpost.php?p=71541346&postcount=8605
[Android Apps and Games] NLBeev:
On my N6 I see the same, I am using only one resource; the one of StevenBlack.

Now for some weeks and ad-blocking is working as always.

I've started the second part of my trial.

Because the hosts file of StevenBlack is smaller than the combination of several hosts, I've removed the systemless mode.

Adaway manages now system/etc/hosts, size only 1022.36K.

Ad blocking still works well on my debloated stock ROM 7.1.1 (march updated lite ROM of Danvdh).
[Android Apps and Games] lilphoenix:
Good work thanks
[Android Apps and Games] DEVILOPS 007:
Am I supposed to enable systemless mode as I use supersu and not magisk? Thanks:)
[Android Apps and Games] swallowingled:
Yes, if SuperSU is installed as systemless then you should enable systemless in AdAway.
[Android Apps and Games] DEVILOPS 007:
Sr4 is systemless right? Thanks
[Android Apps and Games] xda@best:
[MENTION=3355398]mrRobinson[/MENTION]

Adaway is not working on AOSP
[Android Apps and Games] Ja_som:
It is (was) when I used AOSP.

And do not quote the whole OP
[Android Apps and Games] xda@best:
Any other app that works?
[Android Apps and Games] Ja_som:
AdAway should work, your "report" is not enough.
[Android Apps and Games] swallowingled:
Yes. As long as your system supports it. I'm using a Nexus 6P and stock 7.1.1 and am systemless.
[Android Apps and Games] mobiware:
Compatibility with superuser?

I have installed superuser as systemless but I guess AdAway doesn't pick that up. Is it only compatible with SuperSU or is it that AdAway sees that SuperSU is installed and you need to check the systemless installation so that the two apps don't conflict?
[Android Apps and Games] swallowingled:
I've only used supersu, but I'm pretty sure I've read here that its compatible with other solutions. You should just be able to check the "enable systemless mode" in preferences then reboot and it should work. Make sure you tap on download files and enable adblocking in the main screen of course. I've never had any issues so I've never had to do much trouble shooting myself.
[Android Apps and Games] mobiware:
No biggie. Actually the option "enable systemless mode" is greyed out in my case. Hopefully it'll work for a while.
[Android Apps and Games] DEVILOPS 007:
Hi, just wondering what ipv6 means for an adaway setting and what happens if I enable it and if I should enable it. Thanks :)
[Android Apps and Games] DEVILOPS 007:
I appreciate it, that was a derp moment on my part:silly:
[Android Apps and Games] L1p1c1:
Version 3.2 dosent work aka dosent stop ads on any site with systemless mode with Nimax Full rom 7.0 systemless root, everything stock on chrome browser.

Version 3.1.2, instead, works like a charm.

Version 3.2 modifies only 3 source files while version 3.1.2 modifies 4 source files. Just wanted to point out.

Before you reply, everything is done

* if you use Chrome and still see ads on web pages, remember to disable the "data saver" or "reduced data usage" browser option

* check your APN settings for any proxy, the proxy itself could be allowing ads. Disable the proxy.

* after you install or make any change to AdAway, you must reboot for those changes to take effect

https://gifyu.com/images/Capture_2017-03-31-07-27-54.md.png

https://gifyu.com/images/Capture_2017-03-31-07-27-49.png

https://gifyu.com/images/Capture_2017-03-31-07-27-34.png

https://gifyu.com/images/Capture_2017-03-31-07-27-05.md.png
[Android Apps and Games] githyanki:
You can add the forth one back in.

Are you using systemless root, and which one?

What is the size of the host file?
[Android Apps and Games] anurag_aks:
Why it shows local: not available online: not available???

Adds are not being blocked on many apps on my device redmi mote 3...??I m on RR 5.8.2(nought) and superSu 2.79

Plz help me fix this serious issue:(
[Android Apps and Games] githyanki:
The first is definitely not a host list, delete it.

The second should be:

https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts

Lastly, ads are not always blocked in apps. If the app does not look up the address for the ad, there's nothing adaway can do about it. Post what apps are giving you trouble, possibly someone can help.
[Android Apps and Games] Newmanl:
Is this app compatible with Magisk? ? Sorry if this was ask many times before
[Android Apps and Games] :
Yep, it is (at least for me and my devices with 7.1.1 @ Nexus 4, 7, 10 and OnePlus 1 and 3 :) )
[Android Apps and Games] Newmanl:
Do I need to enable Magisk option to ability hosts files out of the system partition? Sorry (noob with this Adaway)

Thank you in advance, and if you could tell me other hosts​ files sources to add on Adaway ?
[Android Apps and Games] flocke000:
Yes, you have to enable "Systemless hosts" in the settings of Magisk Manager.

And the default sources are more than enough for the default user (like me). Additional sources increase the size of the hosts file, which could slow down DNS resolution to some extend.
[Android Apps and Games] DallasBelt:
I can't get it to work systemless-ly with Magisk. Is that feature only intended to work with SuperSU? Because in November build (which many said that works with Magisk) that option is greyed out and checked​, but the hosts file is modified.
[Android Apps and Games] flocke000:
With Magisk you must use Magisk Manager to enable systemless hosts, not AdAway.
[Android Apps and Games] Pkt_Lnt:
https://xdaforums.com/showpost.php?p=70940479&postcount=8316

This applies to the dev version that PerfectSlayer worked on for systemless.
[Android Apps and Games] DallasBelt:
Yes, I did enable the option. Sorry for the noob question: the hosts file in /symtem/etc is modified by AdAway (my understanding is that it should be untouched with systemless hosts). And there is also a hosts file in /magisk/.core modified by AdAway. But when I open the file via AdAway, the path is /system/etc/ :confused: Could you please enlight me?
[Android Apps and Games] flocke000:
Magisk mounts the hosts file from /magisk/.core/hosts on top of /system/etc/hosts.

As long as this mount is in place the two are the same file in the eyes of the Android system.

So writing to /system/etc/hosts actually writes to /magisk/.core/hosts leaving /system untouched.
[Android Apps and Games] tag68:
The magic when doing systemless is that you don't see the real content. See, h1 may be your real hosts file, and h2 the modified one. h1 is in /system/etc and h2 is in /somewhere. Now there is some mount - bind command, which lets /system unmodified, but mounts the file h2 over the file /system/etc/hosts. Now you see always that /system/etc/hosts looks like h2. Until you unmount that mount bind, which hid the real file. System does not get modified, but the right file is in the right place. You'll notice that if you modify h2 in its place, /system/etc/hosts will change also. Also if you modify /system/etc/hosts, you'll see h2 is being modified, and if you remove that mount, h1 should be original. Although you edited in place.
[Android Apps and Games] DallasBelt:
[MENTION=5837930]flocke000[/MENTION] [MENTION=6192363]tag68[/MENTION] Thank you for your clear and helpful explanation guys!
[Android Apps and Games] kryzeK:
How I can block ads from infolinks(.)com? I already added blacklist using DNS request logger. Oddly enough, it worked out first but some time later it stopped blocking ads
[Android Apps and Games] naifaharsy:
Thx dude..
[Android Apps and Games] fucitol:
Is there a way to get adaway to work on android N without disabling selinux?
[Android Apps and Games] Skull97:
Who told you must disable selinux?:silly: Adaway only need root, that's (almost) all.
[Android Apps and Games] fucitol:
That's strange. I'm immediately able connect to ad networks once I set selinux to enforcing. When selinux is permissive pings start going to 127.0.0.1, as they should. Any idea what's wrong?

Edit: It turns out using a symlink from /system/etc/hosts to /data/data/hosts doesn't work with selinux in enforcing. The hosts file is applied when I deleted the symlink and got adaway to write directly to /system/etc/hosts.
[Android Apps and Games] osm0sis:
Perhaps this should also be changed to a bind mount then, since it sounds like cross-device symlinks are a no-go on Nougat+ SELinux.

[MENTION=2822685]PerfectSlayer[/MENTION]
[Android Apps and Games] s0ur0v:
How can i whitelist google admob? Anyone there for help ! :fingers-crossed:
[Android Apps and Games] PerfectSlayer:
When it doesn't work, could you check the security context of the symbolic link and the hosts file created by AdAway?

# ls -Z /system/etc/hosts
# ls -Z /data/data/hosts

Let's see first what is the issue with symlink ;)
[Android Apps and Games] fucitol:
gemini:/system/etc # ls -Z /system/etc/hosts
u:object_r:system_file:s0 /system/etc/hosts
gemini:/system/etc # ls -Z /data/data/hosts
u:object_r:system_data_file:s0 /data/data/hosts
[Android Apps and Games] L1p1c1:
SU systemless root, permissive
[Android Apps and Games] ktax:
Any help for block ads in tapatalk please....?

Kenzo XTR-V 8.1.1 root
[Android Apps and Games] NLBeev:
Restore previous version.

Latest version without ads is Tapatalk 6.4.0
[Android Apps and Games] Bewildered Wolf:
Which previous version to be precise ?
[Android Apps and Games] NLBeev:
Version 6.4.0.

Using it now on my Nexus 6.
[Android Apps and Games] Pedroc1999:
How to add a custom entry without it being overwritten in the next update?

Could you possibly add the functionality to search for a secondary hosts file that gets written onto the end of the downloaded one so you could keep custom ones in there?
[Android Apps and Games] NLBeev:
3dots-menu -> Your lists - Blacklist