yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] zgfg:
Whitelisting apps is theoretically not possible for the root/hosts mode, and how/why was already described in the posts here (at least, I did answer to somebody just few days ago)

For VPN/non-root mode you can whitelist particular apps

But you may also try with the Web server option disabled (not sure does it help for CVS but search through this thread,CVS was also already discussed earlier)
[Android Apps and Games] PerfectSlayer:
Hi all,

It's been two months now from the last release.

As previously said, I take a step back from the project (like many other things in my life) for recovery.

Nonetheless, I still have few updates for you!

The main one is a long time request depicted here:

View attachment 5348921

So now, you should be able to quickly pause and resume ad-blocking from quick settings! 🎉

And on top of that, there are bug fixes and dependencies and translation updates.

In the meantime, I am discussing about an UI contribution to improve the home screen.

I often get comments about the icons floating on top of cards. The proposal tries to fix it and add some colors while changing the overall theme contrast:

Current version:

Proposal:

Feel free to give your feedback as we are iterating on it (or even join the PR discussion).

Changelog:

Add quick settings tile to toggle ad-blocking

Fix crash on TLS and timeout issue during source update

Fix backup not listed for restoration on older devices

Update dependencies

Update translations

Thanks:

Special thanks to gwolf2u, opusforlife2, Vstory for theirs helpful bug reports.

Download:

AdAway 5.7.0
[Android Apps and Games] unibombz:
Hello,

Been running AdAway for years on all my devices. However, I have been looking into concern why on this Pixel 5 (rooted and confirmed root access) that when I start adaway it always starts as disabled

Solutions

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

github.com

I see on the wiki here of the explanation , and have not found a solation to the problem. I can download hosts and enable adaway, however when I close the app and go back into it, it is disabled

Device is Pixel 5 with root on Android 11 (details in sig)

Any suggestions ?

Thanks.
[Android Apps and Games] DiamondJohn:
On a note total unrelated to your proposed changes, but it is related to the UI. I often find that the clickable area around the icons circled below are too tightly surrounding the icon, and often accidentally click the text to the left of either icon.

View attachment 5349361
[Android Apps and Games] ew:
Thank you very much for the latest update - and the quick settings addition is great.

Question - is there also a way to toggle ad blocking from Tasker (or sending some intent) that could be used?

Thanks again.
[Android Apps and Games] Kursem:
hello, how to use IP redirect hosts that used to unblock websites? I'm using bebasid, but it seems Adaway doesn't redirect the blocked websites... as it shows that it has no lists, even though I have set it to allow.
[Android Apps and Games] rodken:
Disable the web server and change redirect to 0.0.0.0 instead of the default 127.0.0.1.
[Android Apps and Games] Kursem:
thanks for you reply! but, I already did as you told me but the hosts still doesn't shows up.
[Android Apps and Games] rodken:
Use DNS logging [Show DNS] (read AdAway Wiki from Github to learn how-to) to find which domain is blocked but your device wants to access - put that to Whitelist, restart and test again.

You can also open Blocked list, search for the string. Find which one is blocked. E.g., something like ...amazon.fr (Amazon France). Put that domain to White list, restart and test.
[Android Apps and Games] zgfg:
I just tried your babesid hosts source

If Apply redirected hosts is not checked, it will give you 60 blocked sites

If Apply redirected hosts is checked, it will give you 8k redirected sites and 60 blocked

Disable all your other hosts sources, confirn Apply and give it a time to finish (!)

Then enable only your Babesid source, Apply and give it again time to finish

Play with that.

My screenshots attached

You will need to look into the Babeside Readme or something, what is its purpose of redirecting.

So far I used various hosts sources but this is the first time now with Babeside that Adaway shows me the number of Redirected addresses greater than 0

Edit:

Actually, those 8k redirected sites look like entries to the dark-net. Most of them cannot be resolved by regular DNS servers, some resolve but to different IP addresses than redirected by Babesid (try to open in browser and you get "Site is seized by ..., by article this or that"), etc - hence be very carefull with
[Android Apps and Games] PerfectSlayer:
You should be able to do it, I developed stuff to.

AdAway exposes an Intent receiver "org.adaway.AD_BLOCK_STATUS" to take commands from other apps.

<receiver
android:name=".broadcast.StatusCommandReceiver"
android:permission="org.adaway.permission.STATUS_COMMAND">
<intent-filter>
<action android:name="org.adaway.AD_BLOCK_STATUS" />
</intent-filter>
</receiver>

And the receiver check the intent extra "org.adaway.AD_BLOCK_STATUS" to get the command to apply (0 for starting ad-blocking, 1 for stopping).

/**
* This broadcast receiver listens to ad-blocking status change request.
*/
public class StatusCommandReceiver extends BroadcastReceiver {
/**
* This action controls the ad blocking status.<br>See {@link AdBlockCommand} for extra values.
*/
public static final String STATUS_COMMAND_ACTION = "org.adaway.AD_BLOCK_STATUS";
private static final String TAG = "StatusReceiver";

@Override
public void onReceive(Context context, Intent intent) {
if (STATUS_COMMAND_ACTION.equals(intent.getAction())) {
Log.i(TAG, "StatusReceiver invoked");
AdBlockModel adBlockModel = ((AdAwayApplication) context.getApplicationContext()).getAdBlockModel();
AdBlockCommand command = AdBlockCommand.readFromIntent(intent);
try {
switch (command) {
case START:
adBlockModel.apply();
break;
case STOP:
adBlockModel.revert();
break;
}
} catch (HostErrorException e) {
Log.w(TAG, "Failed to apply ad block command " + command + ".", e);
}
}
}
}

I don't have tasker to test it but if you suceed, don't forget to post it here the result so I can put it somewhere on the GitHub (Wiki?)
[Android Apps and Games] Kursem:
Thanks to your tutorial, it worked now... Thank you very much!

Well, regarding your warning, yes it's actually redirection hosts. I use it on my PC. Since I realize AdAway basically made a hosts file for your smartphone, I guess a redirect hosts could work too.

Don't worry, it's not that harmful. Bebasid purpose is to circumvent government internet blocking, and also block ISP ad injection (but mainly the blocked sites are adult sites lol). Here's the project readme (it's in English).

Yeah, where I live (Indonesia), both ISP and govt are scummy and want to control the internet. Net neutrality there are basically non-existent.
[Android Apps and Games] elma13:
Hey could you help me? I don't know why but adaway doesn't block ads on my new phone (Mi 9T Pro), although it did on my previous one.

I am using root method with magisk, I have enabled systemless hosts on it and I did multiple reboots. I haven't got any error messages and I checked that the hosts file has been created by adaway.
[Android Apps and Games] Nergal di Cuthah:
Check your dns settings under network in android settings also make sure you're not running a vpn (both of these can stop adblocking)
[Android Apps and Games] elma13:
If you mean private dns is off. No I am not using a vpn or the dns method.
[Android Apps and Games] ew:
Thanks for the information. I tried a couple of things, but I am just about shooting in the dark and I haven't figured it out yet.

Do you know if there is a shell script command that would work also? I could use that to further dissect and figure it out - or just run the shell command from within tasker.

Thank you again for your help and support.
[Android Apps and Games] Jwtiyar:
Hey

Adaway not blocking any ads in anywhere, every thing is enabled magisk hosts and didn't whitelist anything, and i use magisk canary 23, also use rooted version.

I tried other ad apps also not blocking like dns and blokada, what's my problem?
[Android Apps and Games] Uluru25:
You are sure the app is running (and not only installed)? What about turning on the logging feature?
[Android Apps and Games] Jwtiyar:
Thanks for reply, i dont know but when it opens it shows that granted superuser righrs and buttoon is started on center.
[Android Apps and Games] Uluru25:
... should look like this (pause-symbol " ) indicating it is running. And it needs a reboot before working.
[Android Apps and Games] sohebq:
Could u try doing what i did. Delete all hosts file, reboot and then apply again?

Sent from Galaxy Note 3 (The beauty & beast)
[Android Apps and Games] ghostryder12:
Sometimes that happens to me so I delete it's data in settings>apps. Then I can go back to the app and it'll download the files and apply them with no issues.

Just my 2¢
[Android Apps and Games] Amagoi:
Thanks, I'm currently looking into trying this. I'm pretty new to working with android systems, so thanks for the heads up.

Yeah, I've done that a few times; no dice. Same with removing the app and cache, and reinstalling again or installing it through a different source like Fdroid. Same thing every time, with every version. Very odd.
[Android Apps and Games] ramzitunisia:
Having the same problem writing the host file, I succed after disabling lucky patcher.
[Android Apps and Games] rahul thakkkar:
Nice apk work fine:)
[Android Apps and Games] peped94:
there are still ads on #squaredroid app. i have try to get dns enable and pick up all the dns to the whitelist but still failed
[Android Apps and Games] jwds1978:
You're adding the ones you want to block to the whitelist?

Sent via Tapatalk from my TELUS Samsung Galaxy Note 3 on the Bell network.
[Android Apps and Games] peped94:
yess. i add all the list on blacklist first and reapply. but it does not work so i put them in whitelist and hit apply button but the result still same. i dont know what whitelist and blacklist do :confused::confused:
[Android Apps and Games] jwds1978:
Blacklist stuff you want blocked. Whitelist stuff that's being blocked, but you want to display. You may need to reboot after making changes and applying.

Sent via Tapatalk from my TELUS Samsung Galaxy Note 3 on the Bell network.
[Android Apps and Games] peped94:
yes. i have done all that things. reapply and reboot. but it does not work. the app still show ads. so the right step to remove that ads is blacklist all the site that was shown in dns right ?

EDIT: now it become more weird when i select dns and then go to that app that display ads but nothing show in the log. hmm never mind. i think only this app has ads.
[Android Apps and Games] Draygon:
Could someone reupload the latest 2.8.1 d4rken mod please? It's down.
[Android Apps and Games] kingvortex:
Just downloaded it here. It's not down. ?
[Android Apps and Games] Draygon:
I used the link in the OP: http://d-h.st/lZ4

It's not working for me. :(
[Android Apps and Games] Pons:
I just tried the link in the OP, and the link here. Both work. Try switching to wifi or mobile, since the issue is with your connection.
[Android Apps and Games] Draygon:
Well, your version seems to be another one than the d4rken mod version in the OP.

Size of your version: 1,78 MB

Size of version in OP: 2,95 MB

A big difference for such a small file. How can this be?
[Android Apps and Games] gsmyth:
How can I find which ad sites an app uses to add them to the white list?
[Android Apps and Games] bberryhill0:
Read the last few posts in this thread.

Swyped from my Verizon LG G2 using Tapatalk Pro 4.5.2
[Android Apps and Games] gsmyth:
I have been, I know how to whitelist but don't know where/how to find the host addresses that I want to white list. The app is the Gumtree app.
[Android Apps and Games] r-jansen:
Go to log dns requests. Exit adaway, start your app and go back to log dns requests.

Verstuurd vanaf mijn GT-I9505 met Tapatalk
[Android Apps and Games] gsmyth:
Thanks now I know how to do that! Tried logging the DNS requests and turned on the TCP dump then ran the app and browsed through it but nothing was logged. The app is basically one big advertising app for selling your stuff, jobs, personals, etc so they maybe have maybe implemented their ads in a particular way. Its not a big deal as it still works fine, theres just a main image (dont think its really an ad) on the main screen when you start it up, that doesnt load (continuous progress bar) and several big gaps when browsing through item lists. Thanks for the help anyway. :good:
[Android Apps and Games] Jwtiyar:
Yes is like that, and i enabled DNS log and it shows all the servers

I did reboot too many times

And here is a screen record of ads in facebook for example and adaway setup.

View attachment 5353769
[Android Apps and Games] Jwtiyar:
Any suggestion?
[Android Apps and Games] mingkee:
Solution for CVS and MyMta apps

Put the following address in allowed address

CVS

*.braze.com

MyMTA

*ggpht.com

*gstatic.com

@PerfectSlayer

@desertcat
[Android Apps and Games] gallegonovato:
Good afternoon:

I wanted to take this opportunity to thank you for the new version of Adaway.

I was looking at the Adaway host and Steven's host https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts

And in this one the Adaway host is already included. Since inside there is:

# Start adaway.org

# AdAway default blocklist

# Blocking mobile ad providers and some analytics providers

#

# Project home page:

# https://github.com/AdAway/adaway.github.io/

#

# Fetch the latest version of this file:

# https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt

#

# License:

# CC Attribution 3.0 (http://creativecommons.org/licenses/by/3.0/)

#

# Contributions by:

# Kicelo, Dominik Schuermann.

# Further changes and contributors maintained in the commit history at

# https://github.com/AdAway/adaway.github.io/commits/master

#

# Contribute:

# Create an issue at https://github.com/AdAway/adaway.github.io/issues

#

My question is, wouldn't it be convenient to join Steven. And thus form a stronger host. Between adaway and steven. And thus put only one of origin.

Since having steven's host would not already include adaway's host. And if you put the most complete of steven, nick and energized is almost the most.

A hug and thanks for your time and effort and help.
[Android Apps and Games] MoeQyu:
When I tap the pause button on AdAway, I get this error. How to solve this?

View attachment 5356747
[Android Apps and Games] ipdev:
If you have a GitHub account, you should be able to add them to the ProblematicApps list in the wiki.

AdAway - [Wiki] - ProblematicApps - Link

Cheers. :cowboy:

PS.

A few months ago, I put the list back in alphabetical order.

Please add your entries in order. ;)
[Android Apps and Games] ipdev:
To get a true dump from dns logging, you need to..

Close all other apps.

Clear the cache (maybe even data) of the app in question.

Disable add blocking.

Clear the dns log in AdAway.

Start dns logging in AdAway.

Open the app in question (Might have to run though options in the app).

Close the app in question.

Then inspect the dns log, this will contain all dns requests.

Not only the app in question, anything that made a request while you were running the dns logging.

If system (something else running in the background) made a request, it will show in the dns log.​

Check each questionable host name to see if it should be blocked.

---

Some app(s) will cache advertising.

Normally for off-line use.

You would need to clear the off-line cache.

The ad servers can not be reached so, the cached ads are used.

---

If the ads are called by an IP address (DNS is not used), you will not be able to block ads by host name.

If the ads are supplied by the same servers that you need to use the app..

You can not block the ads without blocking the app also.

---

Good hosts source lists are maintained.

Entries are added and removed.

It is possible, that a previously blocked site could have been removed from the hosts source you are using.

There are a number of reasons why names are removed from hosts lists.

Hope it helps more than confuse. 🙃

Cheers. :cowboy:
[Android Apps and Games] Jwtiyar:
Thank you bro, but the problem is that there is no specific app that adaway not working on it then inspect it, does not work on all apps.
[Android Apps and Games] DiamondJohn:
Ha, I look at your host list to get problematic apps to run, and all I see is another block list;)
[Android Apps and Games] mingkee:
Now I learned how to debug AdAway and that's why I can put up solution
[Android Apps and Games] shadowofdeth:
Keeps messing with certain apps in various ways and site functionality which never happen before.

Cant checkout with some food ordering/shopping apps which all worked fine with adaway before.

I was using a magisk module ad blocker but deleted it by accident and can't remember what it was called but it worked flawlessly.

Edit:

Nevermind. Fixed it. Had to download an older version (4.3.6) and now everything works properly. Still had to whitelist s.youtube.com which I never had to do before but it seems to have fixed everything else.
[Android Apps and Games] zgfg:
You probably simply needed to switch off Web server in AdAway, Preferences, Root bssed ad blocker, which is by default turned on in 5.x and causing issues for many sites
[Android Apps and Games] kla1974:
Hi guys

I have a Poco F3 rooted with MIUI 12.5.2 Stable

In my phone (Android 11) Adaway 5.7.0 fails to install the hosts for which I find myself advertised everywhere.

I searched Magisk for the "Systemless hosts" module but it doesn't seem to be present with this name.

To stop the problem, I entered the Adguard DNS in the phone settings but I would like to use Adaway.

I tried to do research in this thread but maybe I don't understand English very well because I'm Italian.

Can you help me?

Thank you
[Android Apps and Games] Oswald Boelcke:
There is no such module in the modules list to install. You need to activate systemless hosts via the Magisk App settings. Afterwards, the systemless hosts module will appear under the installed modules.

Spoiler content hidden.
[Android Apps and Games] kla1974:
😅 Thank you , now work 👌
[Android Apps and Games] Duvel999:
I use Adaway sometimes.

Now it causes problems in a Banking app.

I'm rooted, this causes never problems in my banking app.

Just installed it ( 5.70 ) again, now it does.

Something is blocked, and I can't use the app.

Recorded DNS logs, when trying to use the app, whitelisted them.

Deleted cache etc. Rebooted.

Still the same.

If I disable Adaway, everything works like it should.

Any ideas?
[Android Apps and Games] Oswald Boelcke:
@Duvel999 Have you disabled the built-in web server?
[Android Apps and Games] Duvel999:
Yes, did it now .

This causes the problem.

Is it wise to to disable the webserver?
[Android Apps and Games] Oswald Boelcke:
Because that might be the issue for that what you've described. Quite a few sites don't work if the Adaway inherent web server is enabled. Consider to disable the web server and give it a try.
[Android Apps and Games] shadowofdeth:
User zgfg told me that my similar issues might be caused by the "enable web server" in the apps settings being enabled and to turn it off. They were right.

Maybe try that for your problem. Turned out to be good advice for me. If you haven't already of course.
[Android Apps and Games] FragRot:
My block list check boxes is greyed out and I can't white list it. I already have systemless host enable in Magisk. Please help I need to white list a link. The show DNS request log when I press record and I open an app or visit a link it does not show anything.

EDIT: Turning off private DNS works.
[Android Apps and Games] Adamk102:
hello i have a problem with adaway. Whenever I don't use my phone for a long time, adaway blocks my internet. My point is that neither site connects to me. the solution is to turn off then turn on adaway and everything works. my phone is oneplus 7t oos 11.
[Android Apps and Games] zgfg:
You probably use VPN/non root mode (it's very important to describe when posting issues because VPN and hosts/root modes work totally different) and VPN maybe blocks the Internet (there are some known issues with VPN mode when switching connections and so)

But check also something else. Certain apps cannot work if VPN is enabled - you have to whitelist those apps
[Android Apps and Games] Adamk102:
yes i am using the no root version. I will add that this problem is only, for adaway. blokada or adguard no problem
[Android Apps and Games] zgfg:
Unfortunately, it's known (you can search through the older posts and/or look at the Github) about the issues with VPN.

Maybe consider rooting the phone and the hosts mode
[Android Apps and Games] dk4ever:
I have rooted my phone but I can only use vpn mode. The option to use the root method is greyed out?!? magisk is working fine! How can I switch from VPN method to root method? Any help is much appreciated!
[Android Apps and Games] zgfg:
You have to delete data for AdAway (from Settings, Apps) or uninstall and then install the AdAway again.

Then you have a choice to choose

If you need, you can export all your hosts sources and White lists to json and later to import them back

Btw, I'm sure I answered the same to somebody else

Anyway, it would be good to have a more practical option to switch between the modes
[Android Apps and Games] DiamondJohn:
I have to admit, I have not re-read the OP, but I would hazard a guess it would be in the top few posts. And you and others have answered the question many times.

As for a practical option to switch between the modes, are people doing this often? I did it once myself, in that I tested the VPN mode (on my new, rooted phone), but once I found it wasn't working / problematic, I switched to root mode, and have never wished to switch back. I could be way out, but it seems like a feature that would not be used often. Would you use it more than twice? ie start with option 1, test option 2, realise it was better in option 1, and go back and STAY on option 1; as you now know it is better. I cant understand the reason to be switching between the two multiple times?
[Android Apps and Games] zgfg:
True. But according to the questions posted, there are still users who want to switch from one mode to another (and they look for but cannot find such a switch in AdAway Preferences)

There will be usually two scenarios (as you say), with only one or two times switching:

1) Users who later rooted their phones and want to switch from non-root to root (one time only)

2) Users who want to try/switch from root to non-root (because of e.g. the ability in VPN mode to whitelist per apps). But later, due to the VPN mode issues with data reconnections, they want to go back to the root mode (hence two times switching)

Those from the case (1) should have a little imagination, remembering that when they first time configured AdAway 5.x, that they had a choice to choose between root and non-root - hence they should be able to figure out themselves (as we did) that if they Clear data, they would again be in the initial position to choose between the modes

However, in case (2) there might be people who upgraded from AdAway 4.x (where only the root mode existed) hence they never went though the initial configuration of AdAway 5.x, and never saw how/where you choose between the modes
[Android Apps and Games] matheusafonso:
Installed last version of AdAway, my phone is rooted, S9+.

But it just work on chrome web browser, doens't work on apps, like YouTube, TikTok, Instagram or any App that has Ads.

Am i doing something wrong?
[Android Apps and Games] zgfg:
Yes, you do🤓

Please read here and elswhere (search, read older posts, history does not begin when a new member stumbles into the thread) how and why AdAway (and other dns based adblockers) do not block ads in YT and what to use instead (Vanced)

IDK how about TikTok