yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] Mike B.:
The bootloader is EXTREMELY unlikely ("impossible" is what I really want to say) to have anything to do with your problem. To simplify matters, uninstall AdAway for now, but make sure your hosts file still contains all the URLS to redirect. Reboot, check the hosts file again and verify that there is no other "hosts.*" file in /system/etc. As usual, it would be very useful if you could scan your logs and look for any clues.

Before you spend too much time on this, however, verify that you do NOT have a proxy in your APN or browser, and that "ad blocking" fails under both WIFI and 3G/4G data (to eliminate possible ISP interference). Without AdAway in the picture, you are now simply testing the basic local DNS resolution which hasn't changed in Lollipop.

Yours is not the only report, but most seem to come from variations on CM 12/12.1 ROMs, typically "customized" ROMs. FYI, I have a couple of N9005/N900T running TouchWiz-based Lollipop ROMs and have no such problem. I'm almost tempted to load a CM ROM when time permits as I'm getting to wonder what they hide in there that interferes with something as basic as handling of the hosts file.
[Android Apps and Games] Child's Play:
it works for some sites. not all of them. how do you resolve it?
[Android Apps and Games] Mike B.:
Quite simply, it "works" for the sites you block and doesn't "work" for those you don't block. Only

you

know which servers you are accessing and which ones you wish to redirect. Remember that AdAway and the hosts file can only block URLs but can't control access to numeric IPs. When you have time, try reading this thread and you'll find countless mentions of all of this, including reminders of how to use the DNS log to customize your black and white lists.
[Android Apps and Games] king.larry:
O.k. the bootloader was just an idea ... root was working with titanium backup and all other root-apps, but a clean reinstall of supersu seems to solve the problem!

Thank you!
[Android Apps and Games] Child's Play:
I did read but dont wanna add every url to whitelist. its just too much. it would be nice to unblock all of google ads
[Android Apps and Games] Mike B.:
It's still unclear exactly which "google ads" (more than the ones from googleadservices.com?) you wish to see from which app(s) but instead of whitelisting many URLs (you do know you can use wildcards, right?) it might be easier to simply NOT block them in the first place by using source files that allow them. It's difficult to give you specific advice without knowing what specifically you're trying to accomplish. ;)
[Android Apps and Games] Child's Play:
I meant from googleadservices.com the issue is some sites wont load
[Android Apps and Games] Mike B.:
Still a bit confusing. If you want to see links from googleadservices.com, either make sure it's not blocked in your hosts file, or whitelist "*.googleadservices" (a wildcard!). That said, those links are typically redirectors and just because you allow googleadservices.com doesn't imply that you allow whatever server it points to.

You could try to examine those links closely but many are encoded and difficult to decipher. It's clear that Google would like you to look at their ads and they are under no obligation to make them easy to bypass. If you are referring mostly to Google search results, note that many other search engines are even more aggressive and some go as far as admitting that they are still "decision engines" trying to tell the user what he/she is really looking for... ;)

Without a specific example, it's impossible to guess which sites won't load for you, but the basic approach of looking at the DNS log still applies.
[Android Apps and Games] Child's Play:
yeah thats what i did but it wont load. i guess certain sites wont load. im talking about google shopping
[Android Apps and Games] Mike B.:
I'll give this thankless (literally!) pursuit one last try: without an EXAMPLE, nobody will be able to help you!
[Android Apps and Games] Child's Play:
lol lets say u want to buy a shirt via google shopping. u find it that u like and it comes from eastbay (eastbay.com) u click on the image and then click "shop" it redirects to track.did-it.com I did add track.did-it.com to whitelist and it loads. its such a pain in the butt to add every url
[Android Apps and Games] Mike B.:
I still would have liked a specific URL so that I can try and reproduce your problem, but apparently it's not an option. The only remaining question is where and how did you block "track.did-it.com" in the first place. Since did-it.com is part of the infamous "Didit Maestro" identifying itself as ""Didit is a full-service online advertising and marketing services firm and major player in search engine marketing.", it's probably wisely blocked by many source lists. Whitelisting "*.did-it.com" would resolve that immediate issue but won't help for kinks to other "marketing" servers.

Perhaps the real issue is that you are blocking ads but still want to see ads without spending the time to select which ones, a tricky combination at best. Let's face it, Google shopping is probably not the most ad-free way to buy anything (nor it it the least expensive). As stated in the footer of all their pages: "Google is compensated by these merchants" and you, the shopper, is doing most of the compensating.

Just for fun, I tried searching the Google Shopping site and apparently, all "Buy/Shop" links go directly to googleadservices.com (not surprising!) which in turn redirects to a variety of well known and generally blocked tracking sites, including did-it.com.

Suggestions: (1) Load only the very minimal source files you absolutely have to have, or (2) whitelist the bad links when you catch them, or (3) quit using Google Shopping, noting that a plain Google Web search often brings useful results with slightly less tracking and a milder deluge of ads, or (4) go shirtless!. ;)

Apologies to the other members for this series of OT posts since this actually has very little to do with AdAway itself...
[Android Apps and Games] Child's Play:
Thanks for the suggestions. Here's the URL https://www.google.com/search?q=men...ed=0CAYQ_AUoAQ#spd=7735832290056626551&spud=0
[Android Apps and Games] Mike B.:
Actually, the full "buy" URL for the first eastbay.com item on that page, is:

http://www.googleadservices.com/pagead/aclk?sa=L&ai=Cg1fW3kOXVYCWF8PC-QP1wKGIB9bUuqQG_r3SmsIB7s6_2uACCAkQBCDezc8eKCdgyYaAgJSklBWgadqmjv4DyAEHqgQmT9AxiyNPQ3PwhvZTHMOKZ6mkzFI7TAZQvMy7Tnz0irxQLGsZGSvABQWgBiaAB47Z8QGIBwGQBwKoB6a-G9gHAeAS98LJ1rTPzK1r&ctype=5&clui=18&ved=0CB0Qiy8&ei=3kOXVZyiFYbroASduYkg&sig=AOD64_0-ebEuRb9reKdei2rZDTBIkipILg&adurl=http://track.did-it.com/n%3Flid%3D113416164%26tid%3D4247bb1aed3e1%26eng_creative%3D52059950238%26eng_prodid%3D31149yn1-L%26eng_productpartitionid%3D94679066478%26eng_adtype%3Dpla%26eng_device%3Dc%26eng_adpos%3D1o4%26url%3Dhttp://www.eastbay.com/product/model:229483/sku:31149YN1/nike-mlb-dri-fit-mezzo-big-logo-t-shirt-mens/new-york-yankees/navy/%26SID%3D7726%26inceptor%3D1%26cm_mmc%3DSEM-_-PLA-_-Google-_-31149yn1

Buried in there is the actual direct eastbay.com URL for the product at:

http://www.eastbay.com/product/model:229483/sku:31149YN1​

While it's possible to write a redirection script (just for fun, I whipped one up for Firefox on my Mac) to get rid of all the extraneous "junk", it's hardly a practical approach on an Android device and for all possible Google partners. I hope that seeing how much Google adds to the actual URL will help you see that this is way beyond anything AdAway or the hosts file can handle.

Vanitas vanitatum, omnia vanitas! (look it up) - If you bough the shirt without the silly logo, it'd be MUCH cheaper and easier to find! ;)
[Android Apps and Games] mucego:
Hello

Thank you the APP works great!

Sugestion

I dont know if this is a "ad" but its very annoying thing, that board that open in some websites loading facebook chart with some pictures of people and asking to "like", the website its fully loaded but we cannot navigate while the " facebook board" its noy loaded, its sucks!

Here a example

View attachment 3390156

This social feeds slowsdown all the sites :@
[Android Apps and Games] TheVH:
I've encountered a problem...

With AdAway up and running, ads are blocked just fine. But it also seems to block anything related to google sign-ins. Games that use google play games won't work, youtube won't work due to a sign in error and google keep won't sync.

Turning the hosts file back to default fixes the issue but then there are ads again! Does anyone know the url google uses for this kind of stuff so I can add it to the whitelist?
[Android Apps and Games] Mike B.:
Your report suggests that you have added to the default AdAway source lists, either a whole new list or at least a blacklist entry. If you can remember what that is, undoing that addition might suffice. The basic Google account management tools (the ServiceLogin main script) are typically on "accounts.google.com". If somehow you added a source list that happens to block Google, I suggest looking very closely at what else it does since it doesn't seems overly friendly towards Android devices.

Since Google uses so many different domain and subdomain names (usually but not always with "google" in the name), the next best approach would be for you to capture the DNS log entries while you are attempting to use one of the blocked functions and either whitelist or at least NOT blacklist those servers.

---------- Post added at 11:08 PM ---------- Previous post was at 10:54 PM ----------

If the popup you describe happens to be coming from a separate server, you could block it using AdAway, but such animals are usually served directly from the main site, making it impossible to redirect the popup without redirecting (blocking) the entire site. A more effective approach might be to find a suitable setting, addon or extension for your browser that internally blocks all popups.
[Android Apps and Games] TheVH:
I did add another source a few day ago to block some foreign ads but this problem has been going on for far longer than that.

Fortunately adding accounts.google.com to the whitelist worked anyway! Thanks a bunch!
[Android Apps and Games] steakhutzeee:
What problems 're you having with YouTube? :confused: Last days i'm experiencig that some videos don't start on wifi and a strange out of sync :confused:
[Android Apps and Games] carlese:
Anyone having problems with MOAAB? I can't seem to add it anymore.. the hosts file is empty after applying the filter.. With other sources it works just fine..

This is the URL:

http://adblock.mahakala.is/
[Android Apps and Games] jaibar:
Personally, I think moaab is bloated and too big. Most of it is probably useless.

Plus, if you have not enough free space in /system partition, you can end up having weird issues when adding a huge hosts file...
[Android Apps and Games] carlese:
I have more than enough space (tried the flashable zip and worked just fine) but i want to manage my white lists.. can you please try to add that link only to your hosts lists and see if the hosts file is empty after applying?
[Android Apps and Games] Mike B.:
Actually MOAAB

is

the true problem! As explained

several times

in this thread, that file is a very unwise choice for use on Android devices (with or without AdAway). It's very possible that its current size is simply too much for your device, an issue over which AdAway has no control. Don't worry, not loading that monstrosity may even make your device a bit snappier ! ;)
[Android Apps and Games] carlese:
What lists do you suggest? PM me if it goes against the rules ;)
[Android Apps and Games] Mike B.:
If there is a flashable ZIP, it probably simply forces the recovery to overwrite any existing hosts file, a process that takes up less RAM than doing it it correctly while the system is running. If you need a large white list, that's a pretty good indication that you are blocking way too many URLs, one of the many reasons to avoid that &^%$# MOAAB! ;)

---------- Post added at 09:58 AM ---------- Previous post was at 09:55 AM ----------

I suggest the default lists as starting point. It's pointless to try and block the entire Internet then painstakingly try to white list the sites you want to access. The defaults will cover most situations, then you can optionally tweak those by adding a few white or black list entries if necessary.
[Android Apps and Games] blasterrr:
I am trying to find a way to add googleaddservices to whitelist. Even after adding the host www.googleaddervices.com I am unable to browse Google's top results such as shopping sponsors.
[Android Apps and Games] kingvortex:
If that's the exact url you added to the whitelist, then you should double check it. I believe it's googleadservices.com

Also, try not putting the www at the beginning.
[Android Apps and Games] Mike B.:
As [MENTION=2452820]kingvortex[/MENTION] suggest, the correct URL would be "*.googleadservices.com" (a wildcard to cover all subdomains), but you also need to remember to reboot after making the change. For additional insight on Google Shopping, see

this post

if you haven't done so already. Googleadservices is only one hop between your device and the actual target URL. You may still be blocking some of the intermediate servers.
[Android Apps and Games] bloof:
Mxplayer ads are showing (when you pause the movie), even on local content.

Hope this helps removing those annoying ads.

DNS logs show it is all coming through facebook. You will find opera in there because i clicked the ad to see where it went.

libtcpdump_exec.so: listening on any, link-type LINUX_SLL (Linux cooked), capture size 512 bytes

IP (tos 0x0, ttl 64, id 41344, offset 0, flags [DF], proto UDP (17), length 61)

10.89.229.67.3366 > 172.26.38.1.domain: 34759+ A? e3.whatsapp.net. (33)

IP (tos 0x0, ttl 64, id 41345, offset 0, flags [DF], proto UDP (17), length 71)

10.89.229.67.40420 > 172.26.38.1.domain: 24484+ PTR? 67.229.89.10.in-addr.arpa. (43)

IP (tos 0x0, ttl 64, id 41346, offset 0, flags [DF], proto UDP (17), length 70)

10.89.229.67.25338 > 172.26.38.1.domain: 21442+ PTR? 1.38.26.172.in-addr.arpa. (42)

IP (tos 0x0, ttl 64, id 41347, offset 0, flags [DF], proto UDP (17), length 64)

10.89.229.67.1029 > 172.26.38.1.domain: 34212+ A? graph.facebook.com. (36)

IP (tos 0x0, ttl 64, id 41348, offset 0, flags [DF], proto UDP (17), length 71)

10.89.229.67.63874 > 172.26.38.1.domain: 41799+ A? fbexternal-a.akamaihd.net. (43)

IP (tos 0x0, ttl 64, id 41349, offset 0, flags [DF], proto UDP (17), length 69)

10.89.229.67.48585 > 172.26.38.1.domain: 61532+ A? fbstatic-a.akamaihd.net. (41)

IP (tos 0x0, ttl 64, id 41350, offset 0, flags [DF], proto UDP (17), length 62)

10.89.229.67.41422 > 172.26.38.1.domain: 22270+ A? www.facebook.com. (34)

IP (tos 0x0, ttl 64, id 41351, offset 0, flags [DF], proto UDP (17), length 68)

10.89.229.67.60458 > 172.26.38.1.domain: 45313+ A? edge-mqtt.facebook.com. (40)

IP (tos 0x0, ttl 64, id 41352, offset 0, flags [DF], proto UDP (17), length 66)

10.89.229.67.34527 > 172.26.38.1.domain: 26351+ A? b-graph.facebook.com. (38)

IP (tos 0x0, ttl 64, id 41353, offset 0, flags [DF], proto UDP (17), length 62)

10.89.229.67.16436 > 172.26.38.1.domain: 7778+ A? api.facebook.com. (34)

libtcpdump_exec.so: listening on any, link-type LINUX_SLL (Linux cooked), capture size 512 bytes

IP (tos 0x0, ttl 64, id 41355, offset 0, flags [DF], proto UDP (17), length 66)

10.89.229.67.28031 > 172.26.38.1.domain: 23694+ A? sitecheck2.opera.com. (38)

IP (tos 0x0, ttl 64, id 41356, offset 0, flags [DF], proto UDP (17), length 60)

10.89.229.67.59649 > 172.26.38.1.domain: 40688+ A? m.facebook.com. (32)

IP (tos 0x0, ttl 64, id 41357, offset 0, flags [DF], proto UDP (17), length 69)

10.89.229.67.58034 > 172.26.38.1.domain: 41218+ A? fbstatic-a.akamaihd.net. (41)
[Android Apps and Games] swat4samp:
Yup, i too observed it. Adding facebook.com in blacklist gets rid of those ads. But downside is, u can't use facebook :|
[Android Apps and Games] bloof:
:) i guessed that, but isn't the a specific FB ad server that could be added to blacklist?
[Android Apps and Games] Skripka:
Host blocking works by breaking DNS resolution. Looks like your ad servers are sourced by IP address, preventing blocking via DNS
[Android Apps and Games] Mike B.:
The Facebook app uses a variety of servers, and their ads are served from a variety of locations. You could try to blacklist a few specific locations, but since the same servers (such as fbcdn or the facebook area on akamai) are used for both ads and "acceptable" contents, it's a losing battle.

As mentioned earlier, you can greatly minimize the flood of ads by accessing Facebook from a browser or an alternative app instead of the "official" one, but that won't help you when running a seemingly unrelated app (MX PLayer?) that calls Facebook URLs or directly uses numeric IPs.

Now might be a good time to remind everyone that what most of us see as annoying ads, are often seen as proper content by the people who serve them. Facebook, like many similar content distributors, is unlikely to make it easy to only access user-contributed content without also seeing Facebook-provided (i.e. ads) content. We can't blame Facebook for trying to make money but then Facebook can't blame some of us for NOT using Facebook... ;)

It probably doesn't need to be said again, but those issues are not related to AdAway which is merely a tool to redirect URLs but neither knows nor cares what constitutes an ad... ;)
[Android Apps and Games] swat4samp:
When i checked dns requests, i got 2 host names, graph.facebook.com and facebook.com. I added just graph.facebook.com, but it didn't block ad (only app's image in that ad is broken). Maybe there is one particular fb server where all the ads are coming from. And btw, ads from appygeek are also blocked. So, it must be from facebook.
[Android Apps and Games] Seanbest:
How do you do the dump? I'm looking to block the Textra ads unless someone else already has it. Thanks in advance.
[Android Apps and Games] Mike B.:
Very easy. You launch AdAway, open the menu, then click on the button that refers to "tcpdump". Once you're done, the DNS log may or may not show which servers your app accessed and you get to decide which ones only serve ads and which ones are necessary. Nobody else can do that for you, sorry... ;)
[Android Apps and Games] steakhutzeee:
Hey but AdAway is no longer active?

https://github.com/sufficientlysecure/ad-away/blob/master/README.md#no-longer-in-active-development
[Android Apps and Games] Mike B.:
It's somewhat amusing that you somehow managed to find an old GitHub entry but missed this entire thread. You may want to READ THE OP. AdAway is alive and well. You should consider trying it! ;)
[Android Apps and Games] steakhutzeee:
My mistake, i use AdAway, i was looking for the source because i'm interested in programming and i want to look the source :p

Where i can find it?
[Android Apps and Games] Mike B.:
OK, I'll rephrase. It's still somewhat amusing that somehow you managed to find the old README but didn't see that you were on the very GitHub page that contains the source. ;)

The source files are hiding in plain view at https://github.com/sufficientlysecure/ad-away from where you can download them in a single ZIP file.
[Android Apps and Games] Seanbest:
Perfect thanks. Think I got it. No ads since I blacklisted it.
[Android Apps and Games] warriorsach:
Adaway is not working.. Im using euphoria ROM..nexus 4 device. Guys plz help me
[Android Apps and Games] Mike B.:
Sorry but nobody will be able top help you unless you tell us exactly what problem you have, especially what you mean by "Adaway is not working". In most cases, simply SEARCHING THE THREAD answers many questions... ;)
[Android Apps and Games] :
Hi,

Please, adaway is the best ad's blocking tool to me. However I found a bug: the site 01.net isn't accessible when adaway is active. Can you go to 01.net to see if I am the only one having that problem please?
[Android Apps and Games] jaibar:
Did you try to add it to whitelist?
[Android Apps and Games] :
Yes I have already tried:(
[Android Apps and Games] Mike B.:
That site is not blocked by any of the default AdAway source lists. No problem accessing it from here with a default AdAway configuration and there's no sign of a "bug" anywhere. Without knowing what message you get, if any, we can only guess, but either you're blocking the site (in a black list or an additional source file) or it's temporarily unavailable from your location or it's blocked by your ISP, etc.. At the very least try "http://isup.me/01.net".
[Android Apps and Games] :
Hi,

I am sorry for the no-precision. My configuration are the default one. And moreover, it is for a long time (more than a month) that I have that problem. So the problem is that when I access to the site, the page doesn't stop to refresh. It refresh and refresh and refresh and so I can't access to it. It happens on my two phone note 4 and xiaomi Redmi 1. And I have checked that when I remove adaway, the problem gone. It is not an important problem for me but I want to know why it happens:).
[Android Apps and Games] Mike B.:
I don't know which exact URL you are trying to reach on 01.net, but if you don't block that site, AdAway won't have any bearing over its access. Apparently you CAN access that page. However your reference to refreshing suggests that something else is involved. It's very possible that you are blocking the sites invoked FROM within a 01.net. I suggest you simply enable the DNS log feature (tcpdump) in AdAway and see which servers are accessed when you try and reach the specific 01.net URLs that give you trouble. Note that "removing" AdAway is rather pointless since what really matters is what's in your hosts file, whether AdAway is installed or not.
[Android Apps and Games] :
Hi,

Sorry but I have made a mistake : the real url is 01net.com

And wan I said "remove adaway" I meant put back the stock host file.

Sorry for my mistakes:(

But I am sure at 5000% that I have blocked anything!
[Android Apps and Games] Mike B.:
"01net.com" is not blocked by Adaway default source files either and "http://01net.com" works fine here with only the default files from a plain Firefox 39. As previously suggested, see what your DNS log shows and you'll be able to either whitelist or simply NOT block the servers you're attempting to access. From cursory tests , it seem that currently the main "http://01net.com" page requests access to "nuggad.net", "cloudfront.net", "twitter.com", "associationrmcbfm.fr", "facebook.com", etc. Some of those other servers may or may not be blocked or even outright rejected by some browsers (Chrome?). I'm 100% sure that you are blocking something, even if inadvertently! ;)
[Android Apps and Games] :
Thanks for your help:)

I am tired so i will try this tomorrow:)

I will inform you...
[Android Apps and Games] :
Am I the only one who got this problem? I don't know if it's AdAway but I suspect it is.
[Android Apps and Games] steakhutzeee:
If i ve an ad inside of an app and it s not blocked automatically, how can i block it?