yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] b1g.p0ppa:
FWIW, my observations after running both stock Nougat and Pure Nexus Nougat is that the 'mount' command fails to remount /system with a Device or resource busy error. So A) you can't write a new /system/etc/hosts file and B) you will not be able to replace it with a symlink to any other file either.

Using busybox mount you can remount /system rw and create the symlink. Problem is, nothing gets blocked so I believe the symlink is being ignored.

I've simply copied /data/data/hosts as /system/etc/hosts for the time being and that's blocking but obviously automatic updates are not going to work.

And the adb su -- bind command doesn't work as the su in Chainfire's v2.78 SR1 doesn't understand the command:

sush: /data/data/hosts:/system/etc/hosts: not found

Hope this info helps in some way.
[Android Apps and Games] NLBeev:
When AdAway is forced stopped, the hosts file stays where it is. And keeps filtering/redirect the listed url's.

You need to find out which 'ad url' is used by Weatherbug.

Try 'log dns requests' in the 3dots menu.

I want to add the following for everyone who doesn't like white Interfaces.

This app has several themes including two dark themes
[Android Apps and Games] d0nald01:
where can i get the systemless adaway? the link the the front page is giving no mirror found
[Android Apps and Games] Ch3vr0n:
The systemless hosts zip file link works just fine here. 2 mirrors found
[Android Apps and Games] swallowingled:
Search the thread for "mirror", Hannibal226 posted something a few days ago.
[Android Apps and Games] GuardianUSMC:
Not quite sure why the attitude given that I have explained what the issue is and how it came about, so not whining, actually detailing the problem, the progress and showing it is not working trying to resolve it.

If it works for you - great - but that doesn't mean squat where others are concerned. And no, its not user error, I know what I am doing, been doing it for years, so maybe if you have nothing constructive to say, you should just let it be; unless you are post pumping and want attention, in which case, go nuts.
[Android Apps and Games] Markeee:
I'm running Pure Nexus 7 with SuperSU-v2.78-SR1 then flashed AdAway_systemless_hosts_v2.zip

all is well ads seem mostly gone really nice

I'm new to AdAway can i go and install the AdAway app now or did I need to install it first before AdAway_systemless ?
[Android Apps and Games] Ch3vr0n:
Read the first post again. Flash for 'systemless hosts file'.
[Android Apps and Games] Markeee:
Sorry trying to get a grasp Its saying I need to be running systemless root first ?

Flash for systemless hosts file

This flashable zip preps your device so that AdAway can remain pointed to /system/etc/hosts yet never actually touch your /system partition.

A prerequisite for using this is having one of the SuperSu systemless root installed.

Download: AdAway_systemless_hosts_v2.zip :: shasum = 1bbd9ce73adb0a433995e14c4642e75ae03a9bef
[Android Apps and Games] Ch3vr0n:
Well it preps the system, do that would indicate you need to flash it BEFORE installing the apk so AdAway knows where the new hosts file location is. You simply flash there zip, then install the apk and you're done.

Verstuurd vanaf mijn Nexus 6P met Tapatalk
[Android Apps and Games] Markeee:
Thanks did that seems to work perfectly
[Android Apps and Games] LiranL:
Great workaround that worked for my N5X

I forked [MENTION=2963865]sanjay900[/MENTION]'s repo, merged the latest master branch of AdAway and built the apk (debug). It works for me in a Nexus 5X and a Nexus 5 (NRD90S) with phh's superuser & busybox.

source: https://github.com/KreAch3R/AdAway

You should try a pull request to AdAway [MENTION=2963865]sanjay900[/MENTION] :)

Here is the apk (zipped just to avoid Github file name restrictions)

AdAway-v3.1.2-sanjay900-debug.zip

I hope there's no problem providing the apk. Test it and let me know.

https://github.com/AdAway/AdAway/issues/770
[Android Apps and Games] Dinolek:
Thanks, work great!
[Android Apps and Games] maybeme2:
Thank you for replying.

I did log dns requests and copied the url to adaway's white list. Several times before writing). Did not help. Yet, when I force stopped AdAway (from within the AdAway app) , WeatherBug worked correctly. Even though the host file was apparently still present. Which makes me think WB is detecting AdAway running (not the host file) and distorts the WeatherBug function.

Not being an expert I can only describe what happens.
[Android Apps and Games] Nergal di Cuthah:
I have no issue with weathbug app on the last three adaway (host) updates

I have all four of the default host sources downloading, and also use minminguard yet weatherbug works fine. Something else has occurred with your setup

(Nexus 6 Andr 6'0x)
[Android Apps and Games] NLBeev:
You make me curious. Installed WeatherBug with Adaway already running. No ads!

Disabled Adaway. No reboot; so only the hosts file was reverted/made empty. Than immediately Ads appeared at the bottom of the WB screen.

With Adaway I restored the hosts file and Ads were still present in WB. Reboot is needed.

After reboot no Ads in WB.

After this I doubt if WB is detecting Adaway.

(Nexus 6 with stock Nougat 7 - rooted).
[Android Apps and Games] maybeme2:
That is good to know.

Rooted nexus 5 running stock 5.1.1 with xposed, xprivacy, minminguard. Location disabled.

Based on the 2 above responses I reinstalled WeatherBug from scratch. When it asked for location I denied it and entered a zipcode. Halfway through entering the zip I got "Sorry. Unexpected error occurred" and I could not proceed beyond.

So the latest version apparently needs location to run. So I couldn't even get to where it used to conflict with Adaway.

Next, I restored WeatherBug from a Tibu backup. It already had a set location but kept downloading unsuccessfully (image 1)View attachment 3903910

I disabled Adaway, and WeatherBug worked fine (image 2)

View attachment 3903911

In adaway I downloaded new host file to re-enable it. Closed WeatherBug and removed it from the list (image 3)

View attachment 3903920

Restarted WeatherBug and was back to image 1 downloading forever.

Log file shows image 4

View attachment 3903921

Previous attempts only showed

The earthnetworks.com entry.
[Android Apps and Games] maybeme2:
Images 1 and 2 got deleted. Here they are. View attachment 3903923View attachment 3903924
[Android Apps and Games] NLBeev:
Seen the images and also your configuration.

I think Xposed can be the reason. Xposed changes system files and the framework.
[Android Apps and Games] maybeme2:
You are not using xposed?

Nirghal is using minminguard and says WB works for him.
[Android Apps and Games] Nergal di Cuthah:
I'd disable xprivacy and also (separately) check to see if it doesn't work when location is not disabled. I have location on. Also on AdAway I have server running, do you? It maybe that bug needs to believe it made it to a server
[Android Apps and Games] SaschaKH:
Well I kind of gave up. AdAway simply doesn't work under Nougat. So I went back to last MM ROM, copied system/etc/hosts, forward to N and copied the old hosts file back - works.
[Android Apps and Games] Ch3vr0n:
Systemless AdAway works just fine here on N

Verstuurd vanaf mijn Nexus 6P met Tapatalk
[Android Apps and Games] Aerowinder:
Just FYI, the latest version of Clean Master pretty much greenified all my system apps when I accidentally pressed the boost button. Had to restore to undo the damage. Recommend App Cache Cleaner instead.
[Android Apps and Games] Kevotwo:
its not the cache cause have wifi off and have ads, turn wifi on reload and there gone, then go back to mobile data and there back
[Android Apps and Games] ~kyle:
It's probably because of your APN settings. If you're using a proxy in your APN settings try deleting it.
[Android Apps and Games] OpenCollective:
Same exact problem here. Running CM 10.2 nightly on i9505 with AdAway 2.7, YouTube app still showing ads. Have tried cleaning the cache using both Settings and Cleaner Master, and rebooting the phone. Same problem.

Anyone? :confused:
[Android Apps and Games] hewlett777:
installed today. now I've a boot loop after enabling.

any suggestions? wiped cache and dalvik and reinstalling the rom. no joy.
[Android Apps and Games] DecypherT:
[MENTION=2594456]hewlett777[/MENTION], incompatibility with your ROM maybe?

Send from my Nexus 4
[Android Apps and Games] Dazzel:
Really great app!! Thanks guys!
[Android Apps and Games] cheryanne:
This does actually work - I'm on Telstra in Australia and using the Telstra.iph with no proxy apn + adaway blocks the ads whereas the Telstra.wap or telstra.internet with proxy apn + adaway does not. Adaway works FANTASTICALLY as always on my WiFi with TPG.

Galaxy Note 8.0 Xposed Build JDQ39.N5120XXCMG7 / Baseband N5120XXBMD9 / Kernel CivZ-SpherEngine-Rev on Telstra LTE
[Android Apps and Games] obiwannn:
does it block ads on both wifi and mobile data??? my previous ad blocker blocks ads on only wifi
[Android Apps and Games] ~kyle:
If you do this:

http://xdaforums.com/showpost.php?p=46013331&postcount=705
[Android Apps and Games] jeremyds45:
Is it just me or is anyone else getting ads on the new youtube update and on Google search? Until now I didn't get any ads on YouTube, I've updated the host files but still there's the ads... Anyone have an idea? Has Google figured out how to bypass ad blocking services? Thanks
[Android Apps and Games] rignfool:
I hate to hijack this thread... But crossbreeder blocks all ads for me... And will work on 4.3 with some minor modification... YMMV
[Android Apps and Games] bogdan1980:
I use old youtube 4.0.23, is the latest one without ads.
[Android Apps and Games] obiwannn:
dont understand what u mean kyle
[Android Apps and Games] ~kyle:
If your previous ad blocker only blocked ads on wifi it's because you have a proxy in your APN settings. You need to delete the proxy.
[Android Apps and Games] nyxzryu:
i had used lucky patcher for blocking any ads, does it work woth this ?

i mean, when i used both of the apps, will it works ?
[Android Apps and Games] 2uk3y:
afaik lucky patcher don't mess with host file, so in theory both should works

hope that help :)
[Android Apps and Games] kmlkz:
anyone know how to block daum ads (Ad@m) using adaway? Adaway blocks literally all ads from my phone except from this agency :p The app i'm using: "Study Checker" (sry cant post link yet) uses it... i added "daum.net" and "mobile.biz.daum.net" to my blacklist but to no avail :eek:

edit: woops i used the tcp dump thingy and managed to block all of them:p will report the sites at the adway forums
[Android Apps and Games] 2uk3y:
have u try *daum.net* ? this will block all ads that have that url in it.

hope that help :fingers-crossed:
[Android Apps and Games] Sh0X31:
Device: HTC One Android 4.3 (Sense & AOSP)

Problem: crashes if it enable the host file.
[Android Apps and Games] Holysmoke99:
nice work, I appreciate it
[Android Apps and Games] Pkt_Lnt:
I have Adaway on two Nougat installs with Multi-ROM with PHH SuperUser systemless root on a Nexus 6 Stock ROM and Pure Nexus ROM.
[Android Apps and Games] drp1:
It's working fine for me on Pure Nexus 7 (10 Oct). I'm using systemless SuperSU SR1 and flashed the AdAway systemless zip before installing the AdAway apk. SE Linux is set to permissive.
[Android Apps and Games] maybeme2:
Thank you for helping.

I disabled xprivacy and set webserver on (never used it before). No luck. Unexpected error in WB when I try entering a zipcode.

It's a bug in the new location code he put in the latest versions. I emailed the developer but he did not reply.

I'll just go with a different weather app for now. Worked fine for me for years.

Thanks for helping.

Went with weather and clock widget by devexpert which I used in the past. Works with no fuss.
[Android Apps and Games] SaschaKH:
Tried it on tupac4u's stock version and on CM14. First just the app and than tried some things with CF's SuperSU and some other things. The App always did run but gave me a copy error in the end. So I tried manipulating the hosts file directly, didn't work. In the end I just copied the old hosts file from MM and that worked. I think that is a very simple solution, so just saying that and hoping it might help somebody else too. Well I didn't tried the PHH SuperUser, maybe that had worked.
[Android Apps and Games] ragatv:
How to make a root?

How? I dont know this please help me
[Android Apps and Games] Pkt_Lnt:
Look here, find your phone.

http://www.xda-developers.com/root/

Also ask in the forums that are for your phone.
[Android Apps and Games] jcsww:
I don't have any issues on my various Android devices, including my Nexus 6 and Nexus 6P. I do remove system app bloat though, I am running complete stock other than being rooted with ChainFire's SuperSU. To get it to work, I simply installed AdAway on my rooted device, removed the system bloat (G+, Keep, Docs, etc.) from a fresh flash, reboot into TWRP, flash the systemless zip, reboot back into Android, and update AdAway to install the modified HOSTS file.
[Android Apps and Games] Terraalpha:
Hi all

Do I need to change the settings in AdAway v3.1.2 if I flash the AdAway_ systemless_hosts_v2. zip?
[Android Apps and Games] zarocks:
No
[Android Apps and Games] Terraalpha:
No? So I need the settings do not change, right?
[Android Apps and Games] requiiiem:
How i can download it?
[Android Apps and Games] NLBeev:
In cases Adaway has no permission to write to system/etc the ... systemless...zip is needed to bind system/etc to another folder mostly su/etc.

There is no need to change the settings of AdAway, but it is logical that the systemless-zip-file must be flashed before AdAway is installed.
[Android Apps and Games] Terraalpha:
OK, Thanks for your answer[emoji106]
[Android Apps and Games] timbohobbs:
Anyone able to block ads in fotmob ?
[Android Apps and Games] nigelhealy:
So I'm still seeing ads. Indeed on this very XDA site, and my keyboard is lagging.

I used:

- I'm Nougat

- I did a onetime mount /system as rw then while still readwrite a onetime "rm /system/etc/hosts" and a onetime "ln -s /data/data/hosts /system/etc/hosts" and a onetime tell Adaway to use /data/data/hosts write.

It all seems to work in that nothing complains but I see ads all over the place (including now).

What I do wrong?
[Android Apps and Games] NLBeev:
In Nougat AdAway can't write the hosts file to system/etc. See link below for more.....

That's why most of us flashed the systemless-hosts.zip before installing AdAway.

The 'zip' binds the folder to su/etc.

http://xdaforums.com/showpost.php?p=64208563&postcount=3393/
[Android Apps and Games] nigelhealy:
How is that any different from:

busybox mount -oremount,rw system

rm /system/etc/hosts

ln -s /data/data/hosts /system/etc/hosts

Then Adaway point to writing to /data/data/hosts

Pointing me to a file which appears to do the same basic commands?

Or are you basically saying you don't understand the above commands?
[Android Apps and Games] NLBeev:
No, just info for everyone and to you ' there are more roads leading to Rome'.

Try another method, when manually mount doesn't work.

EDIT. On my N6 the hosts file is in a folder with permissions 755 (su/etc).
[Android Apps and Games] pdgpereira:
I can confirm Adaway works on 7.1.1 on my 6P after installing the systemless zip.

Ads are definitely gone!
[Android Apps and Games] NLBeev:
Nice to hear. [emoji1]
[Android Apps and Games] PTHugo:
And it works on 7.0 as well people need to flash systemless don't ask me why I'm Nubby on this but is a done fact flash just after gapps and together with app it works

from jfltexx on RR using tapatalk
[Android Apps and Games] pkelly517:
Condescending remark aside, you have been pointed to a working solution.

Your solution doesn't work. The link has provided a solution for many.

Or do you basically not understand that working is better than not working?
[Android Apps and Games] tag68:
ln -s

Does symbolic link.

mount bind

Mounts a directory in a file tree.

While the result often is similar, they are two different things.

I personally am not sure that I understand all details and consequences. You may Google and read a bit about it. A start point may be here

Hint: Please try to avoid remarks about lack of understanding. It may come back to you in a bad way ;)
[Android Apps and Games] saturday_night:
Please add another hoster for download, AFH became so bad in the last months and it looks like they will never fix their problems. You have to try to download for minimum ten times to get the download one time working. There are much better free file hosters all over the world.
[Android Apps and Games] NYLimited:
Since you posted this on XDA.. Have you tried the downloads from xda labs?
[Android Apps and Games] saturday_night:
Oh, didnt know that there are downloads from xda labs. I sucessfully downloaded from afh but as i said about ten tries. Can you give me a link to the download section from xda labs for adaway? I need this about once a month for someones phone ;)

Edit: Ok found the download, i have never seen the link before xDD must be blind hahaha
[Android Apps and Games] NYLimited:
I usually just use the Labs app for forums as well as apps but for anyone else who might be looking, try this link:

https://labs.xda-developers.com/store/app/org.adaway
[Android Apps and Games] JohnnyICS:
"Can't open file" trying to install AdAway on Android 7

Hi there, trying to install AdAway 3.1.2 on my Android 7 Nexux 6 I get the message "Can't open file" (in ITA: "Impossibile aprire il file").

What's this?

Could be some trouble with my phone/system or with the apk?

I tryed with another apk downloaded from the web (not present in the Google Play market) and it works.
[Android Apps and Games] aankkurr:
This is not apk, you downloaded a file which you need to flash through recovery but before that you need to download apk file, check & read very 1st post again
[Android Apps and Games] facemob:
Ok I'm having a problem. I've rooted my Nexus 6p. I have root access with es file explorer and zanti. So I assume that root is working. I've flashed the AdAway systemless zip v2 but when I download AdAway and install it from labs it tells me that the phone isn't rooted. Can anyone tell me if I missed a step or anything?
[Android Apps and Games] nigelhealy:
1) use a root checker app to be sure you are rooted.

2) Sometimes in certain ROM/app combinations, root is being asked for too short a time relative to the app's tolerance to wait. It is rare, but I have seen it happen a few times. The workaround is to into your root app (say Supersu app) and set it to approve root always (supersu, settings, access, default access move from prompt to grant), then go back to the app asking for root (Adaway).

Adaway is very tolerant in waiting for root, so my guess is you didn't actually successfully root.
[Android Apps and Games] facemob:
Thank you for your reply. I used root checker basic and it says I am rooted. So I set the default in SuperSU to grant and AdAway still says it can't find the su binary.
[Android Apps and Games] facemob:
This is what I get in AdAway
[Android Apps and Games] nigelhealy:
Uninstall Adaway app, boot into recovery, clear cache, install adaway systemless zip again, boot, install adaway app.
[Android Apps and Games] maybeme2:
I am trying to understand. Does Adaway do anything on an android phone besides downloading and merging the hosts file?

In other words, if Adaway is uninstalled but the hosts file it created is first backed up and restored to its original location, is the protection provided by Adaway any less effective? (obviously other than updated host downloads).

Thank you.
[Android Apps and Games] facemob:
Thank you for your reply.

I tried that also and i am getting the same result.

I uninstalled adaway booted into recovery and cleared the cache. reflashed the adaway systemless zip then booted and installed the apk.

it didnt work.

the second time i repeated those steps and also cleared the dalvik before and after flashing the zip and it yields the same result.

and this is for adaway 3.1.2 with the supersu 2.78
[Android Apps and Games] nigelhealy:
a) you have a puzzle for sure.

b) you aren't on an already pre-rooted ROM like CM14? Multiple roots fight and confuse.

So my OnePlus2 is on CM14 currently, which is pre-rooted, and I must NOT root it, but my Nexus 4,5,7 and Pixel C are not pre-rooted so I install supersu.

Look at supersu log see if Adaway ever got to ask for root.

I have never had a problem with root with Adaway but I had one other app (EDS) which was very finnicky on type of root and only worked with supersu's version, that's my only idea. You have a rare problem.
[Android Apps and Games] facemob:
My Nexus 6p is completely stock. All I did was follow the guide to root it with my sole intention of using adaway. I had to unlock the bootloader and flash the recovery etc etc.

When I look in the logs for SuperSU AdAway doesn't request root at all
[Android Apps and Games] nigelhealy:
You're running stock so you're one of those.... :o

I suggest you enable the log in Adaway and post it here (as an attachment). Adaway, top right 3 dots, preferences, at bottom, debug, enable debugging. I've never needed so not sure how/where it saves logs.
[Android Apps and Games] facemob:
right now yeah i am one of those lol.

but i cant get into adaway at all whenever i open it i get the pop up screen and i have to exit.

so i dont really know what to do at this point but thanks for trying to help
[Android Apps and Games] NLBeev:
2 x Yes.

AdAway is a hosts file manager. The 'hosts' file is normally in system/etc. AdAway can't always write to system/etc (not enough space; Nougat). In that case the 'systemless_hosts.zip needs to be flashed first. The folder system.etc is bind to another location; mostly su/etc.

A rootexplorer will show in both folders 2 identical 'hosts'.
[Android Apps and Games] maybeme2:
Thank you for the explanation. That is very helpful.

So, once I have a hosts file I like, I don't really need to keep Adaway installed for the host file to do its screening. Correct? (except for updates).

On my rooted 5.1.1 system I find 2 identical hosts files (3.69 MB!) in

- system/etc

- data/data

(can't find any /su folder)

even though I only put the hosts in /data/data/ (which is where I found it when AdAway was installed).
[Android Apps and Games] Nergal di Cuthah:
Yes only needed for updates though that's a big reason
[Android Apps and Games] NLBeev:
When the hosts file is in data/data the app AdAway is only needed for updates. I am using this app as 'set and forget'. As long as I see no ads .......[emoji1]

Btw I use the AdAway-hosts-file also on my PC.
[Android Apps and Games] rogxd:
I deactivated (without uninstall) AdAway because I noticed battery drain. After this, no more drain... Consider that auto-update was disebled.

Is it normal? What could be the cause?

Galaxy S5 stock 6.0.1
[Android Apps and Games] githyanki:
In preferences, turn off daily update check and webserver. Those would be the only things that could possibly cause any battery use.
[Android Apps and Games] rogxd:
I noticed battery drain with daily update unchecked!!
[Android Apps and Games] githyanki:
Webserver ?
[Android Apps and Games] rogxd:
No. The only checked option was "verify update at start" and "allow whitelist".
[Android Apps and Games] NLBeev:
About battery drain of AdAway.

Settings-Battery doesn't show Adaway in the list of apps on my Nexus 6.

I don't think the app AdAway consumes a lot battery power.

When apps are connecting to internet every url is compared with the very long list of block-url's in the hosts file.

The more apps are active in the background the more power is consumed.
[Android Apps and Games] rogxd:
Ok I understand that the app AdAway does not consumes battery.

But if to stop the Ads the result is to have a battery drain, then I dont stop the Ads :(

Inviato dal mio SM-G900F utilizzando Tapatalk