yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] mrRobinson:
Enforcing would prevent it from writing. Not revert it. This is something in that rom.
[Android Apps and Games] Telyx:
Definitely a ROM issue, and I think it's specific to DU's final LP version since I never had that happen with any previous version.
[Android Apps and Games] NahbiCris:
cool

thanks
[Android Apps and Games] mrRobinson:
Dev build posted, See the OP for details.
[Android Apps and Games] epsix:
Is adway gonna support YouTube ads block for future build?

Thanks
[Android Apps and Games] Mike B.:
NO, it's not possible. The YouTube app does not go through local DNS (the hosts file) to grab its ads and there's nothing AdAway can do about that. There is an Xposed module that claims to bypass at least some of those ads, but you could also consider using a less aggressive YouTube app, keeping in mind that some ads are embedded in videos and can't be skipped by anything.

---------- Post added at 06:07 PM ---------- Previous post was at 05:59 PM ----------

Since users don't always read details, a reminder that there is no overriding reason to update if version 3.1 is working OK. One visible difference some will surely appreciate in this dev build is that the hosts file now includes the timestamp of when it was generated (second line in the file).
[Android Apps and Games] IronTechmonkey:
Testing Jan 12, 2015 dev build

A couple of oddities which are perhaps quirks of CM or just things I've not noticed before. Occurring on Moto E running CM12.1 with SuperSU 2.46 and SElinux set to permissive. Method of Adaway installation was: "Export All Lists" (I have a modest blacklist), "Disable Ad Blocking" (to restore default hosts file), reboot, uninstall previous Adaway build, install newest (Jan 12 2015) Adaway build.

1) After the new installation, host sources are flagged as not available on line.

View attachment 3608259

After applying the one source I use, the date of the on-line version of that source is displayed.

View attachment 3608260

Does Adaway read the date of the on-line source only after it has been applied? If so I've just never noticed this before, perhaps because I rarely have to install Adaway as it restores successfully from TiBU.

2) This is a CM issue that has been reported before, but just to shed more light on it... The adaway-export file cannot be imported by native CM file browser or File Manager where the file is visible but grayed out.

View attachment 3608258

A 3rd party file manager such as Total Commander or MiXplorer was required to import the file. I've asked about this in the CM12.1 thread for my ROM http://xdaforums.com/showpost.php?p=64779912&postcount=475 but with CM development having moved to CM13 for my device would not expect a fix. As a logical curiosity and not an ask of Adaway; I wonder if the file could be imported if saved to another location or with different permissions. The catch there is that the other locations I believe would work are /root, /system or /mnt which are not accessible to the limited version of CM File Manager that pops up at the import screen, and this takes you back to using a 3rd party file manager.

In any event, the Jan 12, 2015 Adaway build is still rocking with the blocking.
[Android Apps and Games] Mike B.:
I'll let [MENTION=3355398]mrRobinson[/MENTION] address your report but I'd simply like to point out that the CM "can't find export file" issue seems to still apply to recent CM13 builds. Since so many people have questions/concerns about CM, I temporarily sacrificed one of my Note3s which is now running CM13 and the latest SuperSU beta (yes, "systemless", showing either my dedication to The Cause or unexpected masochistic leanings). AdAway works fine, as expected, but like you I was unable to get the builtin CM file tools to import that AdAway-export file, even though Root Explorer had no such trouble. Definitely a CM problem. Even if AdAway can be tweaked to bypass the problem, the folks at CM still have to clean up that mess... ;)
[Android Apps and Games] mrRobinson:
Two quick things.

1. No compelling reason to upgrade to dev build but I do post when there have been enough backend changes I simply would like larger test base. Confirmation nothing regressed.

2. Regarding any 6.x, marshmallow based rom and importing/exporting, be sure to manually give adaway the storage permission it will not pop up and ask. Known issue.
[Android Apps and Games] IronTechmonkey:
I once assumed that there was a a reason for that in CM, such as it being a necessary evil of working around Google's increasing attempts to lock us down and even CM adopting increasing restrictions of their own. Hearkening back to a previous discussion in this thread (which has been held many places): I'm all for the increased security (having the cake) but also want full control and decision making power (eat the cake). In this case I just cant make sense of the restriction being completely in the interest of greater security since 3rd party apps have access which means CM is only providing an illusion of security. That is isn't cake at all. It's just cardboard with icing on it. In any event you wont be going maso with CM13 alone. I'll test more in CM13 and bring more feedback and inquiry to the very active CM13 threads.
[Android Apps and Games] Mike B.:
On the several CM13 incarnations I tried, giving AdAway specific storage permission is required to create the file (another lovely MM "feature"), as expected, but that has no bearing over the failure of their builtin file tools to find it. An interesting twist is that the file is readily available from a CM root shell (terminal emulator) prompt. Very user-friendly as long as the user doesn't try to do anything. The techies and bad guys will always manage but the average user might have a tough time. ;)
[Android Apps and Games] visceralpsyche:
Latest build working fine here. Nexus 5 with PureNexus ROM 12th January 2016 and franco.Kernel build 79. HTH!
[Android Apps and Games] ignitionnight:
I've been having several problems getting adaway to work on on my Nexus 6 6.0.1 (MMB29S). I'm using the most recent systemless root 2.66 and adway 3.1 from f-droid. Originally the sym-link said it worked but I noticed ads everywhere anyways even though I adaway showed enabled and up to date.

Now last night I flashed the factory image and started from scratch from a completely clean stock android (MMB29S), I flashed 2.66 systemless root, flashed the AdAway_systemless_hosts.zip from the OP, then booted back into Android. I installed the newest apk build from the OP, then in preferences set the hosts location to data/hosts. (edit: also tried data/data/hosts and still didn't work).

Every time I try to enable adaway I get an alert that it could not create the symlink, and prompts me to set my phone to S-Off. I'm not on an HTC phone, I'm on a motorola nexus, no S-Off as far as I'm aware.

What am I doing wrong?

edit: what exactly does the AdAway_systemless_hosts.zip do when I flash in recovery? Is there a way to simply 'unflash' that?
[Android Apps and Games] mrRobinson:
What you are are doing wrong is setting the hosts location to /data/hosts. What the systemless_hosts zip does it make it so that you can leave adaway at the default /system/etc/hosts and it won't actually be writing to system. so simply set adaway back to that and reapply and you'll be fine.
[Android Apps and Games] ignitionnight:
Thanks for your help!

I changed it back to system/etc/hosts and tried to enable adaway and it gave me the error not enough space in system partition and to change target to data/data/hosts.

So I booted into recovery and flashed the systemless_hosts.zip again and booted back into android and tried to enable adaway and got the same error not enough space in system partition.

Does the systemless_hosts.zip play well with the 2.66 systemless root? I'm running Franco's r41 6.0.1 systemless root kernel just in case that causes issues as well.
[Android Apps and Games] Mike B.:
AdAway is merely relying on the (false) information the system is returning. You have sufficient space but Google opted to report any free space in /system as "reserved". This is not specific to AdAway but applies to anything attempting to write to /system on those devices.

Before you spend more time on this, simply download the current "dev" build from the OP here which should be clever enough to see through that Google trickery. Note that if you

search this thread

you will see that this N6/6.01 issue has been discussed at length previously.

Also mentioned many time is that since you are not currently using the proper version from this thread, you will first need to uninstall whatever you got from F-Droid which has an incompatible signature. If you have Titanium Backup, I suggest you backup your current AdAway data before uninstalling so that you can then quickly restore your lists and settings after you install the new one. From then on, you will be able to simply update to any new build by downloading from the OP in this "official unofficial" home of AdAway without having to do anything else.
[Android Apps and Games] ignitionnight:
I am, and have been, using the dev build from this thread since the moment I started over yesterday with a clean flash of the factory image. If you look at my first post which mrrobinson responded to I said, " newest apk build from the OP." I guess that was confusing and could have been clearer, I am using Adaway-release_build-Jan.12.2016.apk. And while I understand the assumption that I did not search, I promise I did and no trick mentioned in this thread has helped me resolve the issue. I even manually enabled the storage permission since the app won't automatically request it.

Thanks for your time trying to help, I appreciate it!
[Android Apps and Games] Mike B.:
Sorry, I must have confused your posts with those from someone else who was using an F-Droid version. Have you tried the AdAway-release_Build-szale9001_test.apk experimental build mentioned earlier (#4907)? I can't conveniently check whether that little tweak made it to the current dev build or not at the moment but it should check "reserved" space instead of just "available" space.

Of course, there is always the possibility that your /system partition is actually full, in which case your only recourse is to delete a few unnecessary files.
[Android Apps and Games] jwds1978:
With Android 5.0, AdAway was indicating that system was full when there was ~28MB free. I had to convert a system app or two to user, freeing some space, in order for AdAway to stop complaining about it being full.
[Android Apps and Games] Mike B.:
I'm not aware of any common Lollipop ROM that "lies" about free system space but if the ROM reserves some space that it hides from applications, AdAway has no clear way of guessing how much is actually available. The hosts file itself typically requires very little space (2MB or so in most cases) unless you use one of those monster source files which are not recommended for a variety of reasons. Converting a system app to user will free up space but many ROMs come with lots of relatively "unnecessary" content in /system which can be deleted when needed.
[Android Apps and Games] jwds1978:
The stock Touchwiz ROM for TELUS leaves not much free space in system,. Even after removing a few system apps that I don't want.

28MB should be enough, as I'm only using the sources listed in AdAway. However, I had to move a couple apps to the userspace for it to stop complaining.

With that said, it's working fine after freeing additional space. At the moment, I've got ~50MB free system space.
[Android Apps and Games] mrRobinson:
Yes that's the build he needs. And on the nexus 6 with marshmallow there actually is no user space avail on system which is why I have this hacked version checking reserve space. The reason I don't care in this case is cause even though adaway *thinks* it's writing to system it is really writing to data cause of the zip doing the bind mount. I won't put this in any build until I add a pref or something for systemless. Since if you are really trying to write to system this is incorrectly checking and seeing more space than is avail to the user.
[Android Apps and Games] ignitionnight:
Gave it a try and got a different error this time, now it just says "Copy Failed: Copy of Hosts Failed." Bummer.
[Android Apps and Games] Mike B.:
I guess that's one of the drawbacks of using "branded" devices/ROMs. Some carriers are worse than others when it comes to customizing their ROMs. Good phone, though. I love the SM_N900W8/N900T and use one (running a custom 5.1.1ROM) as my daily driver.

---------- Post added at 06:10 AM ---------- Previous post was at 06:05 AM ----------

That's after flashing the "systemless" ZIP from the OP and using the AdAway default location?
[Android Apps and Games] MatVekk:
3.1 OK in Xiaomi RedMi Note 2 with Miui 7.1 EU

Inviato dal mio Redmi Note 2 utilizzando Tapatalk
[Android Apps and Games] ignitionnight:
Yup. I'm sure I'm doing something wrong, or maybe the back and forth changes between apks is causing me some problems. I'm going to give it one more factory image reflash before I give up and go rootless, adaway is the only reason I root.

Just in case would you have a dummy-proof step by step so I don't screw it up again lol? Ideally I'd like to be able to unroot easily for the monthly security updates so maybe I'm wanting cake and to eat it too. Ha.
[Android Apps and Games] Mike B.:
Make sure you don't have any symlinks or bind mounts left from your earlier experiments, uninstall any AdAway you have, install the "systemless ZIP" from the OP (it creates a permanent bind mount), reboot, then install the "experiemental" AdAway build (it checks reserved RAM availability) with all default settings (i.e. the target file which remains set to /system/etc/hosts). This should be all that's needed.

Monthly security updates? Google already knows that new "security" issues will pop up every month and that they'll have the proper fixes? That's good planning! ;)
[Android Apps and Games] ignitionnight:
It worked, thanks man! Don't know what I was doing wrong the first time or what was causing problems, but this time worked without issue. Last time, not so much!

edit: To be clear I flashed factory system and data, so completely clean and it worked, also ditched franco kernel, I only really used it for color customization.
[Android Apps and Games] SyCoREAPER:
Anyone elses surverys for Google Rewards being blocked all of the sudden? Have not changed the host sources or anything from defaults.
[Android Apps and Games] swallowingled:
I've noticed that I'm not receiving notifications of new surveys on my Nexus 6P running Android 6.0.1 but I do receive the survey notifications on my Nexus 10 running 5.1.1. Both have AdAway installed so I don't think it's an AdAway issue. I'm having other notification issues with my 6P on 6.0.1 so I think the issue is with Android/Google.
[Android Apps and Games] SyCoREAPER:
100% Adaway issue. For me it's not the issue of receiving, it's submitting. This is the case one three different devices. Two of which are on different accounts (girlfriends tablet). I turned off Adaway and my surveys submitted and missing credit is there, $2.50 worth. What you are describing is (we will call it) "common behavior". This happens for me as well. Not sure if that is intended or by design but the way it is.

Question for anyone besides my original question.

Additionally I do not understand the following

If installing/creating the host file requires a reboot to flush anything cached, why is this not required when you disable Adaway and it restores the factory hostfile?
[Android Apps and Games] Mike B.:
Actually, it's NOT an "AdAway issue" and AdAway doesn't know/care about Google Rewards. What is very likely, however, is that you are (inadvertently?) blocking a host or hosts required by Google Rewards. As explained many times in this thread, enabling tcpdump and checking the DNS Request Log should help you select the host (s) that you need to whitelist. Before you do that, though, first try with only the default source files if you have added other sources.
[Android Apps and Games] SyCoREAPER:
I know it's not actually Adaway itself but the host sources, poor wording. Just wanted to see if anyone else was suddenly experiencing this all of the sudden.

What about the whole reboot thing?
[Android Apps and Games] androcraze:
It's not an AdAway issue; it's a hostfile issue. Something needs to be white-listed. Some info:

From https://www.reddit.com/r/Android/comments/1tgl2m/is_it_just_me_or_does_google_opinion_rewards_not/ :

"[–]idealisms 1 point 2 years ago

For surveys sent before Thanksgiving, you need to allow survey.g.doubleclick.net. For any survey sent after Thanksgiving, you need to allow access to clients4.google.com."

More info:

https://slickdeals.net/f/6465800-list-of-hosts-to-add-to-adaway-adblock-white-list
[Android Apps and Games] Mike B.:
[MENTION=5061138]androcraze[/MENTION] was kind enough to save you the trouble of searching for the answer yourself. Note that whitelisting the suggested hosts is likely to also bring in new ads that you may or may not want to see, as expected since the "Rewards" are using marketing channels. Whenever you make ANY change to /system it's always a wise idea to reboot and I recommend doing so if you revert the hosts file to its defaults to make sure the DNS cache is cleared.
[Android Apps and Games] SyCoREAPER:
While I appreciate the post and the direct answer, I still fail to understand 2 things.

1) Why is this happening just now? That post is 2 years ago and I only had an issue starting last month.

2) Why does Adaway need a reboot for updated hosts but not restoring original hosts.
[Android Apps and Games] Mike B.:
1. I have no idea which hosts you were/are blocking and which ones your Rewards things needs now or before. Those are matters that you should explore yourself if you have some concerns. Since those are not AdAway concerns, try asking in a Rewards thread or create one in the appropriate section if you want.

2. It's ALWAYS a good idea to reboot after any change to the hosts file, whether you use AdAway or not. It's not what AdAway needs, it's what your local DNS server may or may not need. Rebooting is the easiest way to guarantee that the new hosts file (regardless of how it was created/edited) will be used.

Maybe you should consider re-reading the AdAway documentation and the comments in this thread. I'm over-simplifying a bit, but basically AdAway is merely a tool to make it easier to edit the hosts file. It doesn't alter anything besides the hosts file and it makes no decision on its own about which hosts should or should not be blocked or redirected. Everything it does could be done manually but it just makes the process simpler by providing a convenient UI to grab and enable common source files with only a couple of clicks.
[Android Apps and Games] androcraze:
The answer I provided may not be correct or complete; Mike B. gave you the best way to find the exact host that's giving issue. Servers hosting ads change, and Google may have done some switching.

AdAway pulls-in hosts from 4 different sources. It could be that recently, one of those sources added that particular host to be blocked.

Again, once you find that host and whitelist it, it's no longer an issue.
[Android Apps and Games] Kenjari:
Just curious, do AdAway cause any more battery drain than before install?

I'm not noticing anything but just curious to know from long time users. I've always used Roms with baked in adblockers. First time using this app!!!

Thanks OP.

Nexus 6P

Catalyst Rom

Systemless Root
[Android Apps and Games] shaqman89:
Virtually none. It doesn't have any wakelocks or alarms, except for the automatic update.

Other than that, it is simply taking the advantage of the native dns resolution mechanism.
[Android Apps and Games] Mike B.:
I know, the name is confusing, but AdAway is hardly an "adblocker". Unless it's actively downloading new source files and updating the hosts file (during the initial install or during the optional daily update), AdAway is effectively dormant, using NO resources. Nice, eh? ;)
[Android Apps and Games] mrRobinson:
If anything it should help, depending on how many ads you get from your normal usage. But there are already articles showing that ads account for a ton of data use per web page, increase load times, etc. All that will put more drain on your battery. If you don't have adaway auto update and don't run the webserver then there is nothing at all adaway is running. even the webserver i can't even find it causing 1% of battery drain over course of day.
[Android Apps and Games] Kenjari:
Very nice!

Thank you so much.

I'm learning the difference now. I'm surprised im just discovering this. I was getting so many ads in app. Never paid attention how many have ads scrolling. Makes more sense now.

Thank you for the response team.
[Android Apps and Games] Giocarro:
Weird question: do you guys think that host-based address blocking could inhibit Google Alarm Clock to go off reliably with Android Marshmallow?

I'm performing some tests because since updating to CM 13 Alarm Clock missed a lot of alarms, and read somewhere that Marshmallow's doze mode have some kind of 'cloud based' management that *might* be affected by host file.

Not pointing my finger on anybody here, just trying to solve the issue at hand.
[Android Apps and Games] arteaga323:
I'm having some issues in which AdAway blocks some websites. I have tried logging DNS, whitelisted everything that popped up, reapplied AdAway, rebooted and still, no solution.

The affected stuff is when I get my weekly email digest from Android Central, I click on the email to view the articles but it fails to load. Other one is when I'm on Facebook and in my timeline I follow WeAreTheMighty (military news digest) and same issue, when I attempt to click on a news article, the webpage is all messed up. Disable AdAway and everything works dandy. Don't know what's going on... Thanks for any help!
[Android Apps and Games] mrRobinson:
I'm on stock marshmallow, rooted with adaway and my alarm goes off reliably every day. I have set daydream to not battery optimize but don't think that is necessary. I just thought i read some article about a google bug and doze when marshmallow first came out. So I'd say if anything a CM13 issue.

Give us an example of the links that are broken and I can probably tell you what you need to whitelist.
[Android Apps and Games] moosc:
Running Android 6 marshmallow Jan security update nexus 6, systemless root, and xposed. For the life of me I can't get adaway to work anymore. Dl that zip for systemless didn't seem to work. Still getting symlink missing.. Not sure what I'm doing wrong. View attachment 3612148

Sent from my Nexus 6 using Xparent Cyan Tapatalk 2
[Android Apps and Games] arteaga323:
androidcentral.com

wearethemighty.com

I have tried but nothing, I'm not sure if the page itself coming from an email link will be different or coming from a Facebook link, hiwverr whenever I click it, the main page is the ones I've listed. Thank for your help!