yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] arty93:
I am still having issues I find with running adaway with Magisk. In magisk I have enabled systemless hosts. I have tried several different host sources that people have recommended on the thread but ads seem to get through. Is there something I am missing? Do I have to change anything in the adaway app itself? I have target hosts file set to /system/etc/hosts

thanks in advance
[Android Apps and Games] Nergal di Cuthah:
Where are you seeing these ads, Browser or Apps?
[Android Apps and Games] arty93:
All in app ads.
[Android Apps and Games] Nergal di Cuthah:
Most apps don't go through the Host file; they require a different layer of adblocking. Most of those are Xposed modules - I, for instance, use MinMinGuard to block app ads, and youtubeadaway to block youtube ads. This adaway is mostly used to block browser ads and catches a few apps but only a few.
[Android Apps and Games] arty93:
Thanks, that clears it up. I am running android 7.0.1 so I can't go with anything xposed related. Are there any alternatives for app blocking ads?
[Android Apps and Games] ktmom:
If an app is programmed to go directly to a IP address, that bypasses the use of the hosts file.

Specifically what apps are you having trouble with? What happens if you go to http://www.googleadservices.com in a browser?

Have you tried using the "log DNS requests" feature in away to see what calls the problem apps are making? If an app is just making a DNS call that's not included in the hosts source, you add the site to your blacklist then reapply the hosts.
[Android Apps and Games] arty93:
If I go to that link I get error 404. Most of my apps are having ads. Can you explain a bit more how to use that DNS feature?
[Android Apps and Games] ktmom:
The 404 error means the hosts file is applied correctly. If you haven't rebooted, then browser blocking will work, but the Java cache will not have been cleared.

Searching on "log dns requests" finds (amongst others) this post from earlier in the thread.
[Android Apps and Games] Andi_:
Tool / Improvment Import Text file into AdAware blacklist?

Hi there,

is there a way (maybe later) to import plain text into the blacklist?

would help not to put every single row in separately ...

thx in advance
[Android Apps and Games] GeorgeMG:
Hey guys.

There are couple of websites I frequently find myself wanting time on. I'd like to block them with AdAway. Could someone tell me how to do it?

I tried to manually edit the hosts file via Es file explorer but it gets overwritten by AdAway and gets deleted..

Thanks in advance :)
[Android Apps and Games] :
It's an easy-going: put the links of your sites to be blocked into the negative list in adaway (in adaway -> menu -> my lists -> negative lists)
[Android Apps and Games] ne0t:
I used adaway for quite some time (and enjoying it), but for some reason i had to unrooted my phone, and i saw the hosts file was restored back to the default one, why is this happening?

Is there anyway to keep the hosts file adaway created? at least it will help reduce a lot of ads?

Thanks.
[Android Apps and Games] ktmom:
The host file is "restored" because it wasn't actually overwritten. The magic of systemless root is that it protects the system partition for changes. The hosts file lives in /system/etc/hosts. You can download the sources list(s) you want in your hosts file, combine or otherwise edit (e.g. add custom sites (black list) or remove sites you would white list) and copy it via recovery or adb, overwriting the original one. This process will, in all likelihood, break safetynet and/or prevent OTA updates.

[MENTION=7254054]GeorgeMG[/MENTION] [MENTION=2044343]accuphase[/MENTION]'s post is correct. Where it says "negative list" in Adaway it's called blacklist. So it's 3-dot menu -> your lists -> tab for black
[Android Apps and Games] ne0t:
Thanks for the detail explaination, will try to copy the hosts file, i don't upgrade via OTA, so no problem, just need to see if changing hosts file will make my banking app stop working.
[Android Apps and Games] Antaroo:
Is it possible to install Adaway on phone with bootloader locker and unrooted (yet) ?

For example via fastboot adb command ? If so, which command exactly ?

Im running Android 6.0.1
[Android Apps and Games] peterlee928:
per adaway website:

"AdAway... needs Android >= 2.1 and ROOT access."
[Android Apps and Games] Nergal di Cuthah:
Adaway requires root to do its job. You can of course install it before rooting but you won't be able to use it.
[Android Apps and Games] DEVILOPS 007:
I think that if someone shared with you their hosts file or you go to the website like the stevenblack one then you could pull the hosts file and copy and paste the text and push the file back through adb and fastboot but I don't know the commands. Try googling adb pull and push commands.
[Android Apps and Games] Ch3vr0n:
Nope as the file is located in the system partition and ya can't access that without root

Sent from my Nexus 6P with Tapatalk
[Android Apps and Games] DEVILOPS 007:
Not true
[Android Apps and Games] Ch3vr0n:
Well ya can read it, ya just can't overwrite it afaik.

Sent from my Nexus 6P with Tapatalk
[Android Apps and Games] ktmom:
[MENTION=7494055]DEVILOPS 007[/MENTION] [MENTION=1754043]Ch3vr0n[/MENTION]

I am also pretty sure that without root, adb can not overwrite files on system. Through recovery (e.g. TWRP) you can though.

Maybe much easier for unrooted devices is DNS66.

---------- Post added at 17:32 ---------- Previous post was at 17:30 ----------

@Antaroo, see the link ^^
[Android Apps and Games] peterlee928:
[MENTION=5983631]Antaroo[/MENTION] since you said "yet", easiest solution seems to be to root your phone first... then install adaway ?
[Android Apps and Games] m.4_ts@yahoo.com:
This was on AdAway's App Help section, hope it helps..
[Android Apps and Games] rogxd:
Why AdAway requests root permissions every time I open the app?
[Android Apps and Games] jcmm11:
Check in SuperSU to see what the permission status is. You may have set it to ask each time.
[Android Apps and Games] rogxd:
But I never set it to ask each time...
[Android Apps and Games] JohnnyEighty:
turn off ask authentication again in options of supersu
[Android Apps and Games] Nergal di Cuthah:
Because root is required for AdAway to do its job
[Android Apps and Games] ChazzMatt:
But you can set it so it has root and doesn't ask you every time.

---------- Post added at 02:27 PM ---------- Previous post was at 02:26 PM ----------

Show us the SuperSu permissions screenshot.
[Android Apps and Games] Nergal di Cuthah:
That sounds more like a problem with your root manager. All root programs constantly ask for root when they need it, your actual question is "why do I need to grant root everytime I open AdAway" to which the answers for my SU manager (SuperSU) are "grant", "ask again in X min" or "deny". it sounds like your telling it to ask again in x min
[Android Apps and Games] ChazzMatt:
Well, not ME. I'm explaining to the guy who asked why it keeps asking for root. Your initial explanation that the app needs root to work was slightly patronizing, but yes funny.

I think he knows it needs root.

He just doesn't want to have to keep saying yes over and over and over...

Now you're on the right track, that his Su manager settings need to be examined. Which is why I asked to see a screenshot of his SuperSu permissions. Something is messed up.
[Android Apps and Games] Nergal di Cuthah:
Lol sorry I thought I was talking to the questioner. My initial post was neither meant to be funny nor patronizing and I apologize if either was perceived to be occurring. Also my initial interpretation was that the questioner wanted to know why it asked everytime; you fixed my understanding by explaining that you feel the questioner was asking about granting each time
[Android Apps and Games] rogxd:
See the attachment. Now is correctly managed in SuperSU, but often AdAway disappears from SuperSU (without manual deletion, obvious) and so if I open AdAway it requests root permissions again.
[Android Apps and Games] ChazzMatt:
Click on the Adaway permission on that list and make sure you choose "Grant" only and NOT "Grant + Time". If you accidentally choose "Grant + Time", the permission will disappear when the time expires.
[Android Apps and Games] rogxd:
Ok, I'm not an expert user but I'm not so stupid. In SuperSU the green # indicate that root permissions are always grant (otherwise there is a grey #).
[Android Apps and Games] ktmom:
Regardless, the problem isn't Adaway. As said earlier, it's your root manager, in this car SuperSu. If it happens again, you should ask in the SuperSu thread.
[Android Apps and Games] :
Constant updates hosts...every times I open up adaway so new update hosts. I was using sdmaid to clean up my phone including optimization for app databases. Could it would make problem adaway need to update new file hosts. Tired to update new file hosts..each day or 2 or 3 times per day
[Android Apps and Games] NLBeev:
As long as I don't see. ads, there's no reason to update.
[Android Apps and Games] Nergal di Cuthah:
That's gonna be one or some of your sources fault, not this app's. Did you change (add any) host sources? I use the defaults plus msvp and I'm not getting any daily bi-daily updates
[Android Apps and Games] :
I'm not change anything just add additional hosts.
[Android Apps and Games] peterlee928:
not certain if this addresses your issue, but you can try:

1) go to 3 dot menu at top right hand corner

2) select "preferences"

3) uncheck "check for updates"

4) uncheck "check for updates daily"

now you can check for updates manually whenever you want. the app will never automatically check for you.
[Android Apps and Games] mondohow:
Check the dates directly beneath your host url to see the culprits of the frequent updates (sbc.io and host-file.net). If they update too often for you, then either disable them or turn off automatic checking for updates in settings. If you disable any of them I'd recommend re-enabling at least once a month or every couple weeks. Completely your choice.
[Android Apps and Games] peterlee928:
or do a manual refresh. easily done by pressing the button that is to the immediate left of the question mark in the upper right hand corner. looks like 2 curved arrows in the shape of a circle.
[Android Apps and Games] Reconfigured:
What's the latest version? Last I heard was 3.2.
[Android Apps and Games] Pkt_Lnt:
Think about it. Google makes their money, how?
[Android Apps and Games] Shafwan7:
thank you [MENTION=3355398]mrRobinson[/MENTION] i love adaway so much ! it remove my ads.

thank you . and hope you can update adblock for in game ads. hehehe :good::good::good:
[Android Apps and Games] meyece:
But in chrome, there is adblock ?
[Android Apps and Games] Spartagek:
For now ....

Untill they ( google ) decide otherwise ..
[Android Apps and Games] Panos54:
actually yes! it was red for adaway and green for adfree!!! i wonder why! shouldnt it grant perimissions automatically?!
[Android Apps and Games] RokuP:
Hmm... Try clearing the cache of Asphalt 8, maybe. Uninstall, reinstall, etc. You may just have to play around with this one. Maybe even reinstall Adaway, as it may not be working properly. Make sure you have root and SU access granted to Adaway.
[Android Apps and Games] andro54:
Not anymore. Google decided to kick off adblock apps from chrome store. In fact they decided to control every apps to be Google ads friendly.

That's what happened to playstore too months ago.
[Android Apps and Games] adavit:
Depending on your settings. Usually it will come up and prompt you to either accept or deny permissions and if it doesn't come up or you click the back button or something it automatically denies the app. I've done that a few times when the prompt has taken too long to show up and accidentally denied permissions lol
[Android Apps and Games] speedyg0nz:
Is anyone running this successfully on kitkat and ART? I gave it a shot but AdAway 2.8 was stuck on a black screen after launching.
[Android Apps and Games] fantabox:
I do, N7 2013 LTE, 4.4 stock, rooted, ART, no problems so far!
[Android Apps and Games] mangojai:
I always had problems with Adaway 2.7 and 2.8 on Jelly Bean and now KitKat......

the only way for me was to downgrade to Adaway 2.3 and it now always works 100%.....
[Android Apps and Games] speedyg0nz:
Thanks. I played around with it a little more and it appears to be a problem with SuperSU and not AdAway. Working perfectly for me now.
[Android Apps and Games] Pkt_Lnt:
Do you have SSU 1.75 released today?
[Android Apps and Games] speedyg0nz:
Yes, I happen to be running this version. AdAway failed to work for me previously because superuser rights did not persist after flashing a new KitKat-based custom rom. Worked perfectly after I sorted that out.
[Android Apps and Games] nldxda:
I get alot of blocked content on the CNET app, how can I exclude it from adaway blocking??
[Android Apps and Games] Tusnal:
I am using 2.8 on KitKat but I notice it takes too long to apply. Anybody having the same issue?
[Android Apps and Games] 2uk3y:
add it to whitelist in AdAway.

no problem here
[Android Apps and Games] mrRobinson:
Worked for me. it failed to apply the first two times but on the third it applied. Though I think that is happening on other devices as well so nothing with ART seems to be causing issues.
[Android Apps and Games] HTCore:
I am having same issue.

Update: After restart and applying again I got "AdAway: Copy failed"
[Android Apps and Games] nldxda:
What do I put into the whitelist? What do I type?
[Android Apps and Games] Pkt_Lnt:
read post #1
[Android Apps and Games] sancamcal:
Which additional hosts can i add to adaway to make it works better??
[Android Apps and Games] ChazzMatt:
Three hosts come by default, used to be four. I kept the 4th one. Also people swear by the Steven Black (? Sorry if I'm getting the name wrong) host file, and I'm using a proxy for that one (the SBC one). In fact several people only use that one, and they are happy.

I am using five. Too many hosts can impact speed, so I surely don't want to have more than that.

You can see by the dates how often the various hosts are updated.
[Android Apps and Games] sancamcal:
I heard about StevenBlacks one, but i dont know how to add to adaway repository, because when i add it, inst local or online. Someone know how to add?
[Android Apps and Games] ktmom:
Amongst all of the posts on the subject that show up in a search would be this one.
[Android Apps and Games] Chaplan:
I use this:

https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts

It's working as expected with https here.
[Android Apps and Games] Bimm3r:
I have a problem. I use the site cex.io on my phone, problem is that with the ad blocker enabled it does not load. What can i do to make it work please? If i try to add in the whitelist "https://cex.io" it says hostname invalid. Don t know what to do thank you :)
[Android Apps and Games] Nergal di Cuthah:
Just to clear step one of the troubleshooting, did you reapply host file after adding to whitelist?

Second step is to

1 disable host file

2 go to log dns request (from three dot menu)

3 turn on tcp dump

4 immediately browse to cex.io

5 return back to adaway tcp dump off. Read log. One of those in log is preventing cex.io from loading so put on a detective hat and one at a time testing of the entries and whitelist
[Android Apps and Games] ktmom:
2nd question first, check http://www.apkmirror.comfor an older version.

If I understand, you want to compile a list of sources to use between devices? Sources are http urls. To the best of my knowledge, there's no intent available where you could script enabling sources. The app is designed for you enter them, then recompile the hosts file. So the best you could do to share the same hosts file between devices. It's located on the system partition (/etc/hosts).

Of course if you're stock and planning to take OTA updates, you shouldn't modify the system partition. Thus the point of systemless root. If you're using custom ROMs then it won't matter if you modify system.
[Android Apps and Games] androcraze:
The 2.9.2 version in Post #1 should work on 4.0 and earlier phones. That's the last version that was built for pre 4.1.
[Android Apps and Games] jcmm11:
All the blacklists, whitelists, source lists, and redirection lists are found in /data/data/org.adaway/databases/adaway.db

If you want to copy the host file I can tell you were to find it for SuperSU. For a system install it would be /system/etc/hosts. For a systemless install you want /su/etc/hosts (this file is bind mounted over /system/etc/hosts via the script in /su/su.d). For Magisk you're on your own.
[Android Apps and Games] zukers:
I have installed newest AdAway v3.2 but still have ads in Youtube - is any way to get rid ads in youtube?

My youtube version 12.23.60, android 7.1.1, phone is rooted.
[Android Apps and Games] githyanki:
No
[Android Apps and Games] peterlee928:
there are various apps that provide an ad-free youtube solution. doing a quick search in xda will provide more than 1 option. happy hunting.
[Android Apps and Games] Bimm3r:
Restarted the phone, and everything is fine. Thanks
[Android Apps and Games] Legendary Cryptid:
AdAway works great on my K7! Thank you!
[Android Apps and Games] DEVILOPS 007:
I used to have 13 sometimes 14 host sources but I decided to try your setup as that was way too many!
[Android Apps and Games] pkelly517:
Possible, but you have to search.
[Android Apps and Games] ChazzMatt:
One solution:

https://xdaforums.com/showthread.php?t=3449312

There are also others.
[Android Apps and Games] lindahl85:
How can i get whitelist to work for those pages? I have rebooted the phone but still being blocked.

View attachment 4212669
[Android Apps and Games] Nergal di Cuthah:
Did you reapply hosts after adding whitelist
[Android Apps and Games] Ch3vr0n:
Click the button again to redownload and apply hosts. Whitelist will get merged

Verstuurd vanaf mijn Nexus 7 met Tapatalk
[Android Apps and Games] lindahl85:
Yes i did and rebooted.
[Android Apps and Games] ktmom:
If you want to be absolutely sure it's whitelisting those urls, you could search the /etc/hosts file for those strings. If properly whitelisted, they won't be in the hosts file.

That said, what is the symptom you have? Is there an app or domain that is not working properly?
[Android Apps and Games] drguildo85:
Adaway use to work fine, then stopped blocking adds, ive tried clean reinstall of everything, still not blocking

Im running lastest stock 7.1.2, root, supersu 2.82, adaway v 3.2
[Android Apps and Games] ChazzMatt:
Then something has changed on your end. You must have browser data saver on, or some proxy server -- whether you purposely did it or your carrier/MNVO did it.
[Android Apps and Games] drguildo85:
No data saver or proxy on my side, been through threads and threads, tried a lot of thing, still no fix
[Android Apps and Games] broomer68:
Things to check:

Size and location(s?) of the hosts list

It should be big and only 1 anywhere in the phone.

Did you install systemless root?

Check dns settings. Also in your router.

Verstuurd vanaf mijn ONEPLUS A3003 met Tapatalk
[Android Apps and Games] drguildo85:
Alright, seems like it was my hosts, added 1 other, seems to have fixed my issues, i dont quite get it since i was always using the same and most popular list.

Thanks for the time and help anyway :good:
[Android Apps and Games] rypz79:
Hi,

I have a problem with the app.

It doesn't keep the changes e.g. enable webserver (web server is running) then press back (exit app) and run it again and the webserver is not running.

The same goes with download files and apply blocking everytime you exit and enter the app it says that you need apply new hosts. it seems that it doesn't block all ads and keeps their frames.

The app was initially installed as a user app the I've populated the system/app with the same directory and apk file in it (rw r r permissions).

It became a system app but it didn't solve the problem.

Thanks alot
[Android Apps and Games] ktmom:
Try grabbing a logcat while you're entering, updating hosts and editing the app.
[Android Apps and Games] rypz79:
Problem with writing APN.

Probably permissions.

TNX ALOT

:cool:
[Android Apps and Games] ktmom:
What are the permissions on the hosts file?

Edit:

And, are you using Magisk or SuperSu? Are you using Magisk hide?
[Android Apps and Games] rypz79:
I've "played" with it so now it's again a user app.

permissions for the base.apk and hosts file are 0644 rw r r.

I'm using SuperSu 2.82

I have Android 7.0 on SM-G900F

I've chosen not to install AdAway on Aroma (system app)

TNX
[Android Apps and Games] anmar21:
Hi,

Ads are not being blocked properly on my device. Hosts file is fine, AdAway doesn't show any error. However it blocks ads only once in a while for a period of time and then ads are back again.

OnePlus 5 (OOS 4.5.5) & Magisk 13.3. On my Nexus 6P I don't have any issue.

Thanks.
[Android Apps and Games] NLBeev:
AdAway only manages the hosts file. AdAway doesn't block ads; the hosts file and Android are responsible for that.

When you use apps that passes the hosts file ads are not blocked.
[Android Apps and Games] anmar21:
Yes and that's why I browse the same website to test on both devices. On my OP5 sometimes ads are blocked and sometimes they are not. On my N6P I don't have any issue, I don't see any ads at all.

I'm not sure if it's related to the OS since that's the only difference between the 2 setups.
[Android Apps and Games] zeft64:
Systemless host isnt working for me. I have the latest magisk installed and when I go to preferences in adaway the option for systemless host is gray and can't be selected. Help please?
[Android Apps and Games] NLBeev:
One of url's in the hosts; check on both devices the link. To make sure the hosts file is working.

http://googleads.g.doubleclick.net
[Android Apps and Games] Akhilesh S V:
Enable Systemless host in Magisk Settings
[Android Apps and Games] NLBeev:
In this thread I've read that Magisk handles the systemless mode.
[Android Apps and Games] Lownita:
No need to set it up in adaway, just enable it in magisk settings and install hosts as usual after that. Magisk does the trick.
[Android Apps and Games] Bewildered Wolf:
I've ads in YouTube and some games too even after adaway. I've using adaway from a long time. Something like this didn't happen earlier.

But on my OnePlus 5, the ads are still there.
[Android Apps and Games] githyanki:
Then you did something else earlier since adaway has never blocked YouTube ads.
[Android Apps and Games] Bewildered Wolf:
Not even youtube, even on other apps ads are there.
[Android Apps and Games] peterlee928:
may try adding in additional hosts. or blacklisting your own lists.
[Android Apps and Games] siba01:
Check APN setup... Probably your carrier uses proxy.

Enviado desde mi Mi-4c mediante Tapatalk
[Android Apps and Games] martyfender:
You can't block ads in youtube with adaway but in some apps and games you can use adaways log DNS request to see what adds are coming through while the app or game is running and choose those to add to your blacklist. Some apps and games use other means which you can't block. If your device can use xposed there are add ons to block ads in youtube and apps. Not all devices are compatible with xposed though. I found, at least on my older Intel 5.1.1 tablet that xposed caused more problems than it solved. For example, higher cpu useage and shorter battery life. I reverted back to a nandroid back because of that.

I had these supposed battery saving modules installed:

amplify

appopsxposed

power nap

greenify xposed

They actually reduced my battery life.
[Android Apps and Games] realista87:
why adaway uses the redirect to 127.0.0.1 ......instead the [MagiskModule] Unified Hosts Adblocker uses 0.0.0.0 ???

what's better in terms of performance or appearance? i noticed that using the unified host..... on chrome i see some "broken" ads.... i don't she the real ads BUT A BLANK SPACE with a little icon, indicating a corrupted download.

is the 127.0.0.1 redirect better in TERMS OF APPEARANCE?? using adaway i never facedthe problem of blank ads ....idem with icon of rorrupted images ecc.....