yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] Mike B.:
Thanks for providing the relevant details, especially verifying that your hosts file has been correctly created/edited, confirming that AdAway is not the problem. I assume that you started with the basic default source files which are more than sufficient for most people.

Are some ads blocked in at least some applications? If so, there are two main possibilities: either you are not blocking the ads used by the other apps, or those apps (including Dolphin) bypass the hosts file and grab the ads directly by numeric IP, an issue over which AdAway has no control.

Verify that your Dolphin doesn't have an "Ad blocker" or any other proxy in disguise which should be disabled. If another browser blocks the ads as you intended, your trouble is a Dolphin setting.

Games are famous for pushing ads in every possible way. Some use DNS, which AdAway can control, but others do not. This is a job for the AdAway DNS Request Log (search the thread for details) which might be able to spot some adservers, but you'll probably always have to cope with some ads in most games and "free" videos... unless you quit playing those games and watching those vids... ;)
[Android Apps and Games] binaryfalcon:
What exactly does the systemless zip modify?

1. Will adaway work without it?

2. What happens when you update rom or SuperSU, DL you need to flash it again? Also how would one remove the changes?
[Android Apps and Games] Mike B.:
That ZIP is only for "systemless" users who have not managed to establish a persistent symlink/bind that allows write access to /system/etc/hosts. Regardless of ROM or root method, if you can write to /system/etc/host, you don't need that ZIP. If you update your ROM, chances are you will need to flash it again. Your guess is as good as ours as to whether a future SuperSU version will still need it. If that hypothetical new version no longer relies on "/su.d/", then clearly you’d have to find another method. Conversely, if/when a proper full root for Marshmallow appears (from [MENTION=631273]Chainfire[/MENTION] or someone else), the entire matter will be moot.

For specific details, I suggest you simply look at the ZIP contents yourself, but the essence of it is that it executes "mount -o bind /su/etc/hosts /system/etc/hosts" on boot, allowing AdAway to simply point to /system/etc/hosts without having to do anything else.
[Android Apps and Games] binaryfalcon:
I see. I believe anyone with systemless root can write to /system, as long as it's mounted as rw. So theoretically the zip allows stock devices to still receive OTA even though adaway is installed?

Thank you for your detailed response, appreciate it.
[Android Apps and Games] jcsww:
Any changes at all to the system will cause OTA's to not install!
[Android Apps and Games] binaryfalcon:
I guess it doesn't matter as I'm using a custom rom - either way, it is as simple as to restore the old hosts file anyways
[Android Apps and Games] Mike B.:
The catch is "as long as it's mounted as rw" which is apparently difficult to accomplish in some recent "systemless" configurations. The ZIP has nothing to do with OTAs, it merely allows AdAway to access /system/etc/host under those configuration as if they were "normal" (traditional) fully-rooted systems. This is basically a quick workaround to bypass current limitations of some systemless (an ALPHA pseudo-root method!) configurations. It's a convenient (?) alternative for users who don't yet have a way to dependably symlink or bind /system/etc/hosts in order to provide AdAway with a suitable ersatz location.

There is no mystery in that script. Simply unZIp it and look at its support/mount_su_image.sh and 0000adaway.script to see exactly what it does. Note that the approach is not specific to AdAway. It merely happens to use the hosts file but the same process could be used for most anything else in /system (just change the 'mount' command). The long-term solution will be a proper Marshmallow root, but for now anyone attempting to root a new Android version within 6 months of its release deserves some (mild) punishment... ;)
[Android Apps and Games] binaryfalcon:
yea, I had problems editing system with my file explorer, had to install and try different ones to make it work

so basically systemless is a hit or miss? adaway worked for me without the zip

btw I'm not suspicious to the script, was curious and wanted to learn a bit on how root apps adapt to systemless
[Android Apps and Games] Mike B.:
Systemless is very much a work in progress but there are currently very few alternatives for Marshmallow users. It works fine for some, and not at all for others, as expected for an alpha release under active development. Apps don't really care how root is achieved. Once an app is granted root privilege (or Androdi says it is), what matters is what that root access allows it to do where. In the systemless world, writing to the /system partition is effectively disallowed, but it's not drastically different from HTC's S-ON or various other "protection" schemes, most all of which are eventually circumvented by the dev community. Compared to all the other headaches systemless can generate, anything possibly limiting AdAway's access is probably not the worse one... ;)
[Android Apps and Games] arteaga323:
Tested working on Nexus 6 (T-Mobile) on Android 6.0.1 running SuperSU 2.62, Franco Kernel r37 (systemless everything). Used the systemless zip first than installed apk listed in OP on latest TWRP. No issues, so far so good, ad blocking is good so far also.
[Android Apps and Games] Primokorn:
I'm using SuperSU 2.62-3 with CM13 and it seems that I don't need this zip to have a working AdAway. Actually there's nothing more to do compared to LP. My hosts file is in /system/etc/hosts and I didn't use symlinks.
[Android Apps and Games] ASHURiCAN:
Same here but with CM integrated SuperUser [emoji4]
[Android Apps and Games] Primokorn:
Then you are not concerned by systemless root and this zip :)
[Android Apps and Games] riowong:
If I import my own host file, and there're hosts duplicated in the default AdAway host file, will the duplicates be skipped to streamline the finalized host file?
[Android Apps and Games] ASHURiCAN:
Right but you too isn't? Apart if it's something to do with SuperSU [emoji4]
[Android Apps and Games] Mike B.:
There is no default AdAway host file, mere suggested default source files. AdAway will parse all the source files and black lists that you provide and remove any duplicates before adding any white list entries then finally moving the resulting file to /system/etc/hosts (or whatever location you specify). Read the help files or search this thread for details.
[Android Apps and Games] Primokorn:
Fully related to SuperSU ;)
[Android Apps and Games] Ajs1992:
It also worked for my N6 with stock 6.0.1 and SuperSU 2.6.2-3, but only with your test APK you posted earlier.
[Android Apps and Games] x3dnd3x:
Can v3.1 work on LP even though it has full MM support? :confused:
[Android Apps and Games] Mike B.:
The current AdAway 3.1 is compatible with any fully rooted Android 4.1 (JellyBean) and newer configuration. The problems some Marshmallow users encounter (as discussed in this thread and many others) are caused by their current inability to establish a proper complete root on some Android 6.x ROMs, but those are not AdAway issues; AdAway is merely one of the many victims. As long as you can write to your /system/etc/hosts file, you're fine. ;)
[Android Apps and Games] jshamlet:
Quick question (though I suppose it's a tad late)

I have my phone setup with systemless root so I can retain the ability to do OTA updates, and the ONLY thing that modifies /system is AdAway. If I disable ad-blocking, will it restore a version of HOSTS that will pass the OTA check, or do I need to go find a fresh, untouched copy?

Thanks!
[Android Apps and Games] Mike B.:
The ONLY thing AdAway potentially changes in /system is the /system/etc/hosts file. If you "disable ad blocking" (a misnomer, much like the name "AdAway"), the previous hosts file will be restored. Without any specific details, we don't know if you altered the actual hosts file or merely a symlink or bind mount and we can't tell you if that will keep your OTA process happy, but it should... ;)
[Android Apps and Games] surviveland:
Hello, Why not download an add-on called Ad blocker from http://dolphin.com/lab/en? It is very useful. Or you can send them a report about your lag issue to support@Dolphin.com for assisstance. It works on me
[Android Apps and Games] william1974:
Question : I already installed adaway apk. Do I need to remove current one then flash newest?
[Android Apps and Games] Mike B.:
If you already have any AdAway version from this thread, you can simply install the current one (3.1) over it as you would for any other app and you will retain all your settings. The only time you'd have to uninstall first would be if you somehow had an incompatible version grabbed from some other place, such as F-Droid.
[Android Apps and Games] osm0sis:
Hmm, okay while I was able to get the webserver working on my N5 it definitely isn't working on my N7 2013..

06:00:56.371 I/AdAway (30484): Set /proc/self/oom_score_adj from -1000 to -17
12-20 06:00:56.372 F/libc (30484): Fatal signal 11 (SIGSEGV), code 1, fault addr 0x58 in tid 30484 (libblank_webser)
12-20 06:00:56.424 F/DEBUG ( 204): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
12-20 06:00:56.424 F/DEBUG ( 204): Build fingerprint: 'google/razor/flo:6.0.1/MMB29K/2419427:user/release-keys'
12-20 06:00:56.424 W/NativeCrashListener( 637): Couldn't find ProcessRecord for pid 30484
12-20 06:00:56.424 F/DEBUG ( 204): Revision: '0'
12-20 06:00:56.424 F/DEBUG ( 204): ABI: 'arm'
12-20 06:00:56.424 F/DEBUG ( 204): pid: 30484, tid: 30484, name: libblank_webser >>> /data/app/org.adaway-2/lib/arm/libblank_webserver_exec.so <<<
12-20 06:00:56.424 E/DEBUG ( 204): AM write failed: Broken pipe
12-20 06:00:56.424 F/DEBUG ( 204): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x58
12-20 06:00:56.431 F/DEBUG ( 204): r0 00000000 r1 becff950 r2 00000000 r3 b6fef689
12-20 06:00:56.431 F/DEBUG ( 204): r4 becffadc r5 00000000 r6 00000000 r7 b6fec401
12-20 06:00:56.431 F/DEBUG ( 204): r8 00000000 r9 00000000 sl 00000000 fp becffacc
12-20 06:00:56.431 F/DEBUG ( 204): ip 00000000 sp becffa78 lr b6fec437 pc b6feed54 cpsr 400f0030
12-20 06:00:56.435 F/DEBUG ( 204):
12-20 06:00:56.435 F/DEBUG ( 204): backtrace:
12-20 06:00:56.435 F/DEBUG ( 204): #00 pc 00003d54 /data/app/org.adaway-2/lib/arm/libblank_webserver_exec.so
12-20 06:00:56.436 F/DEBUG ( 204): #01 pc 00001433 /data/app/org.adaway-2/lib/arm/libblank_webserver_exec.so
12-20 06:00:56.436 F/DEBUG ( 204): #02 pc 00017359 /system/lib/libc.so (__libc_init+44)
12-20 06:00:56.436 F/DEBUG ( 204): #03 pc 00001520 /data/app/org.adaway-2/lib/arm/libblank_webserver_exec.so
12-20 06:00:56.472 F/DEBUG ( 204):
12-20 06:00:56.472 F/DEBUG ( 204): Tombstone written to: /data/tombstones/tombstone_03
12-20 06:00:56.473 I/BootReceiver( 637): Copying /data/tombstones/tombstone_03 to DropBox (SYSTEM_TOMBSTONE)
12

Stock 6.0.1, rooted with systemless 2.62-3, opted out of xbin_bind and using a bind mount for hosts from /su/etc/hosts to /system/etc/hosts.

[MENTION=3355398]mrRobinson[/MENTION] let me know if there are any other logs you'd like to help track down the issue.
[Android Apps and Games] mrRobinson:
Let me see if i can dupe on my n7 2013. I see this crashed but can't imagine what would cause it so would like to eliminate something unique to your device.
[Android Apps and Games] Krunk83:
So if I would like adaway to be systemless I would install the apk and then flash the systemless version of adaway? When I flashed just the systemless adaway zip nothing happened and I don't have the app.
[Android Apps and Games] Mike B.:
AdAway is never "systemless", but your root method might be. AdAway simply needs to be able to write to /system/etc/hosts. A fully rooted system provides that access directly, but anything short of a full root (such as current experimental "systemless" partial roots on Marshmallow) often requires additional system tricks or tweaks, such as a symlink or a bind mount. The "AdAway_systemless_hosts.zip" file generously offered by [MENTION=3355398]mrRobinson[/MENTION] in the OP is one possible way to provide that /system access. It's NOT an AdAway version, but rather a 'bind' script that some users might find convenient. Search this thread (#4939, for example) or look at the file's contents for details.

To use AdAway, whether you have a fully rooted or 'systemless" configuration,

you still need to download and install AdAway

! ;)
[Android Apps and Games] nixie2121:
OK, so using fios mobile dvr anywhere does not work with root or adblock. using systemless root fixed the root issue. systemless adblock does not work for this app. I was sure it would work since systemless root worked. I restored my hosts file, flashed the systemless adblock zip from the op, booted and activated adblock. I assume I did everything correctly? maybe the fios app just won't work unless I disable adblock and I have no choice?
[Android Apps and Games] Mike B.:
What do you mean by "systemless adblock does not work for this app"? Even assuming that you intended to say "AdAway" and not "adblock", there's no "systemless" version. Is it simply that your app still shows ads, which would merely suggest that it doesn't go through local DNS or that you're not redirecting the domains it uses? A little more information would be useful... ;)
[Android Apps and Games] nixie2121:
sorry, yes I meant adaway. I understand there is no systemless version but I thought apps would not see a modification? once I used systemless root, the fios app worked on my home network. it was not working on LTE and I found that adaway was the issue. I guess I assumed that if I set it up this new way that it would pass the fios issue and work as it did with root. If I understand correctly, this new way would not modify the system version of the hosts file. my mistake may be that the app just knows there is ads being blocked and there is nothing I can do.
[Android Apps and Games] Mike B.:
I'm not sure your issue has much to do with "systemless". Regardless of how you accomplish it, what matters is what ends up in the hosts file your system uses, whether it's the actual /system/etc/hosts or a symlink/bind alias. If your app works on your home network (WiFi?) but not on LTE (mobile data?), the main difference might be that you have a proxy (bypassing local DNS) with one but not with the other. It might be worth forgetting about systemless for now and concentrating on which hosts you are blocking or allowing, a much simpler matter. For example, try selecting only one of the default source files at a time, or use the DNS Request Log to see what the app tries to access.
[Android Apps and Games] evronetwork:
Doesn't seem to work with my cyanogenmod 12.1(android 5.1.1) for some reason :D
[Android Apps and Games] MatVekk:
Ok in Xiaomi RedMi Note 2 with Miui 7

Inviato dal mio Redmi Note 2 utilizzando Tapatalk
[Android Apps and Games] Mike B.:
What do you mean by "doesn't seem to work"? Does the current (3.1) AdAway install correctly? Does it correctly update your hosts file? Is your trouble with specific hosts, a specific app or a connection method (WiFi or mobile), and if so which one(s)? If your /system/etc/hosts file contains the hosts that you selected (source files+ black list - white list), then AdAway "worked".

To save time, first check the commonly overlooked issues: make sure you don't have a proxy in your APN, disable any "ad blocker" your ROM may have, delete any extraneous /system/etc/hosts.* files, etc. You could even look at your logs where most answers usually are.

We do our best to help users but you need to do your part by providing at least enough information for us to guess what the problem is... ;)
[Android Apps and Games] RmX86:
it seems good.

good app sir.
[Android Apps and Games] arteaga323:
Hello everyone!

Does anyone know how I can add the Frostwire Plus app (not from Play Store) to whitelist? It seems that AdAway isn't letting me download from it. Thanks!
[Android Apps and Games] Mike B.:
The answer is always the same: WE don't know, but

YOU

can find out. AdAway isn't doing anything; YOU are, by selecting your choice of source files. Use the AdAway DNS Request Log, see which hosts your apps accesses, and whitelist those if they happen to be blocked by whatever source files you use. If the app doesn't create any entries or whitelisting all its entries still doesn't work, that means it bypasses local DNS and there's nothing AdAway or anything dealing with the hosts file can do about it. Before you spend too much time on this, start with as few source files as possible (no more that the default files, preferably only one at a time) and remember to reboot whenever you make any change to your hosts file with or without AdAway.
[Android Apps and Games] mrRobinson:
Ok just dusted my n7 2013 wifi off (flo).

flashed stock 6.0.1, supersu 2.6.4, adaway 3.1, systemless zip in OP.

press the enable webserver button:

root@flo:/ # netstat -an | grep -w LISTEN && ps | grep blank
tcp 0 0 127.0.0.1:80 0.0.0.0:* LISTEN
tcp 0 0 ::1:80 :::* LISTEN
root 9359 9094 2464 964 sys_epoll_ b6ee6894 S /data/app/org.adaway-2/lib/arm/libblank_webserver_exec.so

I turned it off/on and it worked. I set it for boot and it came back at boot. Not sure, it looks like yours crashed when setting the oom_score_adjust. which is weird.

Nothing else you've changed?
[Android Apps and Games] osm0sis:
Hmm Stericson busybox 1.24.1 perhaps?
[Android Apps and Games] DarkRazorr7:
Is possible to reduct empty places when was ads?
[Android Apps and Games] mrRobinson:
maybe, i haven't installed that in a while, could try.

did you enable the webserver in preferences?
[Android Apps and Games] evronetwork:
I get ads = doesn't seem to work (isn't it obvious? :p)

Adaway correctly installed, SU access granted, Downloaded updates and rebooted ...doesn't work :D

Proxy in APN? I'm not on data :P(WIFI ftw :D, no proxy on my home or office network - I'm the admin in both :D ) ..no adblocker with the rom, well I tried other adblock apps and none of them seems to work. Weirdly in the past adaway did the trick, never had any issues

I guess I'll try to find somehow how can I fix this(if possible) else ...ads lets be friends :P
[Android Apps and Games] Ultramanoid:
Are you using a data saving feature in a browser, such as the one found in Opera or Chrome ? That's effectively a proxy as well.
[Android Apps and Games] Mike B.:
Unfortunately, we still don't know what exactly "doesn't work". Let's try to take it one step at a time.

When you select the four default source files then ask AdAway to "DOWNLOAD FILES AND APPLY AD BLOCKING", does the process complete without errors and does AdAway show "Newest hosts files enabled"? If so, AdAway worked fine and doesn't need to be active until next time you update the source files.

If the actual problem is that you see ads where you believe none should be, a separate issue, you need to investigate further. Look at your /system/etc/hosts. Does it contain hundreds of entries or only the original 2 or 3 lines? If the hosts file is fully populated, it's confirmation that AdAway did its job and your trouble is somewhere else. If the file only has "localhost" or so, then something during the boot process reset that file. It could be something that tries to "protect" the /system partition, a misguided "optimizer, etc. Only YOU know what runs on your device, but that would have nothing to do with AdAway. Even though you state that there's "no adblocker with the rom", I strongly urge you to verify that you do not have any additional /system/etc/hosts.* files. There should be only one (at most) /system/etc/hosts, and none with extensions such as .bak, .old, etc. Once again, nothing to do with AdAway but multiple hosts files confuse Android's local DNS resolution processes.

If the only hosts file copy looks fine and none of the entries in there seem to be effective from any app, then your system is using an external DNS scheme. Even using WiFi, your ISP may very well force its own DNS (remote proxy). If possible try using a completely different WiFi AP using a different provider.

There are countless other possibilities why you see ads, but please check all the obvious ones stated earlier. Once you’re done checking, check again. In most similar cases, the culprit is simple user oversight. At least, from what you've shared so far, there's no indication that AdAway itself is "not working".... ;)

EDIT:

Since you seemed a bit reticent to research your ads issue, I took a few minutes to glance at recent CM 12.1 builds, and I found quite a few references to multiple hosts files getting in the way of various DNS-related activities. I advise you once again to make absolutely sure that there is only ONE /system/etc/hosts file. Check before and after rebooting.
[Android Apps and Games] osm0sis:
I uninstalled it from /su/bin and the webserver started working again. Weird. I know it must be because /su/bin takes precedence over /system/bin but I'm curious to know why the busybox version of the same command causes the crash.
[Android Apps and Games] upperg:
Adaway is blocking redirect links from multiple site. Giving me Google Chrome's connection attempt to go.redirectingat.com was rejected. The website may be down, or your network may not be properly configured. This works when I disable Adaway. How do I make exception to allow these redirecting links?
[Android Apps and Games] Mike B.:
AdAway only "blocks" what you tell it to block. Actually, all it basically does is place the contents of the source files you select into /system/etc/hosts. If you want to still access a server that's already blocked by one of your source files, simply

whitelist

that site (under the AdAway menu). In your example, you'd need to whitelist "go.redirectingat.com", a commonly blocked redirecting/tracking site (blocked by at least 2 of the default sources, and many others).
[Android Apps and Games] CaspaTheGhost:
All these long replies trying to help people by spelling out what they should already know when using root apps. I salute you sir.

There should be a Mike B signature, like so I think...

Mike B.

Drops mic.
[Android Apps and Games] evronetwork:
Adaway looks like it's working, downloading files and all - if I didn't say it sorry my mistake. I'll check the hosts file asap and get back to you. I'll uninstall it check it out install it update it check it out again, reboot and check it out one more time :p

EDIT: Remove Adaway, checked hosts ...only locahost(which is normal - I'm a computer repair tech if I fail to mention that too, I'm good with any windows system, with android well lets say I know some stuff :P)

Install adaway dl files and rebooted, files are there and I do have a note in hosts saying "This hosts file is generated by Adaway." ...so it should work, but it's not

No other hosts files ..it's a mistery :P

EDIT2: and the ads keep up :P
[Android Apps and Games] Mike B.:
Not that much of a mystery. If no ads are blocked at all anywhere, your data is going through a proxy and ignoring your hosts file. If only some apps/browsers show ads, those ad-laden apps don't go through local DNS. Finally if some ads appear but not others, it could simply be that you need to blacklist those remaining ads or the ads are accessed by IP and not by host name. Search this thread if you need help identifying the culprit, as those issues have been discussed many times here even though they are not directly related to the basic functions of AdAway.
[Android Apps and Games] arunak:
Same here on CM 12.1 :(