yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] ToraxOutlaw:
Hey guys. I have created a HOSTS file for any UK users here who use 4od, blocks all adverts, there is a short delay while the adverts skip but other than that it works perfectly. I have Adaway setup on my Chromecast w/ Google TV and it works brilliantly.

Adaway 4od HOSTS

I have a question, I have the Adaway default hosts enabled, I added my 4od hosts and one called GoodbyeAds but does anyone know of any HOSTS that block the freevee ads and/or the amazon prime video ads?
[Android Apps and Games] DiamondJohn:
You should maybe check / search for more "channel4" type hosts in https://raw.githubusercontent.com/hagezi/dns-blocklists/main/domains/pro.plus.txt

I no longer use AdAway as my host file is waaaaaay too big. I have been lazy and haven't updated my hosts file for a many months now, but have yet to see any ads. I also use a custom DNS I have listed above. I was surprised when I used the DNS alone, ads broke through.
[Android Apps and Games] Fannste94:
Try live streams
[Android Apps and Games] Fannste94:
@PerfectSlayer Any updates and fixes soon? Apps keep having connection problems with VPN
[Android Apps and Games] Fannste94:
View attachment 6086028
[Android Apps and Games] jastram:
I use Adaway non-rooted via VPN on a xiaomi redmi note 13 pro+. It works fine, except that it does not automatically start after a reboot. Any ideas why not?

I did:

Selected "Background autostart"

Set Battery saver to "No restrictions"

Set Always-on VPN in preferences

Set Block connections without VPN" in preferences

Ever since I set the Always-on VPN, I get a message after reboot (before providing the unlock code for the first time): "Disconnected from always-on VPN — Change network or VPN settings".

Adaway is supposed to start automatically after a reboot, right?

Thanks for helping!
[Android Apps and Games] Wolfcity:
Most probably an android problem. Maybe open an issue report on GitHub.
[Android Apps and Games] Fannste94:
New reports on GitHub https://github.com/AdAway/AdAway/issues
[Android Apps and Games] jastram:
AdAway (non-root) paused after boot and after freeing memory of Adaway (MIUI 14, Android 13) · Issue #4082 · AdAway/AdAway

Is there an existing issue for this? I have searched the existing issues Current Behavior I use AdAway non-rooted via VPN on a xiaomi redmi note 13 pro+. It works fine, except that it does not auto...

github.com
[Android Apps and Games] Sgtmack:
I have been using Adaway, both rooted and non root versions, for several years. My phone broke last week, and while I wait for a replacement I am using a borrowed stock Oneplus 9. It is running Android 14, with no other VPN apps. When I install Adaway, it installs the root version, so I get a systemless host error. It used to install the correct version automatically, is there any way to force it to install the non root version?
[Android Apps and Games] Nergal di Cuthah:
It's always blatently (NEVER automatically )asks me on a data clear, just tried it and got

View attachment 6092346

Clear data and choose vpn if you want vpn
[Android Apps and Games] Sgtmack:
That was easy, Thanks!
[Android Apps and Games] Fannste94:
Can you please fix the problems from GitHub? 😕 https://github.com/AdAway/AdAway/issues
[Android Apps and Games] guhvanoh:
Have you tried sending a patch in to fix any of the issues. I'm sure the OP would welcome them if they are correct...
[Android Apps and Games] Fannste94:
Im not a developer
[Android Apps and Games] osm0sis:
Not with that attitude! 😛
[Android Apps and Games] Fannste94:
Always on VPN keeps disconnecting

View attachment 6101147
[Android Apps and Games] Fannste94:
Started showing ads

View attachment 6101420View attachment 6101421View attachment 6101422View attachment 6101423
[Android Apps and Games] pritkudale:
Same for me. It's started showing ads on rooted device too. And it's get auto disabled. Also it shows ads when it's enabled. Never faced such issues in last 3-4 years.
[Android Apps and Games] Nergal di Cuthah:
Private dns? Dns over https? Vpn?
[Android Apps and Games] pritkudale:
I don't know. I just selected root based ad blocker.
[Android Apps and Games] jmindset:
Same. It was working before. Now YouTube ads are everywhere.

---------- Post added at 10:11 PM ---------- Previous post was at 10:08 PM ----------

Thanks for the recommendation. It worked! Annoying ads are gone once again!
[Android Apps and Games] jedial23:
Works very good in my Sony Xperia SP. Nice!
[Android Apps and Games] kennethlam:
adblock +, or this one is better???
[Android Apps and Games] sohebq:
Adblock sucks. Doesnt work at all for me. This is way better l. Very easy to use

Sent from Galaxy Note 3 (The beauty & beast)
[Android Apps and Games] FrutasX:
Hello,

I have a LG gpad with CM11 and use AdAway 2.8.1. But don't block YouTube videos. I want to know if I'm using the right AdAway and what I've to do to fix it? I read something about I few posts before but I don't understand if is for my AdAway.... And how to do it?

If anyone can help me....

Regards

Enviado do meu LG-V500 através de Tapatalk

---------- Post added at 08:05 PM ---------- Previous post was at 08:00 PM ----------

Where can I find that?

Enviado do meu LG-V500 através de Tapatalk
[Android Apps and Games] RokuP:
Start here:

http://xdaforums.com/showthread.php?t=2714053
[Android Apps and Games] worknman:
Adaway and Youtube

In regard to Adaway no longer blocking Youtube ads, are there any other solutions than having to install the Xposed Framework? Adaway was the only reason I rooted my Galaxy Tab Pro, and Youtube was the only reason I installed Adaway. So now this app is pretty much useless for me.
[Android Apps and Games] FrutasX:
Ups.... I install.... Then what.... I don't know what to do? Lol

Enviado do meu LG-V500 através de Tapatalk
[Android Apps and Games] RokuP:
Yes, install XPosed Installer APK then:

Step 1: Tap Install/Update

Step 2: Download YouTube AdAway Module

Step 3: Enable module and reboot
[Android Apps and Games] Deeco7:
Anyone know how to Whitelist 'Google Ads', I've tried 'www.googleadservices.com', but it's still blocked.
[Android Apps and Games] bberryhill0:
*.googleadservices.com but I wonder if *googleadservices.com would be better.

Swyped from my Verizon LG G2 using Tapatalk Pro 4.5.2
[Android Apps and Games] USBhost:
Put I.ytimg.com in black list to block YouTube ads
[Android Apps and Games] USBhost:
i was wrong I.ytimg.com did not help

i will look for a how to block ads on youtube

in adb logcat it looks like youtube uses ping now hmm
[Android Apps and Games] jmindset:
Yeah as someone else on this thread pointed out, the xposed module "YouTube adaway" does the trick.
[Android Apps and Games] USBhost:
True but I don't won't give up ART
[Android Apps and Games] Mihai B:
Xposed Framework only works under dalvik. After using ART for some time and as ART is Android's future, going back to the sluggishness of dalvik is a no-go, at least for me. So I am waiting for an adaway update that would block YouTube ads again, or at least a workaround.
[Android Apps and Games] jmindset:
Let's hope adaway gets an update to block YouTube again. That's why I got it. Its awesome.
[Android Apps and Games] jr67:
Actually adaway doesn't need to be updated the host sources need to update to include YouTube again.

In the meantime see here: http://xdaforums.com/showpost.php?p=54603979&postcount=1911
[Android Apps and Games] jmindset:
Thanks for the recommendation but I already found another method using an xposed module. I might give MOAAB a try sometime. So far the adaway and xposed "YouTube adaway" module have worked excellently.
[Android Apps and Games] USBhost:
This works but I do still get ads like every other 15 videos

I.ytimg.com and this
[Android Apps and Games] Nergal di Cuthah:
No in phone settings or browser settings. Both those things can bypass hosts.
[Android Apps and Games] pritkudale:
Thanks for helping. Got the issue. It was regarding adaway not able to write the host file with ksu. Got it fixed with https://github.com/backslashxx/bindhosts?tab=readme-ov-file module.
[Android Apps and Games] Nergal di Cuthah:
My next question was going to assume magisk and ask if you had systemless hosts module in magisk. Same idea as your fix so I'm glad you got it figured.
[Android Apps and Games] DiamondJohn:
If you use the default lists, you will cover a majority of hosts, but far from every ad host. AND it depends how long it has been since you last updated your host file. When I had a small list, I noticed ads would not occur after i did an update. I now have a HUGE list and use the DNS servers I have documented somewhere above. I can't remember the last ad I have seen. Although my host file is HUGE, it is now embarrassingly old. I *think* my DNS setting catches the newer hosts.

The advertisers know about host blocking so update their delivery hosts often.
[Android Apps and Games] max101010:
Can we have a feature to log all the requests made by any app, like a proxy? there's an option to log DNS requests but I would like to add a proxy-like request logging on top of that
[Android Apps and Games] Nergal di Cuthah:
Just to be sure, this would only work in vpn mode as hostmode no data passes through adaway, it only provides the list of hosts.

The log dns is just watching android's dns client and spits out that part of the log
[Android Apps and Games] max101010:
Rightly said. Is it possible to tap into the android code that can provide the complete request data as well? I'm referring to the working of adaway in root mode where the host file is modified and then no data passes through adaway
[Android Apps and Games] drnightshadow:
Try rethink firewall

Try rethink firewall. Sorry for off topic!
[Android Apps and Games] max101010:
It's a good app, but I see that there's no option for a local proxy. And moreover I like adaway so don't wanna switch to another app :)
[Android Apps and Games] drnightshadow:
I'm using it just for IP/DNS analysis log! If your using root method than you can run both, so far no issues.

I also love adaway, from the earliest version,like from android 4 and maybe older and to nowadays and probably stayed on adaway for ever.
[Android Apps and Games] max101010:
I'd like to take up the feature to provide full request analysis in VPN mode for the android app
[Android Apps and Games] drnightshadow:
This rethink runs only in VPN mode!
[Android Apps and Games] max101010:
Yes. I don't know of a way to make it run in non root mode
[Android Apps and Games] hks18psigst:
I found this host.txt with 2 million hosts. Is this overkill and not worth using?

https://divested.dev/hosts
[Android Apps and Games] rodken:
I don't know, but a overly large list just might contain outdated or incorrect entries, accidentally blocking legitimate sites. Not to mention, it can slow down your browser as your device has to check each entry. It might be overkill for some users because having a massive list might not be significantly more effective than a smaller one.

Some would argue that the hosts entry no matter the size would be written to DNS cache. It makes or could make name resolution faster.

You can delete or reset the hosts file to prove the theory.
[Android Apps and Games] DiamondJohn:
It may be too big for adaway to process.
[Android Apps and Games] Nergal di Cuthah:
It took a lot of time to apply (i don't actually know it finished applying) only 20k entries added (but again that may have been due to not finishing apply)

I'll try again later

Edit: Tried again 45 seconds to apply and in the end added about a million 25k to defaults

Edit2: no noticeable time delay and all ads blocked on https://canyoublockit.com/extreme-test/
[Android Apps and Games] hks18psigst:
Screenshot
[Android Apps and Games] Nergal di Cuthah:
See my above edits

Will drive with it a couple of days to see if there's any hiccups
[Android Apps and Games] hks18psigst:
Great news. Thanks for testing
[Android Apps and Games] Nergal di Cuthah:
Blocked doordash from opening. reverting to without the list, will try to find the culprit later.
[Android Apps and Games] hks18psigst:
Blocked a meter of price suggestions on KBB.com

Edit: also blocked cart/checkout on Panera app.
[Android Apps and Games] Nergal di Cuthah:
Seems like this list is pretty aggressive.
[Android Apps and Games] eng3:
Using the xiaomi 14 ultra. Rooted.

Installed apk from this thread.

After reboot,it works. But after a while it just stops. Going into app, everything seems fine. I try pause and unpause and still didn't work.

After reboot, it seems to start working again but quickly stops

I tried turning off battery saver for the app but it didn't help. I thought it just changes the hosts file so app should be needed after hosts file is changed
[Android Apps and Games] Nergal di Cuthah:
As far as root version this is true. I added a "not" it seems you forgot, if I'm wrong please correct me.

Do you have any of the following

A vpn

Dns over https

Private dns

Web site accelerator/pre-cacher
[Android Apps and Games] eng3:
Oops forgot that

And forgot to mention no VPN,DOH, private DNS

And no web accel.

This happens in other apps too, not just the browser. And it works at first then stops. That's the strange thing
[Android Apps and Games] Nergal di Cuthah:
Does xiaomi ultra (i assume custom rom not stock) have its own host that it's injecting? When you see ads next immediately open the host file and see if it's enpty/default/not-your-lists.

Security software?

What sources? Just the default 3?
[Android Apps and Games] eng3:
Yes custom rom.

I tried opening the hosts file from your app and it showed the overrides.

Maybe the rom has hosts elsewhere but then it wouldnt work at all

Default
[Android Apps and Games] Nergal di Cuthah:
Not my app, lulz, I'm just a brainstorming user like you.

Do you try to open it before or after unpausing it? Are you unpausing it (is it switching to paused)

If the host file shows correct then you definitly have something taking over the url to ip number translation.

Maybe ask in your rom's forum/thread if something is interfering with hosts
[Android Apps and Games] DiamondJohn:
IF you only have a single host source, then the app is mostly redundant. However, if you have more than one and/or you have a whitelist (which is what you will probably require with a huge host file) then the app will merge the host files and remove hosts from your big block list.

The more aggressive the block list, the more "aggressive" your allow list needs to be, and the more broken things you may need to accept or work around. For example, I have a huge host file which blocks a lot of tracking. Whee I lose, is that in google news, the links pass through tracking URL's, so many links don't work. If I am really interested in the story, I do a normal web search to get directly to the page without the intermediate tracking URL.
[Android Apps and Games] Nergal di Cuthah:
Yup, I'm on the same page as you, i just didn't want/havetime to use that source and build an allow list. Just wanted to prove/disprove its number of hosts didn't cause adaway to throw up or browsing to have a time hit from such a large file.

However as it blocked a crucial app for me, and with the afore mentioned diswant and lack of time, i moved no further with it
[Android Apps and Games] zgfg:
Open directly

/etc/hosts

or

/system/etc/hosts

to see if redirections are (still) mounted from

/data/adb/modules/hosts/system/etc/hosts

App shows this last above
[Android Apps and Games] elna.nitz:
It's worked to me too, but it very aggressive, for example it's blocked me the whole Facebook app...

Any solution?
[Android Apps and Games] zgfg:
Use less aggressive hosts source or whitelist (Allow from the main AdAway screen) particular hosts
[Android Apps and Games] elna.nitz:
Do you have better host source? since the default don't works at all..

Or how I recognize the Facebook source or an other blocked sources for adding to whitelist?
[Android Apps and Games] zgfg:
My phone is busy now (mining prints for PIF) but this is a backup of my hosts configuration from the last year. It should be more or less up-to-date with what I use, maybe I have few more under (manually added through Block and Allow in the app):

"blocked": [],
"allowed": [
{
"host": "bit.ly",
"enabled": false
},
{
"host": "s.youtube.com",
"enabled": true
}
]

Download the attached adaway-backup json, import from AdAway Preferences, Allow to update and reboot

If you're not on Xiaomi, you can remove "GoodbyeAds Xiaomi extension"
[Android Apps and Games] Nergal di Cuthah:
Try to white list these (from adaway wiki)View attachment 6106186
[Android Apps and Games] DiamondJohn:
I actually aim for the opposite and BLOCK facebook (and other social media) as much as possible. I have a BLOCK list i built years ago but still use today But, it is old.

an d to cover more than just facebook, eg whatsapp

https://www.github.developerdan.com/hosts/lists/facebook-extended.txt

I use them as blocklist, but AT YOUR OWN RISK, *maybe* as whitelists.
[Android Apps and Games] eng3:
I checked those locations but still seeing ads.
[Android Apps and Games] DiamondJohn:
Have you tested pinging a blocked host while in a shell?

Is it the same ov er WiFI & mobile data?

I had issues a while back, where blocking worked over wifi, but failed when it switched to mobile data.
[Android Apps and Games] ew:
I am trying to restore a json backup (of block rules) that I did a few days ago. When I do so, I get an error:

"Failed to import backup. Is it's format correct? Check logcat for more details"

Same thing happens if I try to create a new backup and restore it.

I did a logcat, trying to be real quick about starting and stopping it, but it still as about 35,000 lines. Any idea what to look for?

Thank you in advance for the assistance.
[Android Apps and Games] zgfg:
Attach the adaway-backup.json
[Android Apps and Games] ew:
It is attached, and thanks for the help.
[Android Apps and Games] DiamondJohn:
on an unrelated note, the following is my list of blocks specifically for Waze. Use at your own discretion.

advil-gae.gcp.wazestg.com
advil.waze.com
il-advil.waze.com
row-advil.waze.com
advil-dev-gae.gcp.wazestg.com
ads-resources.waze.com
ads-resources-legacy.waze.com

I've pulled them all from the waze config file, over multiple years.
[Android Apps and Games] Nergal di Cuthah:
Yup i can't restore yourS i can restore mine.
[Android Apps and Games] ew:
Thanks for checking. I am not sure what the issue may be. I also tried a few online json validators to check if my file was valid - they all say that it is (https://codebeautify.org/jsonvalidator is one of the sites that I tried).
[Android Apps and Games] Nergal di Cuthah:
Try to import mine, i wonder if the date in file name is the problem
[Android Apps and Games] ew:
Thanks, but I a a bit reluctant to import your file. The one I have includes some sites that I have added, and I don't want to loose them.

I did try renaming my file to "adaway-backup.json" (just like the default) and it still fails to import, so I don't think the issue is with the name.

Thanks for the help
[Android Apps and Games] Nergal di Cuthah:
Yup just came back to say renaming didn't work
[Android Apps and Games] hks18psigst:
How do you find links to whitelist.? I used to have a setting in developer options. But it's gone
[Android Apps and Games] Nergal di Cuthah:
If you're talking about root adaway

Turn off blocking, open adaway and click on "show dns request log" press the record button and immediately open the app you want whitelisted. Go back to the log and press the pause button.

Look at the list and if nothing stands out (in which case just add it to whitelist) add from log one at a time with adaway enabled, reapplying blocking each time and throwing away the app to reset its dns requests, untill you find the one that allows the site/app.
[Android Apps and Games] hks18psigst:
That's what I'm looking for but doesn't work for me
[Android Apps and Games] Nergal di Cuthah:
What's the app/site
[Android Apps and Games] Nergal di Cuthah:
You may have to restart the device after every change though I've never had to
[Android Apps and Games] hks18psigst:
I mean the record/pause isn't logging anything
[Android Apps and Games] Nergal di Cuthah:
What app I'll try

Is it in this list https://github.com/AdAway/AdAway/wiki/ProblematicApps
[Android Apps and Games] Nergal di Cuthah:
Usually that's a sign that you need to restart device after adaway pause
[Android Apps and Games] hks18psigst:
Awesome thank you. Restarting worked
[Android Apps and Games] Nergal di Cuthah:
I don't know why, just throwing away app has always work for me, but not others. I mean i was even able to take the log for Xwitter without pausing adaway. Glad you got it to work.
[Android Apps and Games] hks18psigst:
It's back to not working again. So weird
[Android Apps and Games] zgfg:
I didn't test but I don't know why do you have URLs in some labels - maybe it doesn't de-serialize correctly with that:

Usual:, label/name = StevenBlack Unified hosts:

{
"label": "StevenBlack Unified hosts",

"url": "https:\/\/raw.githubusercontent.com\/StevenBlack\/hosts\/master\/hosts",
"enabled": true,
"allow": false,
"redirect": false
},

Unusual, label/name =

http://winhelp2002.mvps.org/hosts.txt

:

{
"label": "http:\/\/winhelp2002.mvps.org\/hosts.txt",

"url": "http:\/\/winhelp2002.mvps.org\/hosts.txt",
"enabled": true,
"allow": false,
"redirect": false
},

Try instead (or re-name in AdAway and then backup and restore), , label/name = Winhelp2002 mvps hosts:

{
"label": "Winhelp2002 mvps hosts",

"url": "http:\/\/winhelp2002.mvps.org\/hosts.txt",
"enabled": true,
"allow": false,
"redirect": false
},
[Android Apps and Games] ew:
Thanks for the great idea. I tried that and unfortunately it did not work. Interestingly, (and I may have mentioned this) if I do a new backup, that is exactly the format of the file. Meaning, I can't make a backup and do an immediate restore.

If I could just figure out where - in the logcat - to look for the error. As I mentioned, the logcat file is so large that it is almost impossible to search.
[Android Apps and Games] eng3:
I wasn't exactly sure how to determine the host in Android chrome.

I tried long pressing on the ad and selecting open image in new tab.

I can see the image in the webpage but I'm the new tab it fails. Pinging the host also fails.

I thought maybe the ad is old and I'm cache but then why wouldn't it load in a new tab. I also can reload the page and keep getting new ads, they prob aren't all in cache. Sometimes if I pause and unpause, there ad will stop loading but others will continue

So I don't understand
[Android Apps and Games] Nergal di Cuthah:
Sounds like the image's url isn't blocked but the url it links to is blocked. This can best be observed by google search ads, the ad shows but if you click it fails
[Android Apps and Games] eng3:
Sorry, I wasn't clear (typing on a phone while boarding a flight).

I long pressed and selected "Open IMAGE in new tab" so it was trying to open the image and failed in the new tab eventhough it succeeded on the webpage.

I did not click on the ad link.
[Android Apps and Games] Nergal di Cuthah:
Maybe it's location is properly blocked but the website using it is using IP address in calling it?
[Android Apps and Games] eng3:
When I click open image in new tab, doesn't chrome read what's in the page source for the image (that it just loaded) and then open that? If the website was using the IP, I would think chrome would have tried to do the same
[Android Apps and Games] hxxmor:
Can someone give me a full updated tutorial on how to setup AdAway?
[Android Apps and Games] Nergal di Cuthah:
Root or VPN?
[Android Apps and Games] hxxmor:
what is the difference sorry? Btw I just got rooted

Sent from Pixel 7 using ReLabs
[Android Apps and Games] Nergal di Cuthah:
Root is host files (if you're rooted then probably this method is best)

hosts (file) - Wikipedia

en.wikipedia.org

Non-root takes up your vpn slot and all your traffic is routed through it.

Virtual private network - Wikipedia

en.m.wikipedia.org

What root method did you use (magisk, apatch, kernelsu)
[Android Apps and Games] hxxmor:
I rooted with magisk