yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] Mike B.:
We hear constant references to compatibility issues between CM 12.1 and most anything that deals with the hosts file (including AdAway and just about every DNS-related product), but never see any useful log. If you use CM 12.1, PLEASE make sure that you grant sufficient privileges to AdAway ("Privacy Guard"?) and that you only have ONE /system/etc/hosts.* file. I'm afraid I don't have a spare device at this time on which to install CM 12.1, but it seems rather clear that the issue is NOT with AdAway but rather with how that ROM family handles local DNS resolution, a matter over which AdAway has absolutely no control.

Note that, as mentioned many times previously, as long as your /system/etc/hosts contains the entries that you asked AdAway to put there, that means AdAway is working. If somehow CM 12.1 doesn't respect the hosts file contents, that might be something to bring up to CM support! ;)
[Android Apps and Games] Ultramanoid:
I've never had a single instance of AdAway not working properly on CM 12.1 and CM 12.1 based roms on a range of devices from 4 different OEMs. I seriously doubt ( particularly without specific proof, which there isn't ) that there's an inherent problem in CM regarding AdAway or hosts file issues, but rather a statistical majority of users installing AdAway on CM 12.1, simply because it is the most popular custom rom by far, thus most users with a problem are likely using CM 12.1.

Most issues if not all can be solved reading the OP or searching the thread, nothing to do with CM 12.1.
[Android Apps and Games] ChasingShadows:
I'm running CM12.1 together wit AdAway 3.1 ... no problem at all ...
[Android Apps and Games] IronTechmonkey:
Well put about a false perception of causality created by a statistical majority in which a larger number (but not a higher percentage) of 3rd party items or untoward actions become factors. In addition to reviewing the appropriate threads and providing viable proof as you suggest, I recommend that anyone having a problem with Adaway in CM12.1 stage their testing. eg. Flash ROM and Gapps, enable native CM SU, make no other changes or modifications (kernels,Xposed, other tweaks), then install and test Adaway. If the first test is successful, procede with the configuration of the ROM and addition of other bits in increments, re-testing repeatedly along the way. If the first test fails, flash SuperSU and see what happens. If an issue is noticed, find out how to reproduce it and log it.
[Android Apps and Games] Mike B.:
You might be right. I have no personal experience with CM 12.1 and I'm merely referring to various comments posted on this and other sites, suggesting that for some users going from CM12 to CM12.1 somehow caused perceived DNS problems. I wholeheartedly agree that simply reading the OP or searching the thread would save all of us many headaches but we both know that searching before posting is a lost art. ;)

That said,

I have yet to hear of any specific AdAway issue

... with anything! ;)
[Android Apps and Games] fonz93:
I noticed 2 weeks ago that all the ads are starting to appear again for some apps, is it like that the host file entries are deprecated or something like that, am i the only one?

An example for me it's mxplayer (i don't use it very often, so i don't know exactly when it started to show ads again)
[Android Apps and Games] IronTechmonkey:
MX player may use a form of push advertising that cannot be blocked by host based methods. You can confirm this by running "Scan for Adware" in Adaway. that fact that it might not have showed ads for a while might be coincidental or might mean it uses multiple methods.

View attachment 3587306
[Android Apps and Games] fonz93:
You're right, thanks! Ironically all the app's listed there are the ones that started to show ads during the last month, lol
[Android Apps and Games] evronetwork:
I update my cm now ..new version shown up(I run sultans cm12.1 rom for my 1+1) and seems the problem still exists(I flash SU and grand permission of course ..and after the update I reboot ..still)
[Android Apps and Games] Mike B.:
If your /system/etc/hosts still contains the entries you asked AdAway to put in there, then that means that AdAway is still working fine, as expected. Based on your posts in this thread, your trouble has all the indications of a forgotten proxy/vpn (or a proxy-like "optimizer" or "adware prevention" or "privacy" app), but there's not much more we can do for you from the AdAway standpoint, sorry.
[Android Apps and Games] evronetwork:
well I don't use proxy or vpn, don't use any optimizers or privacy apps so I'm in a dead end I guess, still the adaway seems to works as expected as it does it's job editing the hosts file properly, from what I see other CM users have the same issue so it's not only me.

I guess android 6 would make this even worse(or adaway will step up the game and find what lies behind :p ) only time will tell which comes first

P.S. All I can do is try a totally different rom(not based on cm and try again to see if this occurs, if it occurs on clean flash non-cm based rom well doesn't matter if it edits the hosts file right, the result is what matters) ..cy around(I'll post my results when I do this)
[Android Apps and Games] IronTechmonkey:
I'd be interested in seeing those reports in the interest of identifying potential additional factors.

For months I've flashed CM12.1 test, unofficial and official builds several times a week (switching to a new one as a daily every few weeks) and have installed Adaway or restored it from backup in a variety of workflows and never had a problem such as this; nor have I seen such issues reported in 3 closely following CM12.1 device threads. If it is related to CM it may be device or nightly-build specific but even that seems to be a stretch. Have you replicated this issue on a clean flash of CM12.1/Gapps with only SuperSU 2.4.6 and Adaway installed and no tweaks or hacks of any kind?
[Android Apps and Games] xxwirawanxx:
Works flawlessly in my xperia z2

Thanks lol
[Android Apps and Games] IronTechmonkey:
What ROM? (if you dont mind my asking) Thanks.
[Android Apps and Games] Mike B.:
Even though YOU don't knowingly use a proxy, VPN, optimizer or privacy app, it's very possible that one or more of those applies to your ROM, router, ISP, etc. Sometimes all it takes is an obscure ROM settings toggle or underdocumented new service.

Forget about AdAway. As long as the hosts file is correct, nothing needs to be done for/with/by/to AdAway. Your trouble seems to be that something (your ROM? iptables? settings? browser? apps? router? ISP?) is bypassing local DNS resolution. Either way, whenever you're ready, AdAway will be there for you... ;)

FYI AdAway works fine with properly rooted Android Marshmallow 6.x ROMs... as well as countless CM-based ROMs.

---------- Post added at 12:14 AM ---------- Previous post was at 12:08 AM ----------

Those "same issues" seem to often come from OnePlus One users so it might indeed be a device-specific matter, but the only thing we know for sure so far is that AdAway is correctly editing the hosts file. I suggest testing WITHOUT AdAway, by simply adding test entries such as "bing.com 127.0.0.1" to the hosts file, rebooting, and trying to 'ping' those test hosts.
[Android Apps and Games] xxwirawanxx:
I'm using stock rom and I'm at lollipop 5.1, youre welcome
[Android Apps and Games] ericsondro:
i using now and perfect and my phone note 3 n900 & stock 5.0 rom
[Android Apps and Games] :
Has anyone successfully blocked ads in Opera? I'm talking about notifications like "win a phone" and speed dial entries that appear from time to time. Tried reinstalling the browser while running DNS logger, it requests 50+ domains, and I don't know which to block, blocked some with opera in name, but it did nothing.
[Android Apps and Games] Philip:
Can't export my whitelist

I'm looking to export my Whitelist (I don't have a personal Blacklist) so that I can load it on to my new phone. When I use "Export all lists" I get a message saying that all lists have been exported to a file called adaway-export. However, I can't find this file (either using the Search function is ES Explorer or using Windows Explorer when the phone is connected to my PC).

I'm running Adaway 3.1. Phone is a Nexus 6, running 6.0.1, rooted with SuperSU 2.64 and with BusyBox installed in /system/bin.

The other aspects of AdAway seem to be working OK (ads are blocked; web server is running).

Any thoughts?
[Android Apps and Games] I_alqaraawi:
thanks
[Android Apps and Games] Ja_som:
I have it directly on internal memory (no folders), file has only name (adaway-export) no extension.
[Android Apps and Games] donmarkoni:
Yes man! Thank you! Thank you! :D

Sent from my HTC One
[Android Apps and Games] windows7:
grat app

similar app adblock

and get AdAway 2.5
[Android Apps and Games] :
Good work!

No issues at all.

Sent from my Nexus 4
[Android Apps and Games] irfan4fun:
Issue with AdAway on CM10

Hello Sir,

I have Sony Ion Cm10 with fxp226 and i was using this app before at that time i had no issue but now with new update + download file and apply ad blocking with this update i can't access play store :crying: but i can access web browse facebook and many apps but can't access play store.:(

when i delete host file from system/etc then play store works :o

pls help me what to do now ? i love this app and i want to use it

Thanks in advances
[Android Apps and Games] shadowdevil:
Thank You Thank You Sooo much works great on my MI2 runs on CM 10.2..!:highfive:
[Android Apps and Games] obzilo:
Can someone tell us what's new on 2.5? Thanks!
[Android Apps and Games] everlethal:
You can see it in to the app
[Android Apps and Games] guycan:
English man ... what

SGNote2
[Android Apps and Games] everlethal:
The changelog is in the application. If you search you will find it.

Now do you understand me?
[Android Apps and Games] guycan:
Lol I did just f"""""ng with u. Thanks man sorry

SGNote2
[Android Apps and Games] obzilo:
Why this new permission on 2.5... ? :confused:
[Android Apps and Games] toanau:
Does this work with 4.3.
[Android Apps and Games] Pfeffernuss:
Not for me (using CM10.2) but others have more luck, as it appears. Using Adfree at the moment until a new version arrives that does work properly all the time.
[Android Apps and Games] DecypherT:
Indeed. I'm not installing until this is clear. Maybe it's an in app "donating" feature.

Still doesn't feel good.

Send from my Nexus 4
[Android Apps and Games] jackdubl:
This IS an ad blocker, so it's CONCEIVABLE it's blocking something.

Or it could be out to take over your phone and buy a bunch of wack apps at the play store!
[Android Apps and Games] Cyclu:
Yes is "in app billing" i had donate in application when he was on Play Store,

but since AdAway not on PS it should no longer be here i think, because in help

i see donate with Flattr or PayPal
[Android Apps and Games] DecypherT:
Ok, then it's because the new requirement from Google to let donations only go thru apps.

Send from my Nexus 4
[Android Apps and Games] hhwong:
I am very confused now,

I googled adaway and I found official site with only 2.3 version but we have 2.5 here? Whats going on? o_o????

Did the deveploper abandoned the site and just keep posting on xda or is this a custom version of adaway?
[Android Apps and Games] mitchdickson:
Read the OP.

Sent from my iPad Mini
[Android Apps and Games] weirdsciencex:
I'm running the official build (2.3) but have noticed YouTube ads aren't being blocked.

Does 2.5 block them or do they use the same blocking methods and sources?

Sync Dropbox, Evernote, & GoogleDrive: Get one month of service for free https://www.cloudHQ.net/dropbox?r=oz4a
[Android Apps and Games] Philip:
Thank you very much for checking.

I've looked in the same place and it's definitely not there on my N6 (despite having had confirmation within AdAway saying that it had been created). Hmmmmmm.

UPDATE: Just been through all my settings, and I found that AdAway didn't have "Storage" permission. Switched that on, did an "export all lists", and the file is exactly where you said that it would be.

So, is there a bug in AdAway, in that it says that it has created the file even if it hasn't?
[Android Apps and Games] IronTechmonkey:
Check root of your internal SD.
[Android Apps and Games] Taomyn:
When AdAway merges the data into the new hosts file, does it store it temporarily somewhere and is it still available after it fails to copy it?
[Android Apps and Games] shaqman89:
No, it doesn't. But this is currently in one of the Adaway feature list, though not having a high priority.
[Android Apps and Games] IronTechmonkey:
Considering the importance to so many things of having proper write access this might be better described as a minor feature request... if it is not that way by design and there are not other factors involved that we just don't know about yet. ie. Why didn't Adaway have write access?

[EDIT] Or do we now have to set that manually in CM13?

---------- Post added at 08:23 PM ---------- Previous post was at 07:58 PM ----------

Yes. Have you searched this thread for the word "Opera"? If the same ads dont show in other browsers there is a potential answer in the most recent post that mentions Opera before your post. Also, Opera seems to have been loading their recent app updates with junk. I hadn't used it in a while (not since their 12/15/15 update) but checked in preparation for this post and found multiple speed dial-folders full of such junk, which were not there before. Shame on Opera... but not Adaway issue.
[Android Apps and Games] Mike B.:
AdAway can only report what the underlying operating system tells it... ;)

---------- Post added at 10:08 PM ---------- Previous post was at 10:00 PM ----------

I haven't used Opera in ages, but I believe that by default current Opera releases implement a "data compression" scheme which is nothing but a proxy for all http connections, effectively bypassing any local DNS resolution (and ignoring the local hosts file). Switch to a different browser or disable that "feature" and you'll magically regain control over which ads you want to see, preferably by using AdAway even if only with the default source files.... ;)
[Android Apps and Games] Taomyn:
OK, no worries, just trying to figure a way to get my Nexus 6 to update even if it means copying that file manually.

Just a thought for a future release would be to include a build date/time into the remarks at the head of the file to help check when it was really built by AdAway. When playing around with symlinks and binds it's not so easy to tell which file is being looked at when the file's datestamp may have been changed.
[Android Apps and Games] IronTechmonkey:
Ahhhh.... Sounds like something might be missing in CM although: Since we would not want a toast for all app induced write operations (of which there may be many occurring in the background) where would the responsibility lie for a toast after a user induced action within from within an app?

[EDIT] Expanding on the chicken-or-egg-first nature of this question: Even if the OS were responsible for delivering the toast wouldn't it be up to the app to tell the system that a particular action/result is not background activity and warrants a toast... but then we do see the toast for the successful write which seems to put onus on CM to deliver the toast for failed write. Chicken? Eggs? Toast? I'm getting hungry :).

It's almost certainly that, as described by the post I suggested searching for. Some searches are just to easy to be given a free pass;)
[Android Apps and Games] :
I'm not having issues with AdAway working in Opera like posters before me (I'm not using their proxy), I'm talking about in-app ads that Opera is pushing to the device, such as notifications and randomly appearing speed dial entries that contain links like "free games" for example. The app fetches this junk from somewhere, this is the domain I want to block, but I have no idea what it is, it's hard to track because ads do not show all the time, just from time to time, rare but annoying.
[Android Apps and Games] osm0sis:
[MENTION=320367]Taomyn[/MENTION], first of all, relax. Second, I did read your post and it was clear because you're making crazy symlinks all over the place in addition to bind mounts that you're overcomplicating the issue.

1) wipe data on AdAway to reset it to the default location (/system/etc/hosts - but remember, we'll have that bind mounted so it won't actually get touched) - don't run it again yet

2) remove all your crazy symlinks and bind mounts and reboot

3) copy the actual /system/etc/hosts file to /su/etc/hosts

4) download and flash the zip linked in the OP in recovery to install the su.d script that sets up the bind mount on boot

5) boot then run AdAway normally and let it update the hosts file it believes is at /system/etc/hosts (but is really in /su/etc because of the bind mount)

Do not touch the target option in AdAway's settings, and there's no point trying to link /su/etc/hosts to /data because su.img which contains the /su filesystem is already in /data.
[Android Apps and Games] Ultramanoid:
Slightly off-topic, but probably worth commenting since "systemless root" is something some users appreciate, although for the life of me, I can't understand it and seems like an oxymoron, since the main reason why a developer ( this IS a developers' forum, first and foremost ) roots a device is _precisely_ to modify things in /system.

There's support for this hack by Chainfire, it's been tried, and it seems to work. I think although it is not my place to say, that it's not AdAway's mission to accommodate every iteration and rom and hack from Android users, and it already is pretty much fool-proof as it is. No one is attacking you personally for sure.

(＾_＾)
[Android Apps and Games] IronTechmonkey:
That was not entirely clear from your post which led with "Has anyone successfully blocked ads in Opera?" to which the answer is yes. That being said, I can testify to the fact that in spite of those new commercial speed dial entries (which seem to be static) , ads are being blocked by Adaway. I'm running latest Opera version 34.0.2044.98679 9 (dated 12/15/15 at Playstore) and using the "adaway.org/hosts.txt" source with about 30 more items from the blacklist.

For what it is worth by way of comparison in Opera:

- Block pop-up = on (checked).

- Data saving = off (unchecked)

- I dont log-in to Opera services or sync anything there.

- I dont use the "Discover feature" which hooks into many articles with endless scroll even when all of the sub categories are disabled. This feature is the reason i dont use opera daily and keep it only as an alternative.

Opera must indeed be fetching those speed dial entries and "Discover" junk from somewhere but I'm not getting ads or pop-ups. Not sure why you are, especially if you are using the same version in similar circumstances.
[Android Apps and Games] Philip:
Granted, but there's more than one way to skin a cat.

Does AdAway's logic work like:

1) User requests Export.

2) Try to export personal white/blacklists

3) If no error message from Android, then display "success" message

Or like this:

1) User requests Export.

2) Try to export personal white/blacklists

3) Check whether the export file does actually exist

4) If file is seen to exist, then display "success" message, otherwise tell the user about the problem

Or something else?
[Android Apps and Games] Mike B.:
Updating a file's timestamp is the file system's responsibility, but I see no harm in AdAway adding the creation time as it knows it to the file's comments. I suggest you open an "issue" on GitHub so that [MENTION=3355398]mrRobinson[/MENTION] can look at it for a future release.

---------- Post added at 08:19 AM ---------- Previous post was at 07:58 AM ----------

1. Some of us despise unnecessary toasts. For debugging/troubleshooting purposes, simply looking at the logs often works wonders. So far, we haven't seen any log fragment dealing with the "CM 12.1 on OnePlus One" drama. Not that it has anything to do with AdAway.... ;)

2. No question about it, the egg came first. Once upon a time, a flaw in a protochicken's body (damaged nucleus, mitosis error, etc.) created the first chicken embryo and egg. Once that new creature hatched, it became the first chicken. Still nothing to do with AdAway... ;)

3. While I usually try to phrase it gently, yes, there's no doubt that in most cases all the users need to do is SEARCH, but it's so much easier to ask others to do the reading for them. Not specific to AdAway or eggs... ;)
[Android Apps and Games] joeyfong:
I cannot make local webserver start on boot, any idea why? Thanks
[Android Apps and Games] Mike B.:
That issue often relates to an incomplete root. Since you don't give any details, try to search this thread for references to your specific situation.
[Android Apps and Games] joeyfong:
My busybox installed at /su/bin, is this the reason? I am running supersu 2.65
[Android Apps and Games] Philip:
My personal experience was that the webserver wouldn't work with Busybox in /su/bin, but works fine with it installed in /system/bin. Also running SuperSU 2.65 Beta.
[Android Apps and Games] jshamlet:
Systemless root is the future. May as well go ahead and start supporting it now, because it's not going away. Nexus devices running marshmallow are already altering /system so that files aren't readily modifiable by anything, so expect the future to also hold more unions and overlays. This is actually a good thing in some respects, as it makes malware a lot harder to write and install on non-technical phone owners (people with locked bootloaders), but it does mean that actually altering /system is going to become the domain of custom ROMs only at some point.
[Android Apps and Games] ikirilenko:
Is Adaway working with Android 6.0.1?
[Android Apps and Games] graydiggy:
Use the search function or Google for your answer. It's even in this thread multiple times.

In case you aren't aware of how to use the XDA search function.

http://xdaforums.com/showthread.php?t=3160484
[Android Apps and Games] Mike B.:
Actually, "systemless root" is not even the present yet and it's still a highly experimental method which may or may not evolve into a stable product. It's not whether a specific root-enabled app should support it, it's whether "systemless root" properly supports root-enabled apps! ;)

I expect the future to be similar to the past, when every single Android release has eventually acquired proper full root methods for most any device.
[Android Apps and Games] osm0sis:
Chainfire said it was going to be the current official beta in the next week or so, replacing the old system-only root zip.
[Android Apps and Games] evronetwork:
currently backing up my data and going to CM13 nightly ..I can try clean CM12.1 along the process and see how it goes
[Android Apps and Games] Cares:
Chainfire said himself that it is very much a stable product and it is solely flagged as experimental because it is new.
[Android Apps and Games] Mike B.:
Chainfire might be slightly biaised! In any case, "systemless root" is a workaround, not a full complete root, one of the reasons it's called "systemless" and not just "root"! ;)

As a reminder, this really has nothing to do with AdAway. It so happens that AdAway is merely one of countless apps that request write access to a file in /system/etc. The current AdAway works just fine under Marshmallow, as described quite a few times in this thread, when the underlying system is properly configured,
[Android Apps and Games] jshamlet:
Yes, Adaway runs just fine on Marshmallow as it stands. I have an S-off Developer Edition M8 (which lets me do pretty much what I please), and Adaway worked right off to bat.

However, even if it isn't required to function, systemless root (and systemless support for modifying the hosts file) has one major advantage over the traditional method - you get to take OTA updates. Yes, you can (in theory) disable Adaway and restore your stock hosts file, but that is a pretty significant improvement over the current situation in lollipop.