yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] mondohow:
If you're using the ROM in your signature, that already contains a system-wide ad-blocking feature. You will need to disable it if you haven't already, then try AdAway.
[Android Apps and Games] githyanki:
Many apps will bypass the host file, so adaway does not work on them. The easiest way to find out is to try.
[Android Apps and Games] John Davies:
HI. I have a rooted HTC Desire Eye running Android 5.0.2. (stock rom: I have done no more than have a friend root the device.) After installing Adaway (from Fdroid), when I try to enable it by downloading files and apply ad-blocking, it goes through the following steps:

Downloading...

Applying... (parsing and merging hosts files)

(building hosts file)

Applying failed!

Applying the hosts file to your system failed!

Try changing the target hosts file in preferences to /data/data/hosts.

The next time around it reboots at the end of the "building hosts files" step.

I have checked and the hosts file is in system/etc/hosts.

Am I doing something wrong?
[Android Apps and Games] androcraze:
What root version did your friend use? It makes a difference.

If there's a "systemless" root, follow this procedure:

http://xdaforums.com/showpost.php?p=66593499&postcount=5951
[Android Apps and Games] ΦDroid:
I have always had the understanding that a reboot is required to reload the hosts file and apply any changes. I just did some testing and this is not the case on my device. Modifications are loaded instantaneously, without a reboot.
[Android Apps and Games] Pkt_Lnt:
Applied on the partition, yes. Read into memory for the changes to be applied to ads that stream in, no.
[Android Apps and Games] ΦDroid:
What do you mean by "Applied on the partition"
[Android Apps and Games] Spannaa:
Updates the hosts file straight away but the new entries in the file may not be blocked until the device is rebooted.
[Android Apps and Games] Vonnegut:
I found it here www nextwap net /download/ 13001/ AdAway_APK_2.7_Free_Android .html

and i downloaded it from the Mediafire Server.

P.S. Problem solved installing the apk file....i'm new of this forum and didn't know that i could find it on the first page.

Thank you for pointing me to that.
[Android Apps and Games] 2uk3y:
no problem. sharing is caring :)
[Android Apps and Games] rayda:
Thank you great job
[Android Apps and Games] dommcl:
Apologies if this has been raised before but beware the play store adaway - it looks the same but is an ad factory. Have to get it from fdroid or other source.
[Android Apps and Games] mentallo:
When I try to install adaway it tells me "install not successful" at the end. I don't have a prior version installed but I did have older version installed one but installed it. Any ideas why this is happening?
[Android Apps and Games] jackdubl:
You probably have Google Settings set to always verify before install.

Clear the defaults for Google Settings. Then install again, but choose to install with the package installer instead of the Google Settings verify and install choice. That's usually the problem.
[Android Apps and Games] DecypherT:
Found a quite weird workaround for the "apply hosts file" failure.

If I turn on the "webserver" (function) before updating. My hosts file updates without failure.

When the webserver is selected once in the settings/preferences menu. It keeps visible on the bottom when you start adaway.

Send from my Nexus 4
[Android Apps and Games] kdot25:
Having issues

I have installed the 2.6 and 2.7 successfully downloaded "download files and apply ad blocking" it shows me successful. But once I reboot my phone and go back into the app it shows disabled. I have gone the route where I clean cache/data then un-installed. But when I re install it all happens again. I have tried this on a 4.2.2 rom and 4.3 rom and it the same thing. Any suggestions?
[Android Apps and Games] dktblade:
i have same problem on my S4 with android GE 4.3
[Android Apps and Games] Sacob:
Same here!
[Android Apps and Games] 2uk3y:
have u check the host file? is it the same or already add all the block address?
[Android Apps and Games] kdot25:
This is what I get when I open the host file
[Android Apps and Games] 2uk3y:
when did u open this file? after u apply adaway or after you restart?

if after u apply adaway, this mean the app did not change the host file.
[Android Apps and Games] kdot25:
This is after i restarted (it shows disabled), but If i apply it and view the host file (before restart) this is what I get:

Once I restart it shows disabled again and the first screenshot
[Android Apps and Games] kdot25:
Found the culprit

I was using [MOD] CrossBreeder - 7.2.13 on both my roms, I uninstalled it and went through the whole adaway install process with restart and now it shows enabled after restart. Is there away I can use this app with that mod?
[Android Apps and Games] Pons:
I'm not familiar with that mod. Your best bet is to ask in that mod's thread, since something in it is reverting the hosts file.
[Android Apps and Games] FlanjeUK:
CrossBreeder has Ad blocking software built in and enabled by default... They most likely clash with each other?

Edit: [MENTION=3113273]karthicr25[/MENTION]

http://xdaforums.com/showthread.php?p=42711244

Sent from my 9505GTi - RootBox 4.2 & ChronicKernel
[Android Apps and Games] slebit:
Thanks for this app. Working nice.
[Android Apps and Games] Sacob:
crossbreeder's ad block isn't workin on 4.3
[Android Apps and Games] BOY_:
True, but there is a work around buried in the thread. Google stopped referencing dns1 on 4.3 so none of the mods that ry on DNS work. I run the disable_adblock and remove_DNS scripts in crossbreeder after each reflash and then enable adaway with no problems. Easy peasy.
[Android Apps and Games] Pkt_Lnt:
written to the file on the phone
[Android Apps and Games] ΦDroid:
If I add an entry to my hosts file, it instantly starts working without a reboot. Even renaming the hosts file disables ad blocking completely, then naming it hosts gets it working again right away, all without a single reboot.
[Android Apps and Games] Pkt_Lnt:
You can not edit the hosts file in memory that is used to block ads. That is not how it works in Linux and what I have read in Android. The hosts file has to be read into memory to work. That is why huge host files like the Mother of all hosts causes problems of android. However you might have learned a trick that the original AdAway dev or the Mrrobinson here, or other Android devs have not learned. I think you have a nice placebo effect going for yourself. :D
[Android Apps and Games] broomer68:
The reason for this is the way hosts work. As a program requests a link, first it checks if it already knows the IP-address, if not, it will look up in the hosts file, and if not mentioned, will do a DNS request to the DNS-server of duty. This server is usually assigned by the Internet Provider, but can be overridden. So if an ad is not already loaded, placing the address in the hosts file will immediate reassign the ip-adress. But if the IP-address is already known to the system, it will not look it up anymore, except for when the server is not reached; and a reboot is the only way to make sure that no addresses are remembered, and the hosts file is used.

Verstuurd vanaf mijn ASUS_Z00A met Tapatalk
[Android Apps and Games] ΦDroid:
Not a placebo, it is quite real. I didn't do anything special to cause this behavior either. BTW, this is my setup:

OnePlus 2

20160601 Exodus ROM

The only other thing that I have installed that has any effect on networking is AFWall+.

---------- Post added at 12:26 PM ---------- Previous post was at 12:20 PM ----------

So really, this is standard behavior. Reboots are not required for rule application unless the real IP is cached somewhere, DNS cache maybe?
[Android Apps and Games] broomer68:
Yep, that is correct.

Verstuurd vanaf mijn ASUS_Z00A met Tapatalk
[Android Apps and Games] Pkt_Lnt:
So the dev who wrote the program and after an update the message appears to reboot is just a silly unneeded thing?
[Android Apps and Games] ΦDroid:
The answer I was looking for was right in the FAQ...sorry for wasting thread space
[Android Apps and Games] IronTechmonkey:
Your goal to avoid rebooting where possible is reasonable, but dont lose site of the forest (the universe of Adaway usage cases) for the trees (your usage case). A significant component of app support, from original documentation to troubleshooting, is to create a common denominator of circumstances in which there are less variables. Rebooting creates those common circumstances thereby removing ambiguity from support and troubleshooting .

:good: ... and I would add that Adaway's built in FAQ and troubleshooting pages are quite complete, concise and well presented.

Glad you got it sorted out. I had been using Adaway for a year before discovering the built in FAQ which is indeed very helpful :)
[Android Apps and Games] eladbuzaglo92:
Unofficial makes it safe?
[Android Apps and Games] ΦDroid:
My goal was not to avoid rebooting, but that is a long story. Thanks for the help
[Android Apps and Games] Mrcactuseater:
Yes

Tapatalk'd from my Twisted, Despaired Nexus 5x
[Android Apps and Games] maybeme2:
I've used adaway for years. But since I moved to android 5.1.1 on my rooted nexus 5 it no longer seems to block much of anything. Anybody else have that experience?

Are there better alternatives?
[Android Apps and Games] Pkt_Lnt:
Make sure there is no proxy in APN settings and don't use data saver in Chrome and other browsers.

We are all here because Adaway works, if set up properly (and that can change by android version or rom), and you understand that limitations of what miracles it can not perform.
[Android Apps and Games] maybeme2:
Thank you for replying.

This is a new rooted nexus 5 phone with 5.1.1 and Xposed. My other phone was a nexus 5 with 4.4.4 with Xposed. That's what I was comparing with.

I don't use chrome. Mostly Firefox and Next Browser.

It's in other apps that I notice ads coming in that didn't use to in the older phone.

I'm not criticizing Adaway. I'm a fan. Just trying to figure out why it is behaving differently.
[Android Apps and Games] Pkt_Lnt:
Sounds like your APN has a proxy feeding you DNS direct ads, and that changed with the phone. AdAway should work the same regardless of Android version if everything it configured to it can work. Some apps feed direct DNS ads with IP addresses and AdAway cannot stop those. There is a great help file in the app, accessed by checking the (?) button at the top.
[Android Apps and Games] maybeme2:
I just uninstalled my Adaway ver. 2. X (I had an old apk I had saved) and installed the latest version 3.1.1.

What's an Apn and how do I check it?

(If it's in the help you don't need to answer. I'll check it out. I'll also Google it)..

Thanks for the help.
[Android Apps and Games] maybeme2:
Found my apn settings.

Does this look OK?
[Android Apps and Games] androcraze:
You're missing a full scroll-down page. For T-Mobile, I'm seeing these suggestions:

http://apn-settings.com/t-mobile-apn-settings-step-by-step-configuration/

http://www.4gtricks.com/2013/04/t-mobile-4g-apn-t-mobile-4g-apn-settings.html

Both are almost identical, but the first leaves "APN Protocol" to default. For "APN type: default,supl,mms", be sure not to add spaces after the commas; it's a natural thing to do, but it won't work if you do it.

Sometimes the XDA forums for a given phone have a setup guide for particular carriers (mostly AT&T and T-Mobile) either under "General" or "Q&A, Help, and Troubleshooting"; I'd look there first. Here's for the N5:

http://xdaforums.com/google-nexus-5/general/tmo-nexus-5-apn-settings-alternate-t2527250

http://xdaforums.com/google-nexus-5/general/nexus-5-t-mobile-thread-t2561229
[Android Apps and Games] jetscreamer001:
FYI

Adaway also blocks ads on your apps. I tested it on my Note 4 with such apps as CNN and NYT. No ads at all, just a blank space where the ad should have been. There are some side affects with certain apps like Weather Underground. When you click on links under On the Web, it will fail to load. I think is caused by Adaway.
[Android Apps and Games] jcsww:
Is there any update on a version of AdAway being more compatible with Android N and is there a way to get the current version working with Android N?
[Android Apps and Games] 338lm:
Jackbox.tv is working by adding the following hostname to the Whitelist:

www.google-analytics.com

Cheers!
[Android Apps and Games] mrRobinson:
It's ready compatible. You'd have to give details on your exact issue.
[Android Apps and Games] omf05:
Hey guys so in order to use systemless adaway all I need to do is flash the systemless adaway file and then install the normal adaway apk?
[Android Apps and Games] yanleites:
Yes, and read what people wrote - it helps !
[Android Apps and Games] Xdevillived666:
You foot d? Busy box installed?
[Android Apps and Games] GabbyWC:
Is the AdAway_systemless_hosts_v2.zip file incompatible with x86 devices? It works on my Nexus 5 phone but when I try to flash it on my Nexus Player, I get the following error message in TWRP:

Updater process ended with ERROR: 255

Error installing zip file ... AdAway_systemless_hosts_v2.zip

After flashing the system.img and boot.img files from the latest factory image, I followed that up by installing systemless SuperSU and systemless Xposed. Systemless AdAway is the last hurdle that I'd like to clear in order to block ads and keep my device's system partition unmodified so that it can accept future OTA updates.
[Android Apps and Games] maybeme2:
In nexus 5 with xposed, updating the host file gives insufficient space. So I changed data/data/hosts. How does the Android system know to use this host file rather than the standard location?

Should I modify android settings too or does Adaway handle that?

Does Adaway need busybox installed too?
[Android Apps and Games] tag68:
If you remember to deactivate adaway before applying that OTA, adaway is no problem. Tested it quite some times on different devices. In contrary that systemless script creates a link which may be a problem for OTA.
[Android Apps and Games] GabbyWC:
Interesting. If that's the case, then I'll just use AdAway as usual on my Nexus Player and restore the original hosts file when an OTA system update is pending. I'll know how effective the systemless script is in about a month when the July security update arrives on my Nexus 5.
[Android Apps and Games] corkiejp:
Your completely wrong with both the above. The systemless script is used to allow OTA's, so your system partition remains unmodified.

Any modification to the system partition will cause OTA's to fail. If you modify something and then revert it, you still have modified the system image. Just mounting it R/W will prevent OTA's from been applied.
[Android Apps and Games] tag68:
Then why did the update from 5.1.1 to 6.0 on Moto X Play work for me after deactivate adaway, uninstall busybox and unroot? (hint: unroot does a reboot, after which system obviously is not mounted r/w anymore)

After that I had the problem that SuperSU unroot of later versions is not working fine. I didn't try the update 6.0->6.01 because I was not aware that the version 2.62-3 of SuperSU defaults to systemless root, so unroot should not be necessary, instead I reflashed system partition (only the system.img sparsechunk, nothing else, before applying OTA which worked on first try) because SuperSU Full Unroot is just broken - and not necessary anymore it seems as long as you use systemless. Which is necessary, because if you just try to root a Moto device Marshmallow or later without choosing systemless, you always will end in a bootloop. So I should just have tried the OTA update on the rooted device instead of flashing system, but I didn't know ...

Until you tell me there is a brand new check in Marshmallow that the system never was modified which was not present in Lollipop, you won't convince me that OTA won't work the way it worked with Lollipop. So OTA after deactivating adaway is supposed to continue to work. Or was there a change?
[Android Apps and Games] corkiejp:
[MENTION=6192363]tag68[/MENTION]

Taken from here.

Your update from 5.1.1 to 6.0 on Moto X Play, was probably a full OTA.

If you re-flash the stock system image, then OTA's will work.
[Android Apps and Games] maybeme2:
I need troubleshooting help. I have 2 phones. Both rooted nexus 5, one with kitkat and one with 5.1.1. On the kitkat adaway is blocking ads but not on the 5.1.1 in the same apps!

Something is wrong but I cannot find what.

I have screenshots of the apn settings but no way to upload them on this XDA premium app.

Edit. Uploaded using the XDA labs app below.
[Android Apps and Games] maybeme2:
Here are my screenshots (using different app now)
[Android Apps and Games] GabbyWC:
Thanks for the clarification. I had read something like this before which is why the post by tag68 came as a surprise to me. I'll leave AdAway untouched for now with the hope that an x86 systemless zip file will be released before I enable a custom hosts file on my Nexus Player.

On a side note, is there an Android app available that can scan a device's system partition to verify its integrity?
[Android Apps and Games] -Duir-:
Regarding Systemless

I flashed the AdAway_systemless_hosts_v2.zip to have a systemless hosts file, but I don't think it works.

I have the script in /su/su.d and the hosts in /su/etc and before installing the APK and enabling AdAway both /su/etc/hosts and /system/etc/hosts showed the same file size (56.00 B) and contents, but afterwards only the /system/etc/hosts file changed to 2.01 MB.

Given the whole point of this systemless patch shouldn't hosts in /su/etc/ be the one getting changed? It seems to only be modifying the one in /system/etc and ignoring the other.
[Android Apps and Games] pkelly517:
man mount

man bind
[Android Apps and Games] Hiparci:
How can i add any app to White list?
[Android Apps and Games] Pkt_Lnt:
Menu, Your lists, Whitelist
[Android Apps and Games] Ja_som:
You can't add an app. Open Log DNS Requests in AdAway, enable TCPDUMP, open app which you want to add to whitelist, open log in AdAway and add items from there to whitelist...
[Android Apps and Games] piccit:
Did the script actually run? If so, /system/etc/hosts should be listed if you run 'df' from a terminal
[Android Apps and Games] -Duir-:
I tried the "df" command and of the 33 items displayed /system/etc/hosts wasn't among them. :(

EDIT1: Not sure why it isn't running. I copied the command from the script and pasted into terminal and now it shows up. Of course, once I reboot it'll be gone again. Any thoughts on why the script isn't running or suggestions that might make it start working?

EDIT2: Actually, the issue seems to be moot. I don't expect any future OTAs on my current device and for fun I let /system/etc/hosts be modified and SafetyNet Helper doesn't care and still passes the device. So it seems I don't even need to bother with systemless hosts.
[Android Apps and Games] kabirjedi:
hello guyys.A i new adaway user and no to tech mage :D

So here is 1 ad link:http://ad.adverticum.net/C/3125300/3916601/391660600/1465651380628/touch.femina.hu/3916584?u=0000000 i add but adawy says not valid hosts name...

So basic how add own hosts files.?

IThank you!
[Android Apps and Games] DreamFX:
Add like this ad.adverticum.net
[Android Apps and Games] ChasingShadows:
ad.adverticum.net
[Android Apps and Games] arcticnights:
Hey guys, does the latest version block youtube ads? Thanks. :)
[Android Apps and Games] ΦDroid:
Ads in the YouTube app aren't linked with domain names so it is impossible for Adaway (a hosts manager) to have any effect.
[Android Apps and Games] sansnil:
If you run Xposed there's a great module just for this.
[Android Apps and Games] Metr0nom:
I just install this and I must say it's amazing.I tried ot on one site with adds for now and it works perfect.Thanks for this.
[Android Apps and Games] sam008:
Guys - i'm running android n preview 3 on my nexus 6. Intall of adaway works fine but after I click downloading files, it keps me the error 'Copying of hosts files failed!

How can I fix this?

Thx
[Android Apps and Games] corkiejp:
Have you flashed the systemless host zip found in the first post.
[Android Apps and Games] sirxdroid:
On a fresh SuperSU install, should AdAway_systemless_hosts_v2.zip be flashed right away after SuperSU in the same TWRP session, or should SuperSU be flashed first, reboot, which usually means SuperSU does a reboot a couple of times, then reboot again to TWRP and flash AdAway_systemless_hosts_v2.zip ?
[Android Apps and Games] androcraze:
http://xdaforums.com/showpost.php?p=66593499&postcount=5951
[Android Apps and Games] xXCoolGuYXx:
Xposed is the only way
[Android Apps and Games] sirxdroid:
Just tried it and the answer is yes, it works if AdAway_systemless_hosts_v2.zip is flashed right after SuperSU in the same TWRP session (no reboot needed in between).
[Android Apps and Games] danielcr12:
How do I know if systemless is actually working?
[Android Apps and Games] githyanki:
http://xdaforums.com/showpost.php?p=67239574&postcount=6256
[Android Apps and Games] danielcr12:
So it is working. On lollipop
[Android Apps and Games] ddaflorez:
The ad block host makes youtube app to keep buffering every 3 seconds on each playback... Is there a fix for that ?

Enviado desde mi LG-D850 mediante Tapatalk
[Android Apps and Games] provolinoo:
Hi guys, a little question about "AdAway_systemless_hosts_v2.zip":

if I am on Android N Preview (currently I'm installing DP4 on my Nexus 6) but I don't care about systemless root (since I've already modified system partition with a custom rom, so my system is no longer untouched), do I still need to flash this zip to make AdAway works or is it not needed?

Thanks in advance for answering :)
[Android Apps and Games] quynhbds12345:
Galaxy S4 looks good , runs great. Thank you.

Galaxy S4 looks good , runs great. Thank you.
[Android Apps and Games] hashworks:
Hm, I flashed the latest Android N Preview on my Nexus 6P and rooted with https://download.chainfire.eu/890/CF-Root/CF-Auto-Root/ - however Adaway tells me that it can't copy to /etc/system/hosts, altrough I can let it write to /data/hosts and copy the file from /data/hosts to /etc/system/hosts with Solid Explorer.
[Android Apps and Games] githyanki:
When you dirty flash a ROM update it would prevent you from having to reapply hosts, but it is not necessary, just nice.
[Android Apps and Games] piccit:
I've heard that you need busy box on N. (not sure why, but I read it in another thread and at least one person reported that it fixed the issue). Make sure AdAway has su permissions granted. Also the system 'write to sd' or whatever it's called permission
[Android Apps and Games] abhishekcal:
For me Adaway is not working on CM 13.

I am using OP2. I have already tried updating the binary using the busy box and still it is not working.

I have tried multiple reboots with no solution.

I have checked the hosts files and they are updated.

I have no proxy configured. The same setup was working when during OOs 2.2.1.
[Android Apps and Games] hashworks:
✓ Busybox installed

✓ SU permission granted

✓ Storage write permission granted

Same error :/
[Android Apps and Games] :
Data saver in chrome disabled?

What is not working? In browser or/and in apps? Could you a bit more precise, please.

With cm13 there is no need for busy box, btw, to get adaway working.

My opo is working fine for ages with cm13 and adaway.
[Android Apps and Games] Richard_10:
Hello guys. Please anyone can tell me how to uninstall systemless script for adaway ?

Please help thank you.
[Android Apps and Games] githyanki:
Its in the first post of this thread. Install in TWRP.
[Android Apps and Games] Richard_10:
I'd like to Uninstall it, remove it.
[Android Apps and Games] mitchdickson:
Which of these would work? Hmm.
[Android Apps and Games] Richard_10:
I don't understand. I need to wipe data ?