yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] Mike B.:
You are confusing two separate largely unrelated issues:

The little "systemless" script in the OP simply creates a permanent bind command allowing apps (including AdAway) to effectively modify /system/etc/hosts. It's definitely not a "patch" or anything specific to AdAway, merely a convenience for shell-shy users users who prefer not tweaking their system manually. All indications are that it's working fine for you and others.

The "partition full" message is a quirk of some N6 installations (unrelated to AdAway) that claim that no space is available even when the target is not physically in /system. An AdAway experimental build that includes a temporary workaround for that situation is available as AdAway-release_Build-szale9001_test.apk, as mentioned quite a few times already in this thread (#4907 on ).

Apparently, your Reddit people forgot to look for answers where they were likely to be: right here in the AdAway support thread... ;)
[Android Apps and Games] stokholm:
Funny you think I'm confusing the issues (I'm not). I did read through the files in the systemless script zip, so I know exactly what it does.

Thank you for the link to the test build though. I didn't know there was a build that fixed this issue. Why is it not released?
[Android Apps and Games] Mike B.:
Your post suggested that you didn't know what the ZIP was/did since you said you had trouble getting it to work, yet by your own description it was clearly working. The erroneous "out of space" message returned by your ROM is unrelated to that ZIP. Simply searching this thread would have saved you the trouble of posting for help.

The experimental build is just that, "experimental". It only applies to a very limited number of configurations and uses a hack to bypass some unusual (incorrect?) behavior of a few N6 ROMs. In a future release, that workaround may become an optional user-selected toggle, as already mentioned THERE.

Does using the hacked version after flashing the ZIP allow you to use AdAway on your ROM as expected? If so, all's well... ;)
[Android Apps and Games] thecuriousmate:
AdAway used to work fine till I updated TWRP to 3.0.0.0. TWRP asked to keep /system RO or RW. I chose RW. Now it says : "Copying of host files failed". After doing quick Google, I got to know that it may be related to /system partition permissions which is currently RO (Read only) & needs to be set to RW (Read-Write). After running " mount | grep system" in Terminal to check /system permissions got below:

mount | grep system

/dev/block/platform/msm_sdcc.1/by-name/system /system ext4 ro,seclabel,relatime,data=ordered 0 0

/dev/block/loop0 /system/xbin/busybox ext4 rw,seclabel,noatime,data=ordered 0 0

/dev/block/loop0 /system/xbin ext4 rw,seclabel,noatime,data=ordered 0 0

Mount system RW app didn't help. Is anyone facing/faced this issue? If yes, how to fix this? :rolleyes:
[Android Apps and Games] Mike B.:
Yours doesn't seem to be an AdAway issue but rather something to do with your current system configuration. Without any specifics on which ROM/root you have it's difficult to advise you but from the AdAway standpoint, have you tried simply creating a symlink (or a bind mount) from /system/etc/hosts to somewhere in /data if your system allows it as you would, for example for an HTC device with S-ON?

From a practical standpoint if your trouble is cause by TWRP 3.0, returning to 2.8.* might be wisest at least until the 3.0 quirks are smoothed out. Perhaps discuss the matter in a TWRP 3 thread or wherever your device/ROM is supported would get you more relevant advice.
[Android Apps and Games] thecuriousmate:
Thanks for quick reply. I'll check with TWRP G+ Community. Moving back to 2.8.7.0 makes sense. I thought about it while back but was waiting for reply. Anyway, my current system configuration for bacon is SAOSP ROM, Stock OmniBear Kernel, SuperSU v2.67.
[Android Apps and Games] Mike B.:
While we try to keep abreast of many developments, keep in mind that this is a only thread about AdAway, a fairly straightforward and mostly device-independent GUI tool to ease maintenance of the hosts file. Recovery, root issues, ROMs, permissions, and other systemwide concerns are not necessarily our strong points! ;)

SU 2.67? That in itself often brings in additional challenges such as the optional "systemless" pseudo-root. If you are "systemless", try the little script in the OP that has nothing to do with recovery but might just allow you to get AdAway going. Other than that there is plenty to be said for sticking with SU 2.52 and TWRP 2.8.7 a while longer... ;)

EDIT:

Since I started this post, I got home and was able to check on one of my spare test phones (Note3) that has been using TWRP 3.0 for a couple of days with a Marshmallow 6.01 ROM (and a permissive kernel). On that device, AdAway installed and ran immediately without having to do anything special, but the main differences from your situation is that I have a proper full root (SU, but

not

"systemless") and I did

not

tell TWRP to keep restricting system access. At least this suggests that TWRP 3.0 is not somehow "incompatible", but in TWRP areas I still see quite a few reports of users having bad experiences with 3.0 (including bootloops). Next time I need another test flash on that device, I'll try to emulate your settings, but no promises... ;)
[Android Apps and Games] jfeldredge:
AdAway 3.0 not logging all blocked DNS requests

In December 2015, I posted that AdAway was blocking the app SeeClickFix, used for reporting public works problems. The reply I was given in this forum was that AdAway could not be the problem, since it did not log an attempt to look up seeclickfix.com. However, I was able to establish a connection once I whitelisted seeclickfix.com. It would appear that the logging process ignores that domain name and does not record the attempt. It consistently didn't log that site, making me wonder if it ignores certain protocols, or if it has a list of sites not to log.
[Android Apps and Games] Mike B.:
NO, AdAway is not the problem

but apparently one of the hosts you blocked from one the the source files you selected was the culprit. The log can only capture the host names that are accessed via the DNS Server (the process that looks for host names that are not listed in the hosts file). If a host is accessed by IP, by the hosts file, or through a proxy, the DNS server knows nothing about it. Furthermore, I hope you paid attention to the reminder [MENTION=3355398]mrRobinson[/MENTION] posted THERE when you initially reported your problem. If you were already blacklisting seeclickfix.com and forgot to temporarily restore the hosts file or disable AdAway, then there was no DNS request for the log to capture.

That said, if a "seeclickfix.com" site is blacklisted in your hosts file, it would be a prime suspect when an app named "SeeClickFix" misbehaves, and would be a logical one to whilelist at least temporarily, whether it appears in a log or not. Both "seeclickfix.com" and "www.seeclickfix.com" are blacklisted in the current version of the optional "http://winhelp2002.mvps.org" source file.

Please understand that we can only give you rather generic advise since we can't possibly be familiar with every Android app/game, have accounts with every possible web site, and access the net from every possible location through every possible ISP... ;)
[Android Apps and Games] Leon:
Anyone problem with adaway ? Im with HTC One M8 and it seems that doesnt block ads anymore.I see ads everywhere - games,apps.Also I have S-OFF.
[Android Apps and Games] Mike B.:
The people having perceived problems with AdAway seem to be the people who forget to search for the correct way to install and use AdAway! ;)

"Anymore" suggests that it was working for you before. Are you sure you didn't recently update your APN and now have a forgotten proxy in there? I suggest you browse this thread for answers and if you are still stuck, tell us EXACTLY what you did and what you changed.
[Android Apps and Games] Leon:
I remember it was working before... Few months maybe. I didn't isn't AdAway by my self, it's comes with the rom. I'm using ViperOne for M8. Today I will look at the pages here..I read something about proxy? But I didn't touch it at all, I even don't know where is this setup...
[Android Apps and Games] Mike B.:
Oh, one of those mysterious embedded copies of AdAway? Since we have no way of knowing what that is or how it's configured, you should ask wherever your ROM is supported. With any luck, since your ROM cooker decided to include some non-functional AdAway version, he/she will be able to help you make it work, or at least delete it so that you can simply install the current and correct AdAway from this thread's OP.

Look at your APN settings (probably under "Mobile Networks" or "Access Point Names"). If there is an entry under "proxy" or "http proxy", clear that entry. This too is best discussed in your ROM's support area. No guarantee that it is your problem, but it's a common oversight as some ROM providers insist on overwriting existing APNs without telling their users.
[Android Apps and Games] Leon:
Thanks for the answer. Will see. I was thinking is better to ask here cuz is related to adaway. One more stupid question, if I change something, won't be problem to use my mobile data?
[Android Apps and Games] androcraze:
I've also had my carrier change APN settings; now I'll hit the carrier's website every 6 months or so and verify things haven't changed.

Never liked the "built-in" concept of things. An HDTV with a built-in DVD player is worthless in a Blu-Ray world; it kills modularity and the ability to upgrade.
[Android Apps and Games] Mike B.:
Unfortunately, we don't know which AdAway is in your ROM and how it's configured. In an ideal world, ROM cookers would simply provide links to apps they recommend (such as AdAway) instead of embedding them as system apps without documentation. If you know how to completely get rid of that embedded AdAway, do so then we'll be able to help you and you won't have any trouble with any future AdAway updates.

As long as you only change the correct APN field, your mobile data won't suffer. Only get rid of the "http proxy", but don't touch any "mms proxy". It's easy enough to change back if you make a mistake as long as you keep track of what you modified. If you always use the same ISP you only need one APN (no need for a separate "MMS APN", for example!) and when you flash a new ROM you can simply re-enter your correct APN settings, regardless of what changes the ROM wants to make. NO, the suggested APN that may be shown on your provider's web site is not necessarily the current best one, but it might be difficult to find a knowledgeable tech support person when calling many ISPs... ;)
[Android Apps and Games] trancoss2:
Thanks

Enviado desde mi GT-I9300 mediante Tapatalk
[Android Apps and Games] ml3000:
I have a Nexus 6 with the pure nexus rom installed. I have systemless root installed as well. I have used the systemless adaway patch and am using the adaway meant specifically for nexus 6's. I have tried both. The install works great and it goes and downloads the new hosts files and applys them just fine and prompts to reboot. I reboot the device and the adblocking does not work. I have tried it in apps and chrome with multiple websites. I have gone to adblock testing websites even to see if it was something about the other sites. Any ideas to what is going on? Thanks!
[Android Apps and Games] Mike B.:
What do you mean by "the adblocking doesn't work"? If your hosts file contains all the entries you intended to place in there (meaning that AdAway is working just fine, as expected) but yet those hosts are not blocked, the most likely cause is a

forgotten proxy in your APN

.
[Android Apps and Games] ml3000:
Yep just check the host file in /system/etc contains all the entries and there is no proxy within the APN. Ads dont seem to be blocked on wifi either. Just checked on chrome as well. Data compression is disabled.
[Android Apps and Games] ext23:
i'm getting "copy failed: copying of hosts file failed." definitely have already granted root access, etc. this is on a brand new ROM install also...
[Android Apps and Games] bland.life:
The 'Google Play in-app billing' permission is still there in 2.6.

I thought Paypal and Flattr has got noting to do with the Google Play infrastructure?

Not sure if its of use but I'll put AdAway under Privacy Guard.
[Android Apps and Games] adnanparwar:
this app is not working to block ads
[Android Apps and Games] :
For me the same, 2.5 and 2.6 are working absolutely fine on all my Nexus devices (gnex, 4, 7, and 10) with cm10.2 nightly.

Thanks!

Gesendet von meinem Nexus 10 mit Tapatalk 4
[Android Apps and Games] Braneless:
2.5 and 2.6 working great with G-Nexus and Beanstalk 4.3 rom. No issues whatsoever.
[Android Apps and Games] ZioGTS:
For people experiencing issues when trying to update the hosts file: cancel app cache and app data, then reboot your phone and run updater again. It worked for me.

Inviato dal mio Nexus 4 usando Tapatalk 4
[Android Apps and Games] weirdsciencex:
Maybe you could use something like network log ( https://play.google.com/store/apps/details?id=com.googlecode.networklog) to find out what is being blocked and then use the whitelist function within adaway.

Sync Dropbox, Evernote, & GoogleDrive: Get one month of service for free https://www.cloudHQ.net/dropbox?r=oz4a
[Android Apps and Games] earlgrey_44:
Tried the new build, got the same message on first run after install. Couldn't download the host file.

Simple reboot was all it needed. Working fine now on AOSP 4.3.
[Android Apps and Games] jackdubl:
Have you guys looked at you host sources to make sure they all are right? I would try unchecking the host sources and re checking them one by one. See if you can get ANY host to update.
[Android Apps and Games] bogdan1980:
V2.6 oficial had appear, but i guess is the same as ours from here.
[Android Apps and Games] jackdubl:
Anyone know why the official version is 0.6mb larger than ours?
[Android Apps and Games] ZioGTS:
Compiled differently? I guess it's just a matter of compression settings.

Inviato dal mio Nexus 4 usando Tapatalk 4
[Android Apps and Games] mrRobinson:
Fdroid included something wrong in their build. The dev has a bug open for it here: https://github.com/dschuermann/ad-away/issues/464
[Android Apps and Games] Bon3zz1001:
Still not working on my Galaxy s3 running cm10.2 either. Tried both 2.5 and 2.6 but neither block advertisements.
[Android Apps and Games] cocchiararo:
Am i getting this wrong, or for compiling this the NDK is needed ? (i never got arround getting it to be usable on my windows machine, if posible).

I am installing arch linux in a VM now so i might try there later :P

edit: upon further reading, i need the ndkay for part of it, so yes :P
[Android Apps and Games] victorharsh:
Thanks, v2.6 working fine on my 4.1.2
[Android Apps and Games] Shafwan7:
[MENTION=3355398]mrRobinson[/MENTION] , thank you for your hardwork .

i'm very happy using AdAway rather than AdBlockPlus.

AdAway very easy to use. and it working for my devices. thank you .

so , can i request somthing ?

can you put a lot of hostsources into AdAway ?

so we can block all google ads.
[Android Apps and Games] bogdan1980:
You can put manual a lot of hosts. You find it with Google. I add one for romanian ads.
[Android Apps and Games] eLCruz:
What would be a good search term for these hosts? Thanks :thumbup:

From my SGH-T989 using Tapatalk 4 Paid Beta... :confused:
[Android Apps and Games] hackerpower:
Working flawlessly on my ICS .100 U

Sent from Hacker's U via XDA app
[Android Apps and Games] Mike B.:
If your hosts file has the expected entries, then AdAway is working. If those hosts are not blocked through either mobile data or WiFi, then the suspect becomes your local DNS resolution process. Please double check that you are using the DEFAULTS AdAway settings for testing, including pointing to /system/etc/hosts and not /data since the script from the OP takes care of the symlink, and that the ads you see are indeed listed in your hosts file and should be redirected.
[Android Apps and Games] Leon:
BTW

There is app called unbeloved host in Xposed. I'm going to try it and see if it's work.
[Android Apps and Games] theonlykamph:
My app, is just blank when i open it? I have tried to uninstall and install
[Android Apps and Games] Mike B.:
If you already have DNS trouble, I'm not sure it would be wise to add yet another layer of complexity since all indications are that your hosts file is correct (i.e. AdAway is working fine) and your trouble lies somewhere else. Before you waste too much time on this, please make sure that you are looking at the correct /system/etc/hosts file and that it's the file your system uses for its DNS resolution, as suggested earlier.

That "unbeloved hosts" thing is not a standalone app but rather an Xposed module. It creates a "fake" hosts file and sends all requests through that file, effectively acting like a proxy that replaces local DNS resolution. Frankly it's a bit difficult to understand what advantages it affords compared to simply using AdAway, especially since it apparently suggests the very same source files albeit with a much clumsier UI and more overhead. There is no obvious reason to use that instead of plain good old dependable AdAway (which you tell us is working since your hosts file is correct!), but you can discuss that module's merits in its own thread.
[Android Apps and Games] Leon:
Thanks again for the information Mike. Really informative. You explan it so good do even ppl like me can understand it xD.
[Android Apps and Games] androcraze:
Blank? So you get a solid, white screen when you launch the app?
[Android Apps and Games] Mike B.:
We're good at guessing but we're not THAT good! That's not much information to go on. Which app from where, which device, which ROM, which root, what did you do, what happened, etc...
[Android Apps and Games] skulldreamz:
Just flash this in recovery and then install adaway and your good to go ?

https://www.dropbox.com/s/5mqac80zoe90tk2/AdAway_systemless_hosts.zip?dl=0
[Android Apps and Games] Nesdub90:
Works Great
[Android Apps and Games] theonlykamph:
Downloaded it from here.

Stock.

Rooted yes. All i do is try to open the app, i get the correct form and background, but there is no button nothing at all.
[Android Apps and Games] Mike B.:
Still not enough. Which device? Which ROM/version/root/launcher? How did you install it and did you get any message? Exactly what do you see when you invoke AdAway (a screenshot would help)? Does it look anything like the attached picture?
[Android Apps and Games] theonlykamph:
Stock rom, 6.0 and stock launcher, downloaded and installed like any apk. No message. Well i get the red bar at top, and the grey background and the text "adaway" in the top left corner :)
[Android Apps and Games] Mike B.:
"Stock rom, 6.0 and stock launcher, downloaded and installed like any apk" still doesn't tell us much. Even if AdAway installed without errrors, try uninstalling it, rebooting, downloading a fresh copy from the OP, then installing again. If you still have trouble then perhaps your

ROM, dpi, fonts, theme

, or something else is conflicting but AdAway has no particular requirements to at the very least display properly. If you somehow customized your ROM, try without those modifications. Do you have any other problems on that device/ROM? Do others in its support area (wherever that is) report similar display issues? If all else fails, you could also look for clues in your system logs. I'm sorry but it's very difficult to help you until you are willing to provide the requested basic information.
[Android Apps and Games] theonlykamph:
No other issues, at all. No modifications, flashed the rom yesterday no changes to dpi or what so ever. Maybe, i should try to clear dalvik cache? Sorry i couldn't provide screenshot, was driving so only had 3g, hehe :) No other fonts, theme anything. I find it really odd. Tryed to re download, and reboot nothing really works.
[Android Apps and Games] Mike B.:
I see you opted to still keep your device and ROM a secret, making it nearly impossible for others to help you. In general, a new ROM pretty much requires a Dalvik/ART cache clearing, even for a "dirty flash", but that's best addressed in your ROM's support area. I'm not sure how 3G relates to the ability to post a screenshot, but if everything worked just fine for you until you flashed that new mystery ROM (yesterday?), isn't it likely that the ROM is the issue? I'm not aware of any Android JB/KK/LP/MM (4.1+/5.x/6.x) ROM that can't at the very least

display

the screen unless it has an incompatible dpi or doesn't have the default fonts but, once again, looking at your logs should help you figure out what you are missing. I'm afraid there is nothing more we can do from this end until you can properly install and test AdAway.

EDIT:

After a little snooping and searching of your previous XDA posts, I'm now under the impression that you are using an H2OS-inspired ROM (on an OP2?). Based on comments found online, that ROM seems to have known issues displaying some apps, including AdAway, WhatsApp, and others, as well as various troubles responding to specific screen touches (buttons). At the very least it seems that a full wipe prior to installing the ROM is an absolute requirement and a cache/dalvik wipe after installing Gapps a wise idea, but I don't know enough about that device and ROM family to suggest anything besides maybe switching back to a more stable version. I was unable to find any post anywhere containing a useful log that would help define and possibly correct he exact issues.
[Android Apps and Games] franciscoger:
OPO user here, with CM13, is it normal that i need to update the adaway files and restart the phone almost everyday so the ads doesnt show up?
[Android Apps and Games] IronTechmonkey:
No. In fact those "default" sources dont change very quickly I update them only every few weeks or months without seeing any increase in ads. Of course there could be a day where a significant advertiser is added to one of the lists, but not frequently enough to merit updating daily (IMO).
[Android Apps and Games] Mike B.:
No, as [MENTION=5119654]IronTechmonkey[/MENTION] points out, the default source files change very seldom and then only for a very few hosts. In practice, they very seldom need to be updated. If all your ads reappear after a while, that suggests that something on your system is ignoring or overwriting the /system/etc/hosts file. Verify that the hosts file contains the hosts you wish to block (and not just a couple of lines), and that you don't have a forgotten proxy in your APN that would bypass that hosts file. Also make sure that you have disabled any builtin "ad blocker" or any "security" scheme that overwrites /system contents.
[Android Apps and Games] IronTechmonkey:
To put the addition of small #s of advertising domains in a statistical perceptive, and because I get a kick out of occasionally reviewing the # items in each of the sources that can be toggled; If one (or a few) new ad sources were added to one of the following lists, it (they) would be a small change.

Presently the # of domains in each source file is:

host-file.net - 47,367

pgl.yogo.org - 2,472

winhelp2002.mvps.org - 13,566

adaway.org - 445

There was a time when one of the sources went down from a few hundred thousand to less than 100,000, and then removed several thousand more a few months later, but those were probably items that no longer had any effect. If I were using that list at the time I would certainly prefer to know about the leaned down version but I've only seen that happen that once during the year I've been doing these a reviews. That all said, on a daily basis I only use the adaway.org source with a few dozen individually blacklisted ones and dont even bother to update unless I'm installing an adaway app update or new ROM.
[Android Apps and Games] franciscoger:
Thx a lot, it was the proxy stuff, solved!
[Android Apps and Games] Mike B.:
Thanks for the update, but for future reference, you could have solved your problem even faster if you had look at this thread's OP:

​

;)