yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] matheusafonso:
I know Vanced, but it crashed everytime I used on my non-rooted S7. Never tried on S9.

Thanks for the quick answer, I'll look into the older posts, it's just 813 pages to read, lol.

Thanks bro.
[Android Apps and Games] zgfg:
You can use Search in the thread - and if you read just few pages back, somebody recently similarly asked about YT (newbies do every few weeks)

YT pushes their ads through the A/V stream you play, hence they cannot be blocked by blocking certain DNS or IP addresses

Btw, Vanced has also the root and non-root versions (substantially different)
[Android Apps and Games] matheusafonso:
Yes, I just discovery the root and non-root version of YT Vanced, and the "Search in the thread". Thanks for the support.

(btw, I think tiktok uses the same way to pushes their ads. And there is already versions of it without ads.)

Thank you for enlightening me.
[Android Apps and Games] ew:
Well - after lots of head scratching, this is what I came up with.

I was not successful in figuring out a tasker broadcast command to turn ad blocking on/off. If anybody has a shell script that would do this - please let me know what it would be and I think I would be able to use that in tasker - either as a shell command or to figure out the tasker broadcast command that would be used.

What it did find is - using the information from https://android.stackexchange.com/q...sing-another-applications-quick-settings-tile, the following command will toggle adaway.

cmd statusbar click-tile org.adaway/.tile.AdBlockingTileService

This command can be executed via adb (in a terminal emulation session) or via the tasker shell command. I found that I had to execute as root when executing from tasker.

On my device, I found that I didn't need to expand the quick settings tiles before executing, but (per the article) that may vary.

This (toggle) is not as useful as a command to turn on/off, but it is something - and I figured it may be of help to others.

Again, if anybody has a shell script command that will work, that would be most useful.

Thanks again for the assistance.
[Android Apps and Games] andrea0807:
Hello I'm using adaway 5.7.0 root method on my poco f2 pro with official host sources.

Since advertising on some sites and even on an app still continues to open, I tried other host sources that are on this page but it didn't help.

HostsSources

AdAway is a free and open source ad blocker for Android. - AdAway/AdAway

github.com

Anyone know how I can do?
[Android Apps and Games] ipdev:
Just the basic steps.

Proxy server bypassing the local hosts file?

If on Mobile, APN settings?

An alternative ad blocking that is interfering or bypassing the hosts file?

Ads are called by IP address?

Ads are served from the same server as the content?

Local ad cache?

Some kind of data-saver enabled?

---

Make sure adAway is working.

Enable adAway and ping one of the blocked hosts, make sure it returns localhost (127.0.0.1) instead of the true IP address.​

A few weeks ago, I posted about using dns logging and a few reasons why ads might be coming though or can not be blocked using dns blocking.

Post # 16,223 - Link

---

Hope it helps more than confuse. 🙃

Cheers. :cowboy:

PS.

When I switch from WiFi to Mobile Data, my APN (AT&T) bypasses the internal hosts.

adAway Root mode.

Ads are blocked when using WiFi.

Ads pass though when using Mobile Data.

adAway VPN mode.

Ads are blocked when using WiFi.

Ads are blocked when using Mobile Data.​
[Android Apps and Games] andrea0807:
Thank you! I have not activated the proxy server and the data saving and I do not use another app to block the ads, then the other things I do not know. However in private dns I added "dns.adguard.com" and now it seems that no advertising opens on the browser.

Can you recommend the best hosts source (one or two very large that blocks many ads) to add to the default ones on adaway?
[Android Apps and Games] DiamondJohn:
I had this same painful and confusiong issue a while back, and what I found was that when I switched to mobile data, the network used a different interface and DNS servers / connection which apparently bypassed my hosts file. It was a while back now, but I think I solved it by changing some DNS settings for the many networks on the device.

Attached is an OOOOOLD boot script that I think use to work for my specific device. There are includes, but they mainly have to do with logging, and $bb is "busybox"

EDIT: reattached as a zip
[Android Apps and Games] whitedavidp:
Adaway 5.7.0 Non-Root Blocks Gmail Attachments​

Samsung S8+ on Android 9, Stock, No root. Very few apps installed. When Adaway VPN is active, no attachments are seen in gmail incoming messages. If the attachment is inline, you see nothing at all. If the attachment is a file, you see that there is an attachment, but any attempt to view it or download it fails. Deactivate VPN and all works file.

I have checked the list of blocked items for "gmail" and "google". I see some things that appear to spoof the domain names. Not sure where these attachment files might be located.

Any suggestions? Thanks!
[Android Apps and Games] andrea0807:
I am using these hosts sources now, can I add more to improve my protection or are these enough?

View attachment 5376861
[Android Apps and Games] zgfg:
This is totally subjective - it depends where do you live (to block regional ad sources), which apps you use, which sites do you open in browser, etc

Like what is the best phone (depending on budget, some prefer smaller display, some big battery, etc, etc) 🤓
[Android Apps and Games] andrea0807:
Thanks, i live in Italy
[Android Apps and Games] andrea0807:
Are the hosts sources to add in adaway all found on this site?

HostsSources

AdAway is a free and open source ad blocker for Android. - AdAway/AdAway

github.com

Or are there other hosts sources?
[Android Apps and Games] rodken:
Unified hosts file with base extensions.​
[Android Apps and Games] zgfg:
Also, aother site with packs of small/big, porn vs analytics vs etc hosts sources:

GitHub - EnergizedProtection/block: Let's make an annoyance free, better open internet, altogether!

Let's make an annoyance free, better open internet, altogether! - EnergizedProtection/block

github.com

Please read back (search) in this thread, various users have proposed various other hosts sources (many users, different preferences)
[Android Apps and Games] DiamondJohn:
there are as many hosts files as there are grains of sands on the beach ;)
[Android Apps and Games] ipdev:
Hi again.

Sorry for extreme the delay. :oops:

As others have already mentioned, there are a lot of hosts files.

Personally, I prefer a minimal blocking.

Only what I need.

If you are looking for a large blocking list, besides the ones already mentioned..

jerryn70 maintains Goodbye Ads.

Goodbye Ads - xdaThread] - Link

Goodbye Ads - GitHub - Link

Cheers. :cowboy:
[Android Apps and Games] m0han:
someone interested might wanna consider this: https://schakal.ru/hosts/hosts.txt
[Android Apps and Games] pa.pn2:
Hey Guys is it possible to restore the stock host file somehow?

I think i blocked too many stuff, now i cant download any updates from playstore anymore.

I dont know if its related to adaway, got my refurbished pixel 4 xl back yesterday and set it up frsh.

I was able to download updates yesterday, but know its not possible anymore.

I activated the dns thingy and blocked maybe too many stuff in there while i was browsing in xda...and had commercial banners which i wanted to block

Could that be the Problem?
[Android Apps and Games] zgfg:
As for any other app - native Settings, Apps, AdAway, then Delete Data (or Uninstall and Install again)

Then configure AdAway once again - that will recover the three official HOSTS SOURCES coming with AdAway installation

If you just want to restore STOCK HOSTS FILE, then stop AdAway (button on its main window) and (to make sure - neccessary on some phones), reboot the device
[Android Apps and Games] pa.pn2:
thanks, it could also be temp prob in playstore maybe....
[Android Apps and Games] zgfg:
You're talking about hosts file, hence you probably have root.

You can check with root explorer (like MiXplorer) how /system/etc/hosts (textual) file looks like - stock one is nearly empty, it has only definitions for localhost/localdomain
[Android Apps and Games] Jwtiyar:
Hey

My facebook was always showing ads even adaway started, i suspected it with dns log, i figured it out b-grapg.facebook.com is showing ads but when i block it facebook wont work again, any solution?
[Android Apps and Games] Wolfcity:
You have to figure out which host addresses you found which DNS logging can be blocked and which ones can't.

This is kind of trial and error. You can't block the main addresses like facebook.com and others because you won't be able to reach Facebook anymore.

Also you didn't say if you use the Facebook app or open it in a browser.

I don't use things like Facebook but if it's the app it may be possible that there are ads that are not host based.

Adawy can't do anything against those ones.

Btw, as far as I know there are several alternative Facebook apps that don't have so many ads and are smaller too.
[Android Apps and Games] Jwtiyar:
Thank you

But this would take too much time to figure out which server inside of these all servers, i dont know but before adaway was good and it worked for facebook app, why it isn't now?

I have facebook app and the original one, i dont like third party ones cauz none of them even near original app it is smoth and rich.
[Android Apps and Games] zgfg:
Try something else (not using FB and cannot guarantee - but you could have also searched in the thread for FB): Preferences, Root based adblocker (supposing you're using), uncheck Enable Web server (i.e., disable the Web server)
[Android Apps and Games] scudzilla:
Is there a way to disable ads when google searching on chrome? Without changing browser or search engine.
[Android Apps and Games] gallegonovato:
Good afternoon colleagues:

I am writing to you with a doubt. If you can shed some light on it.

It turns out that looking at the Exodus Privacy website for an application. It came to my mind that it would be wonderful to have a host in Exodus Adaway.

I started looking to see if there was one. And I only found https://blokada.org/mirror/v5/exodusprivacy/standard/hosts.txt but it is for blokada, and by the looks of it, correct me if I'm wrong. It would not work for us.

Therefore, my question. Is there any Exodus host either standard, aggressive, complete etc... to be able to use it in Adaway?

Best regards and thanks for your time
[Android Apps and Games] Wolfcity:
https://blokada.org/mirror/v5/exodusprivacy/standard/hosts.txt

should most probably work with AdAway, I added it for testing purposes to the VPN based version (see screenshot).

But it's a very short list so I think most of the entries are included in other list like Steven Black's.
[Android Apps and Games] DiamondJohn:
That list you linked is simply a hosts list, and not in the required host file format. are you certain any of them loaded? In your screen shot, it does not have a host count.

gallegonovato​
[Android Apps and Games] zgfg:
Yes. More precisely, it is only a list of sites:

databerries.com

fidzup

krxd.net

a4.tl

...

As that, it would work for AdAway for White/Allowed list but not for Black/Blocked list

To make it working for Blocked list, download the file, prepend 0.0.0.0 (or 127.0.0.1) to each host, to become:

0.0.0.0 databerries.com

0.0.0.0 fidzup

0.0.0.0 krxd.net

0.0.0.0 a4.tl

...

Then save and include as a local Blocked file for AdAway

Btw, by reading the comments on the Blokada site (link is in the header of the file), it seems that Blokada changed the hosts source format with the last version - hence the hosts source, as is, would also not work for older Blokada versions (as the Blocked list)
[Android Apps and Games] DiamondJohn:
huh? more precisely its a list of hosts. There could be multiple "sites" on the one "host".

eg http://www.publicwebhosting.com/CompanyBlahPublicSite and http://www.publicwebhosting.com/CompanyYadaPublicSite These are two sites sitting on the one host, www.publicwebhosting.com
[Android Apps and Games] zgfg:
But there could be also one site running from different hosts (redundancy, DNS round-robin)

And one host can run several virtual machines (each one hosting onenor more sites)

Hence it would be better if we talk about fully qualified domains (although, again, it is not fully precise here)
[Android Apps and Games] DiamondJohn:
But its the host that is blocked, and is listed in the hosts file. The mapping to the same IP is irrelevant. Its a host name.

That is my point! And it does not have to be a virtual PC. You can have multiple sites going to the same IP (and server) and switch sites based on the HTTP headers.

The accepted short hand is a host. Just look down your list of domain sources, and you will see the files are normally called host NOT site. They are a host list, not a site list.

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

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

https://adaway.org/hosts.txt

This especially is true when it is simply a list of hosts. Prime example is what started all this:

https://blokada.org/mirror/v5/exodusprivacy/standard/hosts.txt
[Android Apps and Games] PerfectSlayer:
Hi all,

I hope you doing well this summer.

I worked on the app the past weeks to clean up and update some dependencies.

It required some Android library migrations and the headache that comes with but it's done now.

I also addressed an issue that bother me for some months now... The Tasker integration!

I already developed the feature in a previous version but not fully test it (I did not use or own tasker) and users often report they can't make it work.

In fact, there was several issues:

The AdAway application requires a custom permission marked as dangerous so it is not granted by default when Tasker is installed.

I choose this behavior because I don't want other applications be freely able to disable ad-blocking.

The Android system now requires to specify the (Android application) package the broadcast targets, otherwise it won't be delivered.

The second issue is easily fixed by settings the package to org.adaway but the first one will require Tasker developer to update its application manifest to request the AdAway custom permission so your task can request it then send broadcast intents to command AdAway... And this could take time.

In the mean time, I developed another application that will freely accept all requests from other apps and forward them to AdAway. This is for compatibility only (and also to provide a sample demo with its source code for any developer that would like to play with). You can find it here and I will provide a signed build in the coming days, as well as fully documenting AdAway automation.

In the mean time, enjoy the update and your vacations (if you are lucky enough to have some!)

Changelog:

Improve command receiver for task automation

Update mongoose web server

Update dependencies

Update Android gradle plugin

Update translations

Thanks:

Special thanks to Faedelity for its helpful bug report.

Download:

AdAway 5.8.0
[Android Apps and Games] PerfectSlayer:
The automation integration documentation is up, including screenshots to successfully configure Tasker!

And you can also find a signed release of the AdAway Automation app on GitHub 🎉

(oh yeah, we can't tell my 2nd app has a better design... :ROFLMAO:)
[Android Apps and Games] Wolfcity:
@DiamondJohn @zgfg @gallegonovato

Sry guys, I just copied the URL and pasted it into AdAway.

Things to remember for me:

Don't answer questions on XDA when it's too late and after having one Gin Tonic to much.....

Apologies.
[Android Apps and Games] gallegonovato:
Good afternoon colleagues:

I apologize for so much mess with the link of blokada, that as you rightly say although it carries hosts in your link. It is not a real hosts, since the host has to have 0.0.0.0.0 or 127.0.0.1 (if I remember correctly).

To comment that I found a hosts that already includes the one that I commented to you It is https://github.com/badmojr/1Hosts/tree/master/Pro or https://github.com/badmojr/1Hosts/tree/master/Xtra since in its sources it has the link that I pass you as you can see in https://github.com/badmojr/1Hosts/blob/master/-data/lists/assets.txt#L205

A hug and thanks for your help and time.
[Android Apps and Games] vandyman:
Wow! Too long of a post above. 😱
[Android Apps and Games] Wolfcity:
Use the spoiler bb code for long lists (see above):

[spoiler***] before

and

[/spoiler***]

after the list (without *** ).

It's easier to read and doesn't clutter the thread.

Thx.
[Android Apps and Games] DiamondJohn:
OT, but I came across this list, and had to share. Its a loooong list of lists. Still not every grain.

random-blocklists

GitHub Gist: instantly share code, notes, and snippets.

gist.github.com
[Android Apps and Games] DiamondJohn:
As others have said, a hide / spoiler tag would be best. You can edit your post.

As for the list, this is now static. The source will change over time. The concept of adaway is that it gets updated sources (and merges them), as opposed to a one off download of a host file.

Logically you will need to script the download (wget) and conversion, and have that run now and then to automate the updates. Or AdAway would need to enable simple hosts lists as an input.
[Android Apps and Games] nadeemakhtar1994:
Using miui 12.5 and as soon as I clear recents apps , I see adaway turns off
[Android Apps and Games] zgfg:
If talkng about non-root/VPN mode, use native Settings, search for Battery optimization and turn it off for AdAway

For the root/hosts mode it is not necessary to be running all the time (it serves only for updating the host sources)
[Android Apps and Games] nadeemakhtar1994:
Adaway turns off man. I have to open and turn it on everytime. I am rooted
[Android Apps and Games] nadeemakhtar1994:
I am rooted with magisk. Using miui 12.5. Enabled autostart for adaway, turned off battery optimization for adaway, locked adway in recents but still after restart it it turning off.
[Android Apps and Games] zgfg:
Ok, telling you again that for root, there is no need for AdAway to be running all the time.

In the roor mode AdAway only writes the blocked hosts to the hosts file and after that Android itself reads and uses the hosts file

AdAway in the background only waits if some hosts source will be updated - but the hosts sources usually update once a week, some even once a month.

Hence for the purpose of updating hosts sources it is enough that you manually run AdAway once a week or so

But if the root version does not work for you (no matter if in foregeound, background or turned off), then you have another problem (maybe not installed prooerly, like not using Systemless hosts) and you need to describe what precesily does not work, did it work previously (before MIUI 12.5), is it a problem after updating AdAway, generally more info (otherwise nobody can help you)

I'm also on MIUI 12.6 (Xiaomi.eu, Mi 9T), rooted, and I even did not set AdAway for Auto-start or exempt from Battery optimization.

I open it from days to days and let it update the hosts sources (then I reboot)
[Android Apps and Games] DiamondJohn:
You nay be roo9ted, but you have to select systemless hosts ( ie root mode). You can be rooted, but be running AdAway in non-root mode.
[Android Apps and Games] andrea0807:
If I want adaway not to block advertising in 1dm browser, what should I put on adaway's authorized lists?
[Android Apps and Games] zgfg:
For questions like that it is IMPORTANT to specify are you using root/hosts or non-root/VPN mode (people constantly neglect)

For VPN mode you can whitelist per apps (like given beowser), for hosts mode you cannot (you could read about DNS logging and find out it it could help you about identifying certain sites to whitelist)
[Android Apps and Games] andrea0807:
Thanks i'm using root mode so there is no chance.
[Android Apps and Games] Oswald Boelcke:
Certainly, there is. Just follow the procedure for DNS logging and whitelist afterwards what has been recorded when using your 1dm browser.
[Android Apps and Games] ekowwillis:
Adaway not working on Android12 Beta 4

After updating my Pixel 4a 5G to Android 12 Beta 4 and setting up VPN Ad blocking, I'm still getting ads in Google Chrome and other apps.
[Android Apps and Games] zgfg:
Just please clarify - with the same AdAway settings it worked for you, for the same apps, when you were on Beta 3 (or which OS version)?
[Android Apps and Games] ekowwillis:
Yeah, it worked fine on all previous betas (1, 2, 3)
[Android Apps and Games] PerfectSlayer:
Hum, the best I have to test this is a Pixel 2 that was donated to me.

Sadly, it won't receive Android 12 updates so I don't think I will be able to test Android 12 anytime soon.

I will keep you posted if I find a way.
[Android Apps and Games] Lughnasadh:
There is a known bug in Android 12 Beta 4 where VPN is not working correctly. That may be the problem. I'm using the root method on Beta 4 on my Pixel 4 XL and everything is working as it should.

cc: @PerfectSlayer
[Android Apps and Games] PerfectSlayer:
Thanks for the info.

In the mean time, I just had a look to the F-Droid build log.

It seem their manifest needed to be upgraded to use Java 11.

The patch was applied yesterday so we need to way another day for the build to be trigger again.
[Android Apps and Games] Garbonzo17:
Even with 5.8.0 installed I am still unable to import previous backups. The json files are just appearing greyed pit like unsupported. Same on both of these devices

-OnePlus6t rooted/magisk23/OOS11 stable

-Pixel 3a XL rooted/magisk23/Android 12 b4

I am sure there is something I am missing, but I saw in the changelog that this problem was resolved at 5.7.0 (it wasn't for me on that version either)
[Android Apps and Games] zgfg:
Are you sure that the files really have json extension.

If you copied them over PC, maybe the file names end like .json.txt or something like that
[Android Apps and Games] gallegonovato:
Good evening @PerfectSlayer

I wanted to ask you a question. I wonder if you will upload soon the new version of Adaway to fdroid.

And if I may I wanted to ask another question. If the Adaway host, is within the sources used by StevenBlack https://github.com/StevenBlack/hosts#sources-of-hosts-data-unified-in-this-variant wouldn't it be better to join efforts between Adaway and Steven to make Adaway stronger. And I don't know if it would be possible to change the 127.0.0.1 to 0 0.0.0.0 in the Adaway hosts.

I would also like to take the opportunity to see if it is possible to incorporate the host of @badmojr : https://github.com/badmojr/1Hosts into Adaway. Since it incorporates a lot of sources for your hosts: https://github.com/badmojr/1Hosts/blob/master/-data/lists/assets.txt#L205 (even the one from exodus privacy blokada). It would be a very excellent addition to improve our privacy and security. And their lists are a blast and more

A hug and thanks a lot for your time