yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] mrRobinson:
just a note/reminder, when using tcpdump to try to find something that needs whitelisting, you need to first disable adaway. when you need to blacklist items you leave adaway applied and then see what is coming through to add to the blacklist.
[Android Apps and Games] JaviLerma:
Hello, I do not know if the issue was already tried, but I read and found nothing.

Adaway not block ads of MxPlayer and ADM.

How can I solve that?

Thanks!
[Android Apps and Games] Mike B.:
I'm not sure what "ADM" is, but MX Player has been discussed at length in this thread. I suggest you do a little searching and I'm sure you'll find the answers to your concerns. Whatever ADM is, either the DNS Request log will show you which hosts it needs to access, or it displays its ads directly without going through local DNS and nothing in the hosts file can remedy that. Remember that AdAway is merely a hosts file management tool, it's not a universal magic wand to eradicate all ads! ;)
[Android Apps and Games] Cookie Ninja:
ADM= Android Download Manager, a kind of getemall download manager/accelerator for android!

Dead Cookies leave no trails...
[Android Apps and Games] eyiieyi:
work on xiaomi redmi note 2 prime, MIUI7 5.0.2
[Android Apps and Games] jackdubl:
Edit: nevermind
[Android Apps and Games] Mike B.:
It could also be Amazon Device Messaging, or Google's Android Device Manager, or... who knows what. The "Advanced Download Manager" I found on the Play Store specifically states: "ADM shows ads. To disable buy Advanced Download Manager Pro." which would seem to answer [MENTION=4648791]JaviLerma[/MENTION]'s question, but either way my reply stands... ;)

Note to all: when reporting a problem or concern, in this or any other thread, always try to be as specific as possible. Abbreviations that seem obvious to you might not be to others. It never hurts to state the full URL, device, ROM, or application name you have in mind. Sent from my N3 with FF42 on a modded N920 A012 TW with BTU CSC and L09A08 PrecoGOV. See what I mean? ;)
[Android Apps and Games] ememeh:
Hi there. I've noticed ads suddenly creeping up in apps which formerly had them blocked. So, e.g., Reddit is Fun is showing them. Have there been some recent AdAway changes? I updated to latest hosts file, rebooted - no changes.
[Android Apps and Games] Mike B.:
Changes in AdAway would be extremely unlikely to cause ads to spontaneously reappear as long as your source files applied successfully. The current version is 3.1 (updated a couple of months ago), but nothing has changed in a loooooong time that would cause your problem. If some ads are no longer blocked, either your source files no longer blocks them, or your system settings have changed, or your apps changed how they display ads. Follow the common procedure (enable tcpdump, check the DNS Request log) to see which hosts, if any, you might need to blacklist. If you now see ALL ads and only on mobile data but not on WiFi, then the issue might simply be a new APN proxy that needs to be deleted. Clearly, if you recently deleted some source files, updated your ROM, or added anything that deals with DNS resolution, that could also cause your trouble. Review the help files or search this thread for all the details.
[Android Apps and Games] J-Hop2o6:
I rarely use Reddit is Fun, but its on my phone. I use Reddit Sync and Reddit Relay. But I just now used Reddit is Fun and didn't notice any ads.

Try this, swipe away Reddit app via recent apps. Go to AdAway and disable blocking. Reboot. Go back to AdAway, then enable blocking, then reboot. Now try Reddit is Fun again to see if that works.
[Android Apps and Games] GohanBurner:
I have a Nexus 6P and I keep getting a "unable to parse" apk and cannot install it. :(
[Android Apps and Games] imcrazyz:
[MENTION=4343728]Mike B.[/MENTION] I'm using v3.0.2, should I update to the latest version? Is there any difference between v3.0.2 and v3.1?

I'm currently on cm12.1.
[Android Apps and Games] Taomyn:
I think I have found a bug

I narrowed it down to just this one host source, the others didn't seem to have any.

The only other setting I change to redirect to 0.0.0.0 but this one host source cause these hosts starting with numerics to not include the IP
[Android Apps and Games] Mike B.:
By searching this thread, you can see the changelog. Unless you are under Marshmallow or on a 64-bit device you probably won't notice much of a difference but it would be wise to upgrade to the current 3.1 as found in the OP.

---------- Post added at 07:47 AM ---------- Previous post was at 07:18 AM ----------
[Android Apps and Games] mrRobinson:
I'll try to duplicate this myself. There could be a bug in the regex that doesn't handle domain names that have numbers correctly. I would like to know if 127 doesn't have this issue as Mike B asked.
[Android Apps and Games] Mike B.:
d

On closer look, there might NOT be an actual problem, but merely a word wrap artifact. It would be nice to see the actual generate hosts file, but it seems that what displays as

[indent]0.0.0.0 ad.doubleclick.net.
29632.9239.302br.net[/indent]

(2 lines, which looks wrong) is actually

[indent]0.0.0.0 ad.doubleclick.net.29632.9239.302br.net[/indent]

(1 line, which is correct)!

[MENTION=320367]Taomyn[/MENTION]: please try to look at your hosts file directly and see if the line breaks are there or not. Note that you should still use 127.0.0.1! ;)

EDIT:

I tried the very same source file here and AdAway handled its entries correctly, as expected, even the long doubleclick ones with lots of digits. The report seems to be simply caused by the way the member's text editor/viewer happens to wrap long lines. Awaiting confirmation from [MENTION=320367]Taomyn[/MENTION].
[Android Apps and Games] :
Hi!

I have tcpdump disabled but AdAway still generate logs. It's a bug?
[Android Apps and Games] Mike B.:
What logs are you referring to? Under "Log DNS Requests" from the AdAway menu, make sure that "TCPDUMP IS NOT RUNNING", then hit "DELETE LOG FILE" to clear any leftover. Now after using the web for a while, is there anything when you get back and "OPEN LOG FILE"?
[Android Apps and Games] :
Yes, tcpdump is not running. When I delete a log file, AdAway generate new log. I got

logs from visiting sites, apps, etc. e.g. xda:
[Android Apps and Games] :
I uninstall AdAway, reboot, reinstall, and AdAway not generete new logs, but if i enable tcpdump, problem is back. Probably disable button not working correctly. I use AdAway 3.1 and android Jelly Bean. I think is bug on Jelly Bean.
[Android Apps and Games] Mike B.:
I can't duplicate your trouble here, but I don't have anything older than 4.4.2 for testing. It's possible that the tcpdump process doesn't terminate as it should on JB, but I'll let [MENTION=3355398]mrRobinson[/MENTION] chime in. If you have time, try using the old 2.92 version from the OP and report your findings.
[Android Apps and Games] Gill Android:
Please don't forget to uninstall the older version of Adaway before installing the latest.
[Android Apps and Games] Mike B.:
No, you don't need to uninstall an older version from this thread before installing the current version. Install the new version over the old one and reboot. You'll retain all your settings, including sources, black and white lists, etc.

The only time uninstalling first would be necessary is if you somehow had an incompatible version compiled/modded by someone else, such as whatever is/was available on F-Droid. Even though this thread is "UNOFFICIAL", it

is

the current true full home of AdAway where you can get the latest dependable AdAway version from the current main developer (@mrRobinson) as well as full support.
[Android Apps and Games] Gill Android:
Yes you are. I supposed he is coming here from Adaway installed not from this thread
[Android Apps and Games] Mike B.:
Through the magic of a

thread search

, you might see that [MENTION=6370964]imcrazyz[/MENTION] already posted in this thread earlier inquiring about downloading 3.02 and the Dev version that followed it, leading me to suppose/guess that he/she is using the correct 3.02 from here. Simply installing over an older version is much faster/easier and saves the hassle of having to re-enter the settings and lists. If somehow you try installing over an incompatible version (of any app), Android kindly spits out an error so there won't be any confusion... ;)
[Android Apps and Games] imcrazyz:
Awesomeness! And thanks for pointing out the thread search thingy, I will make use of it.

I noticed no changes in 3.0.2 and 3.1 as I'm still on android 5.1.1, the host files are doing the works. :D Thanks again for the great app!
[Android Apps and Games] :
Without changes in version 2.9. Only restarting phone disable tcpdump.
[Android Apps and Games] jeffzmagboo:
Working on Android?

Never mind. Got it.
[Android Apps and Games] Taomyn:
<OT REBUTTAL>FYI, also working in IT for several decades nearly 3 actually, IP 0.0.0.0 does exist and its mean varies in many ways including but not limited to: all local NICs, default route, a invalid address, but I use it in the form where it means "ip address not found". It has nothing to do with speed (which used to be the case for WinXP), but that it's telling the client that the IP does not exist full stop . 127.0.0.1 tells the client that it has a valid address, and that's the last thing you want to be doing when blocking an access.</OT REBUTTAL>

127 made no difference, but then.......

Apologies seems my text viewer was still wrapping the text even when I rotated the text as I had it set to fixed columns. Removed that and it showed the longer lines when I had the phone in landscape. Mea culpa.
[Android Apps and Games] Mike B.:
Only "nearly 3 decades"? That suggest that I have some 20+ years on you, but even youngsters have the right to be wrong. Use whatever you wish to redirect hosts but my UNOFFICIAL recommendation for AdAway users is to stick to 127.0.0.1, with or without enabling the webserver, especially if the main goal is to fool apps/pages into thinking they are displaying ads. ;)

In any case, thanks for confirming that the odd-looking entries were simply user oversights and that AdAway was working as intended!
[Android Apps and Games] Dbj.Dhaval:
I am still getting adds on apps.. How to get rid of them
[Android Apps and Games] Mike B.:
You should familiarize yourself with what AdAway is and does. Since you give no specific details we can't help you much besides reminding you about some common issues:

verify that AdAway was able to correcly download and apply the default source files

remember to reboot after making any change to AdAway or the hosts file

if ads are blocked on WiFi but not on mobile data, remove any APN proxy you may have

if ads are blocked in some apps but not all apps, use the AdAway DNS Request Log to see which hosts need to be blacklisted

For additional information, review the AdAway help files or search this thread.
[Android Apps and Games] AJ:
Hi there ,

i still see some placeholders adds in any browser , with no add displaying but just the word "Advertisement" ,

plus youtube video adds ,

is there a way to add easylist to get rid of those ?
[Android Apps and Games] Mike B.:
The placeholders suggest that you forgot to enable the AdAway webserver. Without it, your browser thinks the site is not available (and often displays an error or a placeholder). With it, the page is fooled into thinking that it got "something" and simply moves on without displaying anything, which is what you usually want. See the AdAway builtin help (under the aptly named "How to use the webserver in AdAway" FAQ item) for details.

YouTube (especially the official YouTube app) doesn't go through DNS resolution to display most of its ads and therefore there's nothing AdAway or the hosts file can do about it. There is an Xposed module designed to combat some of those ads, but simply switching to another less aggressive YouTube app might be easier.

I'm not aware of any "easylist" source file for hosts. The only files by that name are

filter lists

, not hosts lists, and are useless for inclusion in a hosts file, with or without AdAway.

Note that all of this has already be discussed many times. Next time, consider searching the thread so that you don't need to ask and wait for answers. ;)
[Android Apps and Games] IronTechmonkey:
You crazy kids get of of my lawn! I shall serve as proof that one can be old and wrong as well:).
[Android Apps and Games] Mike B.:
Sorry about the late response, but your post somehow slipped through the cracks. Exactly which apk are you trying to install under which Android version and ROM? The "unable to parse" message often means that you are trying to install a corrupted download. If you are referring to the current AdAway, please reboot your device (to clear up any Android glitch), re-download the file from the link in the OP, and try installing it again.
[Android Apps and Games] GohanBurner:
I downloaded 3.1 from AFH. I'm trying to install it on a Nexus 6P running PureNexus (6.0MM). I will try your recommendation and report back, thank you!
[Android Apps and Games] Mike B.:
Some current MarshMallow builds have quite a few quirks when it comes to modifying /system and you can search this thread for details applicable to AdAway but at the very least the app should install properly. Let us know what you find out.
[Android Apps and Games] osm0sis:
[MENTION=3355398]mrRobinson[/MENTION] I've only just noticed the webserver doesn't appear to remain active/run on boot on Marshmallow.
[Android Apps and Games] casouzaj:
Same on Lollipop in Z3C, as well.
[Android Apps and Games] Mike B.:
We already know that many Marshmallow build have trouble with /system access and keeping background processes alive, but there should be no issue under Lollipop with your Z3C/D5803 as long as you have a proper root and no conflicting process ("optimizer", for example). Which specific ROM and root method are you using, and do your logs show anything relating to the webserver? Is AdAway otherwise able to download and apply your lists without error?
[Android Apps and Games] osm0sis:
Disabling it in doze would help keep it alive, but it not starting on boot is another issue I believe.
[Android Apps and Games] mrRobinson:
hmm, it did for me I think, adaway asked for root on boot which was for the webserver. is this new for you? what supersu and rom version?

I can confirm tmr at least on my 6p and 9.

Edit: on my nexus 9 it survives reboots and even started up after I flashed 6.0.1
[Android Apps and Games] osm0sis:
Latest systemless root on my N5. I can even enable it, go into preferences and come back to the main screen and it shows not running again.

Edit: Ooh weird, now all of a sudden it doesn't even detect root. So I'm guessing that part of the code might need a fix up for systemless.
[Android Apps and Games] jineshpatel30:
[MENTION=3355398]mrRobinson[/MENTION]

I have one request,

if not much trouble can you add backup "host sources" (import/export type) ? it will be really helpful after fresh install :)
[Android Apps and Games] mrRobinson:
adaway isn't detecting root? I have latest systemless on my nexus9, 6.0.1 aosp and 2.6.1 supersu all working fine...

finishing up the 6p now.

do you have any other changes?
[Android Apps and Games] Mike B.:
The easiest way to restore data (for any app) after a re-install would be to use Titanium Backup, but if you prefer you can simply copy/restore /data/data/org/adaway/ which contains all the AdAway preferences (including source lists black/white lists, settings, etc.).
[Android Apps and Games] jineshpatel30:
That's what i do for now ;)

Thanks for this info :good: but it's basically what TB does automatically. :p

I thought import/export will be more convenient so i requested. But if there's much work to implement it then forget it ;)
[Android Apps and Games] osm0sis:
Sorry, false alarm. 2.60 went wonky I guess and root was lost, so I flashed 2.61 and now the webserver seems to start running and everything. :good:
[Android Apps and Games] jcsww:
I have no issues with AdAway and being rooted with 2.60 on my Nexus 6 and Nexus 6P. Root does seem to take a little longer to be granted under 2.60 though. Wait for the pop up mentioning super user has been granted before trying to update the host files Even if you get an error after updating the hosts and are sure superuser was granted. Restart AdAway and see if it says the hosts file is up to date, as mine show up to date after doing that.
[Android Apps and Games] kojak1989:
after install adaway i have this:copy of hosts list failed! root access granted and bootloader unlocked.
[Android Apps and Games] jcsww:
If you restard AdAway, does it tell you the hosts file is up to date?
[Android Apps and Games] kojak1989:
No.
[Android Apps and Games] jcsww:
Then it is either the version of AdAway that is the issue, as I have had no reason to use anything higher than 2.8, or you don't actually have root.
[Android Apps and Games] kojak1989:
i have root because its in-build in this rom.
[Android Apps and Games] jcsww:
Could be a ROM compatibility issue then.
[Android Apps and Games] kojak1989:
so what i have to do ?
[Android Apps and Games] jcsww:
Mention it in the thread for the ROM you are using. They might already have a work around or will hopefully fix it I their next update.
[Android Apps and Games] Mike B.:
You don't give many details, but that message simply shows that your system didn't allow the hosts file to be updated. AdAway is merely reporting the problem. This is most likely caused by an incomplete root or in general something that prevents write access to /system (S-ON, protected partition, MM, etc.). Once you figure out how to provide write access to either /system/etc/hosts or a symlink in /data, simply point AdAway to that file and all will be well. Those issues are best discussed wherever your ROM is supported since they are not specific to AdAway, but you might want to first search this thread where similar situations have been addressed previously.
[Android Apps and Games] Taomyn:
I'd like to make you aware of an issue that affects AdAway (and many other apps) when used on Google's new Marshmallow releases and the new system-less rooting method. The Nexus 6 has this problem written about here by Chainfire http://xdaforums.com/showpost.php?p=64208563&postcount=3393

Basically, AdAway thinks there is 0 bytes free when there isn't. On the N6 6.0 the system partition had a few MBs, now it has zero.
[Android Apps and Games] Mike B.:
Thank you but that Marshmallow/systemless issue has been discussed extensively here already. You may want to search this thread for details. It's not about what AdAway thinks but rather what "systemless" Android reports... ;)
[Android Apps and Games] szale9001:
So I, and likely many others, have been using the "mount -o bind" trick to get the hosts file updated without touching system. Recently, as was mentioned above, this doesn't work as well in 6.0.1 because of the space issue. So I tried to use a custom hosts file location in Adaway to point to the actual "systemless" location of my hosts file and it updated. Unfortunately, after that, AdAway got angry and failed because I didn't create the symlink to system (obviously because I don't want to modify the partition). It then showed up as "Disabled" until I restarted the app.

So my question is, would there anyway you could make the symlink generation optional? That way, Adaway will update the hosts file just fine in its custom location and the bind script will take care of the rest.
[Android Apps and Games] Mike B.:
What location did you point to in your AdAway preferences and exact error did AdAway give you? Since AdAway doesn't need to be running at all unless it's actively updating the hosts file, does your hosts file revert to defaults or does it retain the AdAway-generated entries (check from a terminal prompt or a file manager)?

Yes, that Marshamllow/systemless behavior is annoying to say the least, but once again, this is NOT anything over which AdAway has or should have any control. What really matters is not which file AdAway can access, but rather which hosts file Android uses since updating a random file not used for DNS resolution would be pointless. The bottom line is that you need to somehow find a way to create a persistent global symlink or binding (keeping in mind that 'bind' won't survive a reboot), and that's not something AdAway can or should do. You face the very same problem even if you simply need to edit your hosts file (or build.prop, or mixer_paths.xml, or most anything in /system) from a terminal emulator prompt or any root-enabled file manager, a limitation reminiscent of HTC's silly "S-ON".

Systemless is certainly an interesting (alpha!) concept but it's far from being ready for wide use, and even almighty [MENTION=631273]Chainfire[/MENTION] may never get it to work right. Eventually, someone might come up with a proper full root for Marshmallow, or a future Android release may be a bit less paranoid about /system access, but for now you'll have to try the various available workarounds. In the past most every similarly seemingly insurmountable Android limitation has been tamed, and there's no reason to believe that a properly rooted 6.x won't eventually appear... ;)
[Android Apps and Games] szale9001:
So, I have a script that does a bind on each boot. So, at least in my case, it does survive rebooting. The method I used was this (sorry if I was unclear before). I went into the settings, and changed the hosts location to /su/etc/hosts (where I have the actual hosts file) and then told Adaway to update. It did, but upon completing, it said there was no symlink to system so I needed to create one (Adaway is obviously not aware of the bind mount). I declined, and on the main screen it reported the status as Disabled instead of Enabled and up to date. I assume this happened because I declined to create a symlink I didn't actually need. So what I was asking is if there is a way to create an option to decline creating a symlink and still have Adaway function as normal.

That said, I do agree that it shouldn't be Adaway's issue. But with the above tweak, I don't think it would need to be while using that particular method...
[Android Apps and Games] Mike B.:
Ignore AdAway for a moment. Does /system/etc/hosts (accessed from a terminal prompt, for example) show the AdAway entries or only the default? If the contents are as you intended, then you don't need to do anything besides maybe optionally running AdAway again once in a while to grab updated source files.

From a practical standpoint, recent polls suggest that Marshmallow is only on approximately 0.05% of Android devices and I suspect the subset of users running system-less and 6.01 is even much smaller, hardly a mandate for apps to alter their code, especially since system-less is still very much an experimental moving target... ;)

FYI, see "symlink_hosts_to_data.zip" in the AdAway source to see the simple way in which it attempts to create a symlink, clearly not appropriate for your very specific requirements.
[Android Apps and Games] alphahere:
I had the same problem with 6.0.1. Expect the file was created on the /data partition. Once I reboot with the bind option enabled adaway started working fine. I did skip the link formation. It would be nice if adaway had an option to manage a file that is not linked to /system/etc/hosts.

The good part is adaway complains but still make the host file and that is all I want anyway. I can manage fine after that.
[Android Apps and Games] szale9001:
It shows the adaway entries. And fair enough, I just figured I'd throw it out there since it'd make things easier for people using this method
[Android Apps and Games] dimm0k:
request

possible to keep the download source files so that in the event of a host source being offline that the last downloaded copy could be used?
[Android Apps and Games] eu queria:
finally found