yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] Mike B.:
That Xposed module is actually unrelated to AdAway. It's effectively an aggressive app-specific background proxy/firewall that filters all data traffic from an app ("hacks" the app) and arbitrarily redirects various requests, presumably the ones it decides are "ads". AFAIK it can't even work with basic web browsing. By contrast, AdAway is a simple tool to allow the user to select what he/she wishes to include in the global hosts file without using any additional resources. Besides references to the word "ad", you can't really compare the two, sorry... ;)

I can't recommend that app in good conscience. It's "way better and easier than AdAway" only if you want someone else to run your phone and decide for you what you want to see... ;)
[Android Apps and Games] Rovian:
Yea, but most importantly it gets the job done, which I couldn't get it to work with AdAway, regardless if I can compare the two or not, unless you know a way on how to block ads from Appy Geek/Appy Gamer using AdAway? or without paying them 2.29 GBP yearly? I don't see that happening.
[Android Apps and Games] ofir_a:
HTC one m8 sense marshmallow

Hi all

My device is htc one m8 sense edition

Software varsion : Marshmallow 6.0.0

I'm rooted s-on

TRWP version 2.8.7.0

I have install adaway 3.1 but the host file always return to its default and the changes doesn't take effect

any idea ??:confused::confused:

Thanks
[Android Apps and Games] Mike B.:
It depends on what "the job" is. I know nothing about "Appy Geek/Appy Gamer" but if those apps don't rely on local DNS resolution then there's nothing AdAway or anything dealing with the hosts file can do. You might be misunderstanding what AdAway is and does. Time to reread the OP and documentation, perhaps? AdAway can't alter an app's behavior or tell you what you should or should not watch, but then it never claimed to! ;)

---------- Post added at 08:29 AM ---------- Previous post was at 08:25 AM ----------

If you only have a partial root and S-ON, have you tried looking at the

AdAway builtin help

, specifically the workaround in the aptly-named "S-ON/S-OFF" tab?

If you don't allow AdAway to change the hosts file, it can't change the hosts file! ;)
[Android Apps and Games] Rovian:
One would claim after seeing "AdAway" name would think that this app can remove all ads regardless if they are on browser or on apps, I can't say I read the description of the app before downloading it, but that's what I thought it would do, I'm not bashing the app, and devs behind it have all my respect, but it didn't satisfy my needs.
[Android Apps and Games] Mike B.:
We all agree that the name "AdAway" is unfortunate but it's usually wise to check an app's description before installing it. Think of AdAway as a scalpel compared to your Xposed module's chainsaw. ;)
[Android Apps and Games] Rovian:
Indeed, that wink emoji on every post though, haha.

Thanks for the help mate. :)
[Android Apps and Games] ofir_a:
Thanks for your replay but I was trying to create symbolic link from the shell but its said :cannot create symbolic link from '/data/hosts' to '/system/etc/hosts': File exists

So I just go to adaway pref to change to system/etc/hosts and all the file download and hosts file look OK

But after reboot the system i go to adaway again and its said not active :(

Any idea ?

Thanks
[Android Apps and Games] Mike B.:
If the symlink is in place, you should point AdAway to '/data/hosts'. Doesn't that work for you?
[Android Apps and Games] jessesam:
Is there anyway to prevent adway from blocking shopping websites like slickdeals.net??
[Android Apps and Games] ofir_a:
No ... :(

Is this should work under Marshmallow ?

If yes

What is the full process ?

Can you write this from the begging ( with semi link etc ... ) so I can retry the process ?
[Android Apps and Games] Mike B.:
The main obstacle is probably more that nasty "S-ON" and your partial root than Marshmallow. In theory, if you successfully created a symlink that points /system/etc/hosts to /data/hosts and have AdAway look at that /data/hosts file, it should all work, but you didn't specify what exactly happens when you try that.

Do you happen to use "systemless" root with a recent SuperSU version? If so, you could try resetting AdAway to the default /system/etc/hosts, flash the "systemless" ZIP in the OP that creates a permanent bind mount, then reboot. It's difficult to advise you without knowing what exact errors, if any, you receive. You could also peek at your logs and see if anything related to this issue jumps at you.

For each step, you may want to check with a root-enabled file manager or terminal emulator whether you can edit /system/etc/hosts and/or /data/hosts. The file should contain all the AdAway hosts. If it only has a couple of lines, it's the wrong file. The problem is not AdAway, it's the apparent inability of your configuration to grant full access to the hosts file. Hang in there, we'll figure it out eventually...

---------- Post added at 10:01 AM ---------- Previous post was at 09:50 AM ----------

None of the current suggested source files blocks "slickdeals.net". Did you add a source of your own? If that hosts is currently blocked in your configuration, you can simply whitelist it then reboot but it might be wiser to NOT use whatever source blocked it in the first place. It's easy enough to try...
[Android Apps and Games] lucasbra:
Hi all,

Adaway is not working on my one plus. I apply host correctly but in chrome still get ads. Dara usage is OFF.

Any solution?
[Android Apps and Games] Mike B.:
A few more details such as which ROM/root you use would be useful. By "data usage", do you mean the Chrome "data saver" proxy, which should be disabled for best results? Does your /system/etc/hosts contain the hosts that you wish to block? Do other browsers and apps block the hosts you want them to block? If your trouble is only with mobile data and not WiFi, have you verified that you don't have a forgotten proxy in your APN?
[Android Apps and Games] ofir_a:
So, what I can say after I check this with terminal emulator is that the file under data/hosts is full of links but the file under system/etc/hosts contains only two link when I try to run the ln -s command it's failed because file already exist can I delete this file and recreate it?
[Android Apps and Games] Mike B.:
Yes you can certainly delete the /data/hosts file and try to let AdAway recreate it for you. If you have a "rootless" configuration, have you tried the suggested ZIP from the OP (using the default /system/etc/hosts target file in AdAway)? Without knowing all the details of your configuration it's difficult to guess. You may want to take a look at your logs for possible clues.
[Android Apps and Games] lucasbra:
Rom: cyanogenmod 13 nightly 24/02/2016

Chrome data saver is off.

Host in system/etc/host is correctly. Adaway path successful.

In 3g OE WiFi is the same.

I have not APN activated.

I try uninstall adaway. Remove manually host and change directory but nothing..
[Android Apps and Games] Mike B.:
If your /system/etc/hosts has the correct data, then AdAway is working correctly and is not part of your problem. Exactly was is "not working" for you? Do the hosts blocked in your hosts file still appear when you use another browser besides Chrome? How about from apps? Are you sure you don't have any kind of "optimizer" or "ad blocker" that interferes with local DNS resolution? Is this a new issue with a recent nightly? Did you see anything suspicious in your system logs?

By searching your ROM"s thread, as you probably should do yourself, I see at least one report from a user successfully using AdAway without apparently having to do anything special. Have you considered bringing up your DNS problem in that thread where others might have insight relevant to your specific configuration?

FYI, note that if you have mobile data (whether 3G or 4G), you do have an APN, but an APN proxy would have no bearing over WiFi.
[Android Apps and Games] lucasbra:
Thanks for reply.

In apps for example sofascore a get all ads showed. In chrome

I see a lots of popups that before never see.

To check I have download adblock browser and it block

All ads.

In apps I get ads only through Facebook.com graph.Facebook.com

But if I add it to blacklist Facebook app doesn't work.

Maybe I need to add more host list to adaway..
[Android Apps and Games] Mike B.:
If I understand you correctly, AdAway is working fine, some ads are blocked, but you'd like to block others. It's unclear which source files you use with AdAway but you can use the DNS Request Log to blacklist other hosts if you need to. Now might be a good time to review the AdAway documentation. Keep in mind that some ads within apps do not go through local DNS at all and therefore nothing in the hosts file can block them, with or without AdAway. Specifically, Facebook uses MANY different ad serving hosts (and "Facebook.com" is not one of them!).

Contrary to what the name might suggest, "Adblock" has nothing to do with AdAway.
[Android Apps and Games] lparcshinoda:
I'm running Stock android 6.0.1 rooted with latest supersu. I just use greenify and amplify with no restrictions on adaway
[Android Apps and Games] ofir_a:
I was trying to delete the hosts file but its seems that I don't have permissions for that even that im root :confused:

this is the msg is got : rm: data/hosts: Permission denied

Any idea?

is it something with trwp ?
[Android Apps and Games] Mike B.:
Probably not much to do with TWRP (current version is 3.0, not your 2.8.7.0). However, the TWRP File Manager might be a convenient way to delete that mysterious /data/hosts file so that you can start over, either by letting AdAway try and recreate it or, if you are using a "systemtless" root, by flashing the ZIP and keeping all default settings.

You still don't give many details about your configuration, but have you looked wherever your ROM and root are supported for related reports. Once again, the issue is not AdAway, it's your apparent inability to write to /system. Getting rid of S-ON would be ideal, but you might also have root issues with which we can't help much, sorry.

---------- Post added at 06:47 AM ---------- Previous post was at 06:35 AM ----------

Is the webserver the only part giving you trouble? Does it start, but then disappears eventually, or does it never starts? You still haven't given us any details (device, ROM, root method, etc.) but you should probably start by temporarily disabling greenify, amplify and anything that similarly terminates or blocks background processes. Alternatively, you could also look at your logs and look for relevant messages.
[Android Apps and Games] jeepcook:
For information twrp 3.0 is buggy, does not wipe properly system or data. From now stay with 2.8.7 ... Waiting for a new version.

Envoyé depuis Tapatalk
[Android Apps and Games] Mike B.:
Not quite accurate. There is no obvious need to update if 2.8.7.x works for you, but 3.0 adds quite a few features and works fine for many people/devices. In any case, this would be best addressed in a thread about TWRP recovery, not here! ;)
[Android Apps and Games] lparcshinoda:
Webserver starts but disappear when app is put on background. I've deactivated greenify, amplify and xposed, cleaned data and uninstalled adaway. Reinstall and flash from recovery the adaway zip for systemless root I'm using (latest SuperSU beta) and no solution. It was working before. My device: Nexus 5

Inviato dal mio Nexus 5 utilizzando Tapatalk
[Android Apps and Games] Mike B.:
It would be useful to specify what you changed since "it was working before".

The "systemless" ZIP merely creates a permanent bind to bypass the restrictions on directly writing to /system/etc/hosts in your configuration. It's not specific to AdAway and unrelated to the separate webserver service. If you flashed that ZIP, make sure to point AdAway to the default /system/etc/hosts, but that too is not relevant to your webserver woes.

If your SuperSU version (which beta? 2.65 is the current stable release) installed a "systemless" root, you may want to make sure that your busybox is in the standard /system/bin/ and not in /su/bin/. Looking at your log should help you spot the problem.
[Android Apps and Games] lparcshinoda:
Many thanks for your help, it seems that the problem was Busybox (didn't know that it needed another path to work). After uninstalling and reinstalling in /system/bin it's not working like a charm
[Android Apps and Games] s--c:
Does latest AdAway work with shield android tv latest version 6.0?
[Android Apps and Games] Mike B.:
This was not really an AdAway issue and SuperSU's optional "systemless" approach causes quite a few similar annoyances, but it was easy enough to correct in this case. For future reference, you probably could have solved your own problem quickly by simply searching this thread for "

webserver

"... ;)

---------- Post added at 07:26 AM ---------- Previous post was at 07:17 AM ----------

If you have a properly

rooted

android 6.0 configuration that allows you to edit /system/etc/hosts, there should be no special problems. Try it, it doesn't hurt! Remember that AdAway won't help with ads embedded in apps such as the official YouTube (a common question from Android TV users).
[Android Apps and Games] Thorstenk:
Hey there, how can I add googleadservices to the positiv list. When I add googleadservice* I still can't open the google ads and get a "ERR_CONNECTION_REFUSED ...

Any help is appreciated!

Thorsten
[Android Apps and Games] tag68:
For me

*.googleadservices.com

worked fine.
[Android Apps and Games] Thorstenk:
Thx that did the trick!
[Android Apps and Games] Mike B.:
That domain is blocked by several source lists because it's a common host for ad servers. The googleadservices.com domain includes several subdomains, not all of which you may want to keep. Whitelisting "*.googleadservices.com" (everything from that domain) might be overkill and bring in too much undesirable content. Consider narrowing down your selection, such as only allowing: googleadservices.com, partner.googleadservices.com, www.googleadservices.com, pagead2.googleadservices.com, 4.afs.googleadservices.com, or whichever specific subdomain(s) you want/need. The DNS Request Log can show you exactly what to block/keep. Remember to enable the local webserver to avoid "not found" connection errors.
[Android Apps and Games] Thorstenk:
Thanks for the info, I will play around a bit with the different entries ...

bye the way, is adaway slowing down the browsing speed?
[Android Apps and Games] Mike B.:
No, AdAway uses NO resources at all except while it's actively in the (optional) process of downloading updated source files. In fact, once it has created the hosts file that you want, you could uninstall AdAway completely is you so desired. Even the optional webserver is a simple Android service with no significant impact on performance. This is why many of us much prefer AdAway to various aggressive "ad blockers" that remain resident and active at all times, force all traffic to go through a proxy, and won't let you decide what to block or allow. AdAway is basically a simple tool to save you the trouble of having to edit the hosts file manually. Think of it as similar to the remote for your TV that allows you to switch channels without having to get up. ;)
[Android Apps and Games] Thorstenk:
Thanks for the nice explanation Mike!
[Android Apps and Games] Wrapp:
Where does adaway store the adaway-export file when I export my list? Nexus 5 and PureNexus ROM

Thanks a lot for the ongoing support on this essential app
[Android Apps and Games] Ja_som:
Again???

http://xdaforums.com/showpost.php?p=64517812&postcount=5010
[Android Apps and Games] Wrapp:
Thanks a lot, but I don't find it there. Even searched the complete sdcard using rootexplorer but it didn't find the file
[Android Apps and Games] ziaba:
Works gret on my meizu mx5 best app ever
[Android Apps and Games] Tesla74:
If you are using AdAway and want to watch video in the CNET app, you'll need to white list pubads.g.doubleclick.net
[Android Apps and Games] Mike B.:
By searching this thread, you might see that someone else suggested whitelisting other hosts as required for CNET. Keep in mind that you only need to whitelist something if it's blacklisted in the source files you selected, making it difficult to provide universal answers. Since "pubads.g.doubleclick.net" is a common ad provider, it's blacklisted by default in many popular source files.
[Android Apps and Games] mrdunlop:
I am getting copy failed popup. Adaway 3.1 on aicp 6.0.1

Just updated rom, clean flash and cannot get adaway to work.

Any help appreciated

Just says disabled
[Android Apps and Games] Mike B.:
You forgot to tell us when that message appears on which device, but you probably have a configuration that prohibits writing to the /system partition. If you are using a "systemless" root, you may need to first flash the ZIP mentioned in the OP. Search this thread for "systemless" and review the available options.
[Android Apps and Games] mrdunlop:
You nailed it on the head, I flashed the systemless root zip for adaway, and everything worked as it should after booting, thank you sir!

I am however a bit perplexed, because up to this point, the app worked fine without flashing that zip, and I am using the same Supersu and rom, just new nightlies, since I got the new phone back in January.
[Android Apps and Games] Mike B.:
I'm glad I was able to guess correctly, but if your trouble started after updating your ROM, as you stated, chances are something changed in that new ROM. If you're curious about it, ask wherever that ROM is supported, but AdAway has absolutely no control over those issues.
[Android Apps and Games] mrdunlop:
[IMG="Thumbs Up"]http://dl.dropboxusercontent.com/u/400662/thumbs-and-ammo-5.jpg[/IMG]
[Android Apps and Games] migueldbr:
One of the reasons i unninstalled adaway and all hosts file was because it was causing lag everywhere. This guy suggests a fix: http://xdaforums.com/android/help/fix-android-scroll-lag-caused-host-file-t3286993

I didnt test it yet because im not using ad blockers, but maybe it helps someone here
[Android Apps and Games] androcraze:
I've used BIND to link /system/etc/hosts and /data/data/hosts. The /system/etc/hosts has permissions of 777, while the /data/data/hosts file has permissions of 644 (dates are correct: /system/etc/hosts is 09FEB, and /data/data/hosts is 29FEB).

I'm not sure where the 777 permissions came from, whether via BIND, it was that way when I installed my ROM, or if AdAway made the change. I'm surprised that it's not set to 644. There may be a reason for this, but I don't understand the "wide open" access to /system/etc/hosts.

On further thought, the 777 permission is probably a BIND creation, and necessary to link.
[Android Apps and Games] Mike B.:
That recommendation merely highlights what appears to be a root issue in some MM configurations. I especially got a kick out of the "when I have my host file active" reference in that thread, as if that file could do anything on its own. Any "delay" would be because the su management system (such as the SuperSU app) is not responding properly to requests to access something in /system. For example, recent SuperSU configurations take a noticeably longer time than before when deciding if it should grant root access to some processes (apparently based on group membership). I strongly suspect that the people having that issue could solve their problem by simply switching root method (or at least avoiding any "systemless" silliness), or maybe using better behaved apps that don't hit the DNS server quite as heavily. Fortunately, this has absolutely nothing to do with AdAway and if there are delays reading the hosts file those delays would be the same regardless of how that hosts file is created.

Oh, and BTW, AdAway is not an "ad blocker" and "ad blockers" are typically processes that insert themselves between an app and the local DNS service, causing unavoidable delays of their own... ;)
[Android Apps and Games] mrRobinson:
Quick question, did you use default ad srcs or add others?
[Android Apps and Games] migueldbr:
Default, didn't add anything
[Android Apps and Games] mrdunlop:
My permissions were already set to match his findings. Interesting find tho
[Android Apps and Games] WTF?:
sorry if this has been previously answered, but if we have an app that ads are still getting through on, even with the latest block files, is there a place we can submit the app name so that it can get some special attention on the future blocked sites host file list?
[Android Apps and Games] Mike B.:
AdAway is an open source tool to edit the hosts file. It doesn't create or maintain any source files, and neither do its contributors and maintainers. AdAway merely suggests a few commonly used source files, but they're completely optional. If you think some hosts should be added to one of the source files you selected, you need to contact whoever maintains that file. If you know which specific hosts you want to block, you could do so directly with AdAway's blacklist feature.

Note that the hosts file (and local DNS resolution in general) only deals with hosts globally, not with any specific apps. Many apps (YouTube, Facebook, many games, etc.) serve ads directly without going through local DNS and nothing in the hosts file could prevent that. You may want to review the AdAway documentation and search this thread for help on how you can use the DNS Request Log to identify which hosts, if any, are used by an application.
[Android Apps and Games] alessio89g:
What's the option "Allow whitelisting" (I've AdAway Italian localized, so I think it well in English)?

I've set a custom white list that works with this option enabled and vice versa.
[Android Apps and Games] Mike B.:
The option used to be "Allow whitelisting and redirection" but when "Allow redirection" was given its own option, "Allow whitelisting" remained, enabled by default. It can be safely ignored.
[Android Apps and Games] henne10:
Hello all,

i have some trouble with my hostfile on Android 6.0.1.

Some background informations:

Curently I use OMNI on my OnePlus One

Before I upgrade to Android Marchmellow everything was fine

I don't use any methode to reduce my data like Chrome's data saving

here is an exampel with an experimental hostsfile:

View attachment 3676393

I expect that he pings agains 0.0.0.0.

For me it seems that OMNI ignores the hostfile.

Permissions are also checked.

Can someone help with this?
[Android Apps and Games] Mike B.:
First please ignore any old online chatter that you may have read and use 127.0.0.1 (localhost) as your redirection target. No, "0.0.0.0" is

not

an acceptable alternative regardless of how much technobabble tries to tell you otherwise.

Once you have done that and applied your corrected source file, make sure that /system/etc/hosts contains the expected entries and that you have proper write access to it. If you are using a "systemless" root, you may have to first flash the ZIP referred to in the OP, then simply enable AdAway with all default settings (i.e. pointing to /system/etc/hosts and not to a symlink). After rebooting, check that the hosts you want blocked are actually blocked. If you still have trouble, tell us exactly what you did and what error(s), if any, you receive. Remember that in most cases, the answers are waiting for you in your logs... ;)
[Android Apps and Games] alessio89g:
Hi,

thanks for your reply, but I don't understand your explanation…

I've Adaway 3.1 [01.12.2016] (Dev Build) SystemLess, and "Allow whitelisting" (enabled by default) and "Allow redirection" (disabled by default) have each one their own separate item.
[Android Apps and Games] henne10:
Thank you very much, sometimes the solutions are so simple :good::good: