yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] rht_sg:
I have been using AdAway, for quite sometime. Previously on an HTC phone and now on Zenfone 5.

Recently I am seeing ads in some apps like Android Assistant, map and bus timing apps and certainly on Chrome browser.

I am even seeing full screen ads now, which were not there just sometime back.

I noticed that I was using an old version, so I updated to 3.0.2 from F-Droid.

It is applying host files from all 4 hosts and I also restart the phone after this.

Previously, even without a restart it used to block the ads.

Any suggestions ?

I tried using AdBlock plus, but it somehow blocks many apps - like Hangouts, etc.
[Android Apps and Games] Mike B.:
Unless you restart the phone, most devices will still hold on to the old DNS cache for a long time instead of looking at the current hosts file. If you see more ads than you'd like, look at your DNS Request log and see if anythting needs to be blacklisted, but for Chrome first check that you didn't enable its "data saver" proxy.

Note that instead of using potentially stale builds from F-Droid, you should consider simply using the up-to-date versions from the OP. [MENTION=3355398]mrRobinson[/MENTION] builds them and releases them here, but there's no telling when or how often the F-Droid bots decide to compile the versions they create for their site (with a different signature), hopefully using the correct and current source files.
[Android Apps and Games] rht_sg:
Thanks for your prompt reply Mike.

Downloaded and installed the apk from MrRobinson's link.

Let it download the files from the usual 4 hosts and restarted. Still seeing ads.

I also tried to point AdAway to MoaAB's host file list at http://adblock.mahakala.is

It tried to download the list and apply the changes to the host file.

But probably the list is too long and AdAway hanged and crashed.

Tried to log DNS, even though the tcpdump was running, the log remained empty, even though I tried opening the apps which showed the annoying Google ads.

(I would like to add. - The ads shown are through google ads as far as i can see)

Disabled data saver on Chrome. Can still see the google ads - even while reading XDA posts :crying:

Any other suggestions ?

What is the location for the host file ? How can I browse through the system directory of my Zenfone using a PC and then update the host file manually ?

Because just connecting it via USB, it connects as a media device, cannot see the system partition.
[Android Apps and Games] Dark-Coder:
Not Working For youtube Ads , it Not Blocking Youtube Ads , Any Solution???
[Android Apps and Games] an0n981:
http://repo.xposed.info/module/ma.wanam.youtubeadaway
[Android Apps and Games] Mike B.:
First, get rid of that MoaAB/mahakala monstrosity (see many references to it in this thread). If the only ads you see are from Google search results in Chrome or from the Goole app, note that those are probably generate internally by the Google framework and cannot be redirected through the hosts file (at least without blockign many other Google functions). If instead you see lots of ads on all apps from all sources as if AdAway wasn't there, then perhaps you simply have forgotten proxy in your APN and your hosts file is always bypassed by that proxy,

The default location for the hosts file is at "system/etc/hosts". You can view/edit it directly on your phone with any a root-enabled file manager or from a terminal emulator prompt.
[Android Apps and Games] Barracuda79:
hi

will it be possible to block the "amazon underground app" ads?

when I start an app,that I get there,there is allways an ad at the beginning
[Android Apps and Games] Mike B.:
The answer is always the same: yes, as long as your app uses local DNS t(through the hosts file) to display its ads. I didn't see an app by that name on the Play Store so I can't tell you if a default AdAway configuration would redirect its ads or not but it's easy enough for you to try. Only you can know for sure by temporarily enabling the AdAway DNS Request Log on your device (search this thread if you need help) and running your app. If some suspicious server names appear, blacklist them. If nothing shows up, chances are the app displays the ads directly and there's nothing AdAway or the hosts file can do about it.
[Android Apps and Games] J-Hop2o6:
Hey, I had a issue with videos on the NFL app not loading. Disabling AdAway fixes the videos. But who wants to disable AdAway! Lol, but does anyone have the correct host site(s) to add to the whitelist? Thanks!

And yes, I already searched and added the two host sites from here: https://github.com/Free-Software-for-Android/AdAway/wiki/ProblematicApps

Problem started after the NFL app remake a few months ago.
[Android Apps and Games] Mike B.:
Yes, YOU have the correct hosts but as mentioned countless times, YOU need to use the AdAway DNS Request log to find out which servers your app needs or wants. The AdAway Wiki on GitHub mentions a few apps and I'm not even sure the NFL app you have is the Verizon one mentioned there since you seem to be on T-Mobile, but it can only offer general guidelines and suggestions since the actual content you receive depends not only on the app and version you use but also your carrier, location, even sometimes your login. When it comes to blacklisting or whitelisting servers, it's always preferable to test on your own device.

For the record, whether AdAway is running or not makes no difference. What matters is what you put in your hosts file, with or without AdAway! ;)
[Android Apps and Games] J-Hop2o6:
I've been testing with the logger on for the past hour. Nothing is showing in the log. Not sure why nothing is showing. I downloaded a Network app, but shows me IP activity on my phone. It does show each app. Not sure if that helps me know which host to whitelist. You can click on the IP to reveal more information like IP Admin Data and IP Geo Location. The NFL app shows data from Akamai. But that doesn't help winding down what to whitelist.
[Android Apps and Games] Mike B.:
Akamai is a distribution center for a myriad of other sites and it's extremely unlikely to be relevant to your problem. Give me the exact link to the app you use and simple instructions to duplicate your issues, and I can try to look into it as soon as time permits.
[Android Apps and Games] J-Hop2o6:
Yea I know. Just stating what that Network app was showing. But here's the link the the NFL app: https://play.google.com/store/apps/details?id=com.gotv.nflgamecenter.us.lite&hl=en

The video issue started with the app redesign in v12.

EDIT: Still not getting any dns logs, so I checked the dns_log.txt inside /data/data, and it says:

tmp-mksh: <stdin>[11]: /system/app/AdAway/lib/arm64/libtcpdump_exec.so: not found

I will say that AdAway is built into the ROM i'm using. Not sure if that's the cause for an empty log.

EDIT-2: So I found the file in the apk located in /system/app and extracted the file above and placed it to where it wanted to execute from. Then I adjusted the permissions, so I will now test it out.

EDIT:-3: Ok so I made a little progress, but still not getting any logs. The dns_log.txt now says this after turning on logging:

libtcpdump_exec.so: listening on any, link-type LINUX_SLL (Linux cooked), capture size 512 bytes
truncated-ip6 0
(truncated-ip6 0 repeats 4 more times)

Not sure why it's still not showing me logs =(

UPDATE: So I played around with enabling and disabling the 4 host sources. The two culprits of the NFL app video issue are hosts-files.net & adaway.org . So there's a host (or hosts) inside these two files preventing videos from loading. The other two host sources enabled work fine with the NFL app.
[Android Apps and Games] Dark-Coder:
But Xposed Framework Not Working on Jelly Bean (working fine on KitKat on my Other Mobile)....... Any Other Solution(s).... ?
[Android Apps and Games] xda-eric:
one problem... no working option scan for adware - application has been stopped

how update same app ?

Android 5.0.2 + Xposed + TWRP + Root
[Android Apps and Games] Ultramanoid:
Nothing wrong with your setup, it's a known problem. You can read about it in the thread going back a few pages.

If you're asking about updating AdAway, you can just install a new build over the old one when it is posted here in the thread.
[Android Apps and Games] giaur:
Adware scan does not work, only FC
[Android Apps and Games] J_Whit85:
Well aware
[Android Apps and Games] Pkt_Lnt:
Here is the dev response to the known issue.

http://xdaforums.com/showpost.php?p=62624441&postcount=4050
[Android Apps and Games] BonnyBedlamBoy:
maybe a catlog will help. the issue btw. was also with recent version 3.0.1. running android 5.1.1.
[Android Apps and Games] shaqman89:
Yeah, this is kinda old. I wonder if we should just make a centralized information and give the link to anyone who asks.
[Android Apps and Games] mjohnson4580:
Where is the whitelist added to? Does it have its on file in /system/etc? or on the host file itself?
[Android Apps and Games] Mike B.:
The "centralized information" is in the OP, the AdAway help screens, and the AdAway Wiki. The problem is not the lack of information, it's the failure of users to read it before posting! ;)

---------- Post added at 04:32 PM ---------- Previous post was at 04:25 PM ----------

The white and black lists are merely part of AdAway's data and are used by AdAway while preparing a hosts file. Once in place and regardless of how it was created, the hosts file only contains a list of URLs and the IPs to which each URL should point.
[Android Apps and Games] mrRobinson:
New DevBuild in OP

Changelog:

tcpdump will work for more people, more of the time

added more ad providers in scan for adware

potentially made scan for adware not blow chunks

Enjoy! Let me know if these work better, if you have an issue report with logcat.
[Android Apps and Games] shaqman89:
Scan for adware, finally works. Thanks :good:
[Android Apps and Games] IronTechmonkey:
Scan for Adware working here. Grazie mille!
[Android Apps and Games] Primokorn:
The scan is working fine even if Textra SMS is marked as a bad Aware app :(
[Android Apps and Games] Haphim:
Forgive me if this has been previously answered - I tried searching, but didn't come up with anything.

How do you specify additional lines to add to the hosts file that will NOT be overwritten by Adaway? Or alternately, how do you specify an additional list of lines that Adaway will always incorporate when it rewrites the hosts file?
[Android Apps and Games] Ultramanoid:
Look in the menu for 'lists', black and white, block and unblock respectively. Add what you wish.
[Android Apps and Games] Mike B.:
AdAway creates the hosts file based on the source lists, black list, and white list that you provide. It gathers all the source lists entries, adds your black list entries, removes duplicates, and deletes anything matching your white list entries. The resulting file is moved into position as the new hosts file, overwriting any previous hosts file. If you need some entries not included in your source lists use the black list which is designed for that very purpose. Remember to reboot your device after making any changes to the hosts file.
[Android Apps and Games] Haphim:
Aha! Thank you. I have never needed to use that part of the app before. Much appreciated!
[Android Apps and Games] Mgssidley:
Does nobody else in lollipop constantly see "err_network_changed" errors for the first webpage you attempt to visit after waking the phone from (usually >30 minute, sometimes more or less) sleep? It's happened since very early this year after getting flashing the first 5.0 Rom. Have used ~20 various lollipop Roms this year, and it's happened on every one. Device is a Oneplus One. I've tried AdFree and it happens with that app as well, so it isn't just AdAway. As soon as I revert the hosts file, it doesn't happen anymore. It's never for a specific website either, often times I'll open a few articles from Google Now and it will only happen to the first link opened.
[Android Apps and Games] skrap3:
Same on my lg g4.

Also the app show me a fc when i try to scan the device for ads
[Android Apps and Games] mrRobinson:
I used to all the time. Then a few weeks ago after one of those android system webview updates I no longer see it.
[Android Apps and Games] J-Hop2o6:
Yea, I haven't noticed the webpage errors anymore for the past few weeks. A System Web View update must have been the fix.
[Android Apps and Games] Mgssidley:
Good to know, just realized I didn't have that installed through the Play Store, so hopefully now it's good.

Thanks
[Android Apps and Games] J-Hop2o6:
Let us know if that fixes it for you. It was an annoying issue that fixes itself with a webpage refresh. Happened EVERYDAY :mad:
[Android Apps and Games] eak1080:
With new 3.02 update i keep getting MMS APN errors while using textra.
[Android Apps and Games] Mgssidley:
It has yet to happen since, so hopefully that's a yes!
[Android Apps and Games] J-Hop2o6:
Sweet!
[Android Apps and Games] mrRobinson:
There is nothing in 3.02 vs 3.01 etc that would cause that. are you saying if you run 3.01 you don't get mms apn errors? Also what "errors" exactly? can't send? can't receive? Can send/receive but something weird pops up?

can you provide your apn settings? a logcat?

Please note that if you want help and/or expect it you need to provide real info that would allow someone to help you.
[Android Apps and Games] TheNML:
AdAway v3.0.2 working great here, good job :)
[Android Apps and Games] mrRobinson:
Wait till you see 3.0.3
[Android Apps and Games] :
Hi,

Adaway isn't working with Cyanogen OS 12.1 in my Oneplus One, I was using 3.0.1 earlier on 12.0, was working like a charm, even after upgrading to 3.0.2, had been using few days, its not working.

Is there any work around or is it a known issue ?
[Android Apps and Games] fjdifede:
* check your APN settings for any proxy, the proxy itself could be allowing ads. Disable the proxy.
[Android Apps and Games] gabrielgagz:
Same here with 12.1 Sultanxda
[Android Apps and Games] Pkt_Lnt:
Without logs to see what is going on under the hood (so to speak) there is not answer to your question.
[Android Apps and Games] fiz:ik:
Running smooth on two Ones with CyanogenOS 12.1 and temaseks unofficial :) maybe you can provide some logs
[Android Apps and Games] :
I'm afraid, I don't know how to capture the logs, can you provide a basic guideline please ?
[Android Apps and Games] Pkt_Lnt:
[Tutorial} How to Logcat
[Android Apps and Games] Mike B.:
As others have pointed out, posting some logs is essential, but then so is explaining exactly how "AdAway isn't working".

Is AdAway not installing?

Is it not starting?

Is it not getting enabled?

Is it disabled after a reboot?

Does your hosts file revert to default after a reboot?

Does it only block some ads?

Does it block ads only in some applications but not others?

Does it only fail to update its source files?

etc.

For each of the above that applies, what exact error, if any, do you see?

I won't be able to address as many questions on here as I used to, but the above points will help anybody give you proper advice, and without that information you'll only get guesses at best. Alternatively, you could search this thread or the FAQ where your answers are probably already posted... ;)
[Android Apps and Games] devilrulz4ever:
Ads are suddenly popping up. Adaway was working before then out of nowhere ads are showing up, I have no idea.

Tapatalk'd from my Note 2 running Resurrection Remix. Kernel:Agni, Recovery: TWRP.
[Android Apps and Games] maxdebesciak:
Maybe something changed your hosts file?

Tapatalked
[Android Apps and Games] devilrulz4ever:
I even tried to manually replace the host file still ads pop up. No proxy in APN either.
[Android Apps and Games] devilrulz4ever:
Reinstalled the ROM, everything fresh, no ads now.
[Android Apps and Games] hedgeh:
great app. deserves a lot more attention.
[Android Apps and Games] :
There isn't any problem as such you mentioned. It is installing, the host files are all there, it stays enabled and all free apps are popping up ads which used to be blocked without any trouble in Cyanogen OS 12. However, I just moved to AICP last night, the problem there was, I was using both inbuilt add blocker and adaway, which was maybe conflicting with each other, so disabled the inbuilt add blocker, kept adaway enabled, and working like charm, I have noted down the link which was shared by another user for capturing logcat, once I move back to Cyanogen OS 12.1 I will post it. I went across couple of posts in Reddit as well where people were talking about adaway not working on COS12.1, maybe cyanogen inc is pushing ad some other way than conventional ? However I understand none of these speculations are useful without proper logs.
[Android Apps and Games] Mike B.:
Apparently, the only problem was that &^%$ builtin "adblocker" which effectively acted like a proxy. Disabling it (or even uninstalling it altogether) is the correct course of action. LIfe is good! ;)
[Android Apps and Games] CrashTestDroid:
There was discussion between AICP and Exodus devs about blacklisting Adaway and other ad blockers. Maybe they already started. Their built-in adblocker was a joke anyway.
[Android Apps and Games] Mike B.:
For the gazillionth time, a reminder that "AdAway" is not an "ad blocker". It's merely a tool to facilitate the use of Android's builtin local DNS resolution method (editing the hosts file). AdAway doesn't "block" anything that couldn't be similarly "blocked" without AdAway. It would be very difficult to respect any misguided or misinformed developer who might think otherwise.
[Android Apps and Games] GabbyWC:
I mentioned in an earlier post that AdAway's menu isn't accessible on Android TV devices running Android 5.1 or higher. This hasn't been much of an issue so far but now I'm noticing that the MLB.TV app on the Nexus Player does not load videos when AdAway's hosts file is in use. I cannot access the "Log DNS Requests" function to figure out what needs to be whitelisted. If AdAway can be updated to meet Google's full material design specs, then its menu should be visible on Android TV running Android 5.1 and higher.
[Android Apps and Games] HAVOK83:
I also having issues with popup ads and redirection, been using adaway for a while now and all of a sudden getting ads. I haven't changed any settings or nothing
[Android Apps and Games] mark_zuckerberg:
When I have adaway active my youtube history no longer updates.

This happens to me with other ad blockers as well.

Anyone know what the problem is?
[Android Apps and Games] maxdebesciak:
Youtube search and watched history enabled in settings?

TapaTalked
[Android Apps and Games] mrRobinson:
something maybe i can fix... no promises.

...
[Android Apps and Games] GabbyWC:
Thanks, [MENTION=3355398]mrRobinson[/MENTION]. I understand and think that our chances are better with you optimizing the material design code rather than hoping for Google to reverse their decision or waiting for an Xposed module that restores this functionality (and believe me, I've asked). Android 6.0 Marshmallow is still affected by the 3-dots menu missing unless the app is updated to display it on Android TV devices.
[Android Apps and Games] mrRobinson:
Just so you know, adaway is full material design specs. material design doesn't state the app has to define views for android tv, especially when the app isn't intended to run on it. So it isn't about me adjusting adaway to meet material design but rather find out how to force a tvactivity that shows the menu. I don't know how to do that currently. all of the dev docs show how to build a tvactivity so your app show as avail in google play for tv's. I want to keep the app as it is and just force the menu. if you have any links that help show that, please share.
[Android Apps and Games] mark_zuckerberg:
deleted

---------- Post added at 03:25 PM ---------- Previous post was at 03:22 PM ----------

Yes.

As I said it only stops when adaway is active.
[Android Apps and Games] Mike B.:
It doesn't matter whether AdAway is "active" or not. What counts is which URLs, if any, you redirect in your hosts file. Apparently you are redirecting a URL used by your YouTube application to store/retrieve its history data. Start by using only the default AdAway source files, then reboot. If the problem persists, let the AdAway DNS Requests log show you which server(s) you might need to whitelist, but since other members have not reported a youtube history problem, there's a good chances that the culprit is in a source file or blacklist you added.
[Android Apps and Games] mark_zuckerberg:
The reason I say my youtube history stops when adaway is active is because it always stops when adaway is on, and always works when adaway is off, and I'm ignorant as to what's causing the problem beyond that.

I have already deleted and reinstalled adaway, causing all settings to be reset to default, but the problem persisted.

I've also tried whitelisting every host that pops up while using youtube and that had no effect.

Also from looking around on the internet I've found 2 or 3 other people who reported the same problem, stemming from adaway or another ad blocker. Personally I've had it happen with another ad blocker as well.

One of them mentioned he also used the youtube adaway xposed module, as do I, so I thought that might have been a link. However I turned the module off, rebooted my device, and the problem remained unchanged.
[Android Apps and Games] Mike B.:
There is a simple way for you to exonerate AdAway: keep the large hosts file created by AdAway, but temporarily uninstall AdAway, then reboot. If your trouble persists, temporarily rename (or delete) your hosts file, and reboot again. If the problem now disappears, you now know that it has nothing to do with AdAway but rather with some URL that is being redirected in your hosts file.

I'm not sure to which "other ad blockers' you refer since AdAway simply alters the hosts file but knows nothing about ads. If your other apps also alter the hosts file, you need to find out which URLs are at fault. Since I don't use the YouTube app, I'm not sure how its history sync works, but it might very well be using some Google servers that are commonly labeled as "ad servers". Wanam's YouTube AdAway module doesn't alter DNS resolution but instead attempts to patch the YouTube app, a separate issue.

Realistically, if only 2 or 3 people report the same problem you have it's extremely unlikely to be a generic AdAway issue but may be connected to a specific ROM or mod, or some other third party app.
[Android Apps and Games] mark_zuckerberg:
Very odd...

I tried using the "unbeloved hosts" module (the other adblocker that caused the same problem for me), and fooled around with the hosts sources.

I then turned it back off, and turned adaway on again, this time trying the adaway host sources one by one.

None of them interfered with the youtube history.

I then applied all 4 of them, as I've always had it, and now the youtube history works fine, but I'm not sure why.
[Android Apps and Games] Mike B.:
Thanks for the update. One good guess is that "something" along the way had added unwarranted URLs to your default hosts file or somehow hijacked the DNS cache, but what matters is that your problem was not caused by AdAway and has now disappeared. In general, try not to obsess over "ad blocking', as many headaches stem from trying to block too much with too many products. Many of us like AdAway because it's extremely clean, simple, and efficient (uses NO additional resources) and gives you, the user, full control over what to block and what to allow.