yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] Bigman0988:
Hello, everyone. I was told to download this app off of f-droid to block ads on YouTube and certain sites. The issue is it blocks the whole site itself. I get coupons and promotions from CVS through email. Before, the chrome browser would block me with a warning, and an option under "Advanced" to continue on to CVS.Com. Then, I get this:

View attachment 5949565

Now, after I pressed something in the warning option in chrome (it was stupid of me. I just don't remember what I pressed) it skips the warning box with "Advanced", then fits straight to the screen above. In addition, after pressing whatever I pressed, my 5G data service will not connect anymore.

Also, YouTube will have all of the videos and shorts I watched in the last 24+ hours featured over and over again song with new ones. It doesn't change. And the ads still play, anyway.

Can anyone help a noob? I am not computer proficient, and gave very slightly above average knowledge.

Any help, guys? I would greatly appreciate.
[Android Apps and Games] Comraddm:
Hello everyone!

I have old tablet HP Touchpad, Android 4.4.4, AdAway-4.3.6-200726.

Root access is on.

AdAway can't download its host sources lists.

"None of your enabled hosts sources are reachable! Are you properly connected to the Internet?"

I can add something in blacklist and it adds to hosts file, so it has access to it.

I can download those source files on urls even in old default browser, so tablet has access to that sites.

But what's wrong with AdAway?

Thanks in advance for your help.

Spoiler content hidden.
[Android Apps and Games] tko:
i recently updated my phone.

android 13, miui14, root (magisk delta), newest adaway installed, host file active.

i have several filterlists active, but sadly i still get tons off ads... Before the phoneupdate it worked perfect. Unfortunately i did not save the lists that i have used before.

anyone has an idea whats going on?^^ :)
[Android Apps and Games] zgfg:
Supposing you use KSU without Magisk

If so, do you flash these KSU modules from TWRP?

Can you please give a link for Zygisk-on-KernelSU

Is there a KSU version for Zygisk-LSPosed or it would also work with Zygisk-on-KernelSU?

Btw, the latest (released yesterday) JamesDSP and AML are also KSU ready
[Android Apps and Games] DiamondJohn:
I had an issue where hosst blocking failed on mobile data, but was working on WiFi.

Check your host file and ping a few of the listed hosts to check if it is being used. If not, I cant remember off the top of my head what I did, but I9 posted it here, so search for my posts in this thread.
[Android Apps and Games] pepeq:
things are changing:

for AdAway to work and CTS pass you only need the new systemless host module for KernelSU found here: https://github.com/symbuzzer/systemless-hosts-KernelSU-module

Zygisk-on-kernelsu: https://github.com/Dr-TSNG/ZygiskOnKernelSU

Zygisk-LSPosed: https://github.com/LSPosed/LSPosed/releases/tag/v1.8.6
[Android Apps and Games] gallegonovato:
Good afternoon:

I wanted to ask you a question if I may.

It turns out that I have the phone rotated and with Magisk. And I have installed the systemless hosts in Magisk, and xprivacylua and xpose.

So far so good. But I was reading the message of our colleague @pepeq . And I don't know if that will be the new way or everything will work the same with the Magisk systemless hosts module.

Since I'm thinking of changing mobile and now will put the latest version of Lineageos.

Hence the doubts.

A hug and thanks for your help and time.
[Android Apps and Games] tko:
ok,

i just checked the host file, i did open it form within adaway... what i see is nothing... its basically empty.

thats a bit weird.
[Android Apps and Games] zgfg:
His post was about rooting with KernelSU (KSU) instead of by Magisk.

It requires KSU patched kernel for a particular device and ROM

If you google for:

XDA KernelSU

or

GitHub KernelSU

you will find more info about

Eg, you can download here:

Releases · tiann/KernelSU

A Kernel based root solution for Android. Contribute to tiann/KernelSU development by creating an account on GitHub.

github.com

the app:

KernelSU_v0.6.2_11089-release.apk

to test if your phone/ROM is supported for KSU

Although KSU is around since 2018 it just recently gained popularity but it's still not applicable for all devices, it's more complicated and it requires deeper knowledge/courage and more do-it-yourself than rooting by Magisk

As you can see, there were only few users here who confirmed about using KSU (and AdAway)
[Android Apps and Games] amn1987:
Only the Systemless module linked above is sufficient, right? I want to avoid Zygisk as Shamiko wasn't able to prevent root detection in some banking and financial apps and hence I had switched to Magisk Delta. No such issue with Magisk Hide. Ditto in case of KSU. Just a few days ago one of my devices got KSU support for the first time. Also for hiding Developer Options status I was using an LSPosed module but I think Riru variant of LSPosed can't be made to work?

Edit: Systemless module worked without a hitch.
[Android Apps and Games] tko:
Host File ist empty... why... ?
[Android Apps and Games] zgfg:
If you use Delta, ie any Magisk fork, hence not KernellSU, then you just need to enable Systemless hosts built into the Msgisk (Magisk [Delta] app, Settings, enable Systemless hosts and reboot)

His link to GitHub was for users who do not use any kind of Magisk (official Stable or Canary, Delta, Alpha) but use KernelSU = KSU for rooting

But if that external Systemless hosts work fine for you although you are on Magisk and not KSU, you can use it
[Android Apps and Games] krepsz:
How do you have 4 hosts?I have just 3.
[Android Apps and Games] Oswald Boelcke:
That's a personal user's decision! @tko obviously decided to use 4 specific host source, and you decided to use just three. I for example use six.

Spoiler content hidden.
[Android Apps and Games] tko:
Can you Post a Screenshot of your Host File?
[Android Apps and Games] zgfg:
Actually, he has 4 hosts SOURCES and with them he blocks 718808 hosts

Press onto your "3 sources", another page will open and then press the big + button

On the main page you have a link to the somewhat outdated but still useful instructions for the new users
[Android Apps and Games] tko:
wrong quote :).

in need this

View attachment 5953773
[Android Apps and Games] Oswald Boelcke:
No way! I don't know how many screenshots would be needed to get a about 14 MB host file photographed. I hope you don't mind that I'm wondering about your request.

But I've attached my host file converted to a txt-file.

P.S. For better scrolling and reading experiences I suggest that you attach thumbnails instead of full screenshots to your posts!
[Android Apps and Games] zgfg:
That button opens the hosts file with the final list of blocked hosts

In my case it has 316918 blocked hosts

Screenshot shows only the beginning (header with comments by AdAway about patching)

And the other screenshot, beginning of the list

It's not 3 or 4 hosts and no way to screenshot you all of them
[Android Apps and Games] amn1987:
No I meant I was using MD but had to switch to KSU recently in one device. It was my first ever encounter with it so it was a tad confusing at first.
[Android Apps and Games] tko:
Thx, then my question/Problem still Stands.... why is my Hostfile empty...
[Android Apps and Games] zgfg:
If using root mode for AdAway, did you enable Systemless hosts in Magisk and did you reboot afterwards
[Android Apps and Games] tko:
Yes.
[Android Apps and Games] zgfg:
Check do you have - go to the "Systemless hosts" module folder: /data/adb/modules/hosts

Inside to system/etc to find the hosts file where AdAway must write (Magisk will mount that to /system/etc)

Try to add something to that hosts file manually like to block www.yahoo.com:

127.0.0.1 www.yahoo.com

::1 www.yahoo.com

You can do all that with eg MiXPlorer (must give it root grant)

Btw, I don't remember details but their was a known issue on some phones/ROMs that Systemless hosts mechanism didn't work where Data partition was formatted as ext4 (not as f2fs as usually) - not sure, more could be found by searching in this thread.

Not sure was it a problem on the Msgisk or AdAway side
[Android Apps and Games] tko:
/data/adb/modules/hosts

does not exist.

/data/ and than there is a adb-file

than i tried adding sth to the host-file, also don't work. I get a error when i want to save the host-file
[Android Apps and Games] zgfg:
adb is folder on /data, not a file

So, do you only have

/data/adb

and inside the Magisk own folders and files - see my screenshot

Or you also have modules subfolder - again, see my screenshot

Since I have many modules installed, I have a lot of subfolders in the modules folder

Did you install any other module in Magisk and do you see its folder there?

----

You can make manual changes only by root explorer like MiXPlorer and only upon you give it root grant - otherwise you are not allowed to make any changes on Data

---

Also, upon you enabled Systemless hosts in the Magisk app, Settings (screenshot) after that you HAD TO reboot the phone - otherwise it would not create the hosts subfolder

Since of your still not precise description (please confirm one by one thing you were asked), there is no way to conclude did you miss something to do or you have a problem on your phone

So please be precise, confirm one by one things like:

- I enabled Systemless hosts

- I rebooted the phone

- I granted a root privilege to the file explorer (which one) or you used Terminal emulator commands with su

- I installed another Magisk module(s) and they work

- etc

Show your screenshots based on mine

Sorry but we are users/volunteers here, hence please respect the time, patience and efforts in trying to help and make it easier with putting precise details (and even repeating the same if necessary, to have all the relevant info on the spot)

Otherwise, you could go to the GitHub ({link is on the AdAway main screen) and report your Issue there (and wait)
[Android Apps and Games] DiamondJohn:
ummm... WHICH host file? you said it didn't exist? I hope your not taking about directly on system partition? when you are using systemless hosts. People are suggesting you edit the systemless magisk module (which you say does not exists). People above have gone to the trouble of taking screenshots for you. The very least you could do is take some screen shots of what you say you have done/experienced because its not that clear; and hence the others screen shots. Its ALL for your benefit.

and to add one more "too obvious to even mention" item, adaway will also need to be granted root, and NOT be running in DNS mode. I never have run in DNS mode, but I *think* its a one time setup the first time you start Adaway (or clear data); ie easy to forget you set it that way.
[Android Apps and Games] tko:
Sry that i wasnt clear enough.

Systemless host is enabeled, with reboot afterwards.

In cant locate the "folder" you are talking about. see screenshots.

edit: i looked again with adb shell, with success.

i did find the folder you are talking about. (see last screenshot)

i try to reinstall adaway now.

edit2: if i open the host file now from within the adb shell, it is full :)

so it looks like it is working now.
[Android Apps and Games] tko:
When there is no e.g. "25k Hosts" label behind the filterlist entry.

What does that mean? the list is not work with adway? or because of duplicates or sth. the entries are not used?
[Android Apps and Games] Mani_Sundar:
Can someone help me with this

I'm unable to process from this step adding some screenshots of the issue

My device is Moto edge 20 pro

View attachment 5956653

View attachment 5956655
[Android Apps and Games] zgfg:
Could you explain/list details what exactly you're doing and what did you do so far?
[Android Apps and Games] cof-unique:
Hi Everyone!

I work for a SaaS solution that has been errantly added to adaway. Is there a way to get support for a possible removal?
[Android Apps and Games] Nergal di Cuthah:
What list adaway only maintains one of the default lists, to effect others you'd need to talk to them (i.e steven black is a 3rd party list)
[Android Apps and Games] cof-unique:
It would be Adaway's maintained default list.
[Android Apps and Games] HappyRoms:
I love adaway but is there a reason why it uses a blocklist rather than an allow list? An allow list would be a lot less of a file and easier on resources I would think. Block all unless on list rather than allow all unless on list.
[Android Apps and Games] zgfg:
OMG - please think yourself what would that mean?!

Would you for every new Website you want to open, first add it into your AdAway whitelist (otherwise, it would be blocked to open by default)?!

Then, you open something but theyvhave a link, you click on link and it has to go to some new site that you didn't add yet to your Whitelist and you are blocked again. Would you then inspect which site it wants to open that you can add it to your whitelist to be able to open the link and read further

Etc

Or otherwise, would you maintain a public list of zillions of legit company sites, on-line newspapers on all languages, from everywhere in the world, etc - that all of us, users, can just load your 'whitelist' and be sure that we can use and open every site we need (if it was not in your whitelist that we would be using), AdAway would block it

Would you then promptly add (probably ever minute) new sites to your list - if you don't, you will receive angry reports from us, the users that you didn't add and that we cannot open this or that site because it is not whitelisted by your list
[Android Apps and Games] HappyRoms:
Yes I would like this. I don't visit many sites. It would be a smaller list than blacklist for myself.
[Android Apps and Games] zgfg:
AdAway is based on standard IP v4/V6 hosts file. Hosts file does not allow wildcards - to block everything, you would need to have in your hosts file like:

127.0.0.1 *

and after that whitelisted only those domain names you want to allow

Look for other AdBlockers if they support what you wanted
[Android Apps and Games] HappyRoms:
Yeah I'm looking. I love Adaway though over most the others I've found so far. I found an app that can whitelist apps but not individual connections. Would be epic
[Android Apps and Games] DiamondJohn:
Its actually a LOOOOOOT more complex that what you realise. When you go to a web page via a URL, it is NOT just that host in the address bar that the browser has to access. Just about every web page you will visit is made up of the HTML (that you are seeing), CSS, Scripts, Images and more. If you look at the source, a LOT of these ancillary items are sourced from different hosts. And if one of the hosts is blocked, the web page will more than possibly fail to render. To find these hosts you would now need to allow, you would have to look and decipher each page BEFORE you visit it, but if its blocked you cant see it.

Host blocking (eg AdAway) in a way depends on this fact, as ads are normally sourced from a different hosts; just as the valid images, scripts, CCS etc etc would be.

I have never used the non-root version, but maybe its possible to approach what you are asking with wildcards like www.a* IDK

Just be careful what you wish for. A few years back I build a mega IP block for my desktop. Browsing was a chore.
[Android Apps and Games] Sanman99:
Any way to install module on KernelSu?
[Android Apps and Games] Nergal di Cuthah:
It's not a module. If kernelsu has a way to bind the system's host file to the systemless host file then Adaway will be able towork in root mode. If not then you can still use adaway in its nonroot vpn mode.
[Android Apps and Games] stephtban:
If my memory is good, you just have to install this module in kernelsu to make adaway work magic_overlayfs . Give it a try and if it doesn't work just uninstall it.
[Android Apps and Games] Sanman99:
yep

thanks

AdAway had some hosts file from when I had Magisk maybe. But now it can update it.
[Android Apps and Games] zgfg:
About three or four weeks ago there were few posts here, first with attachement and later with link to GitHub with Systemless hosts module for KSU (hence for AdAway)
[Android Apps and Games] Sanman99:
the same one as "magic_overlayfs"? or should i scroll back?

at least this seems to work ok for now
[Android Apps and Games] zgfg:
Magic Overlay is generic solution to mount anything as read-write to System

Modules I mentioned were just to mount /system/etc/hosts as read-write (for AdAway), on KSU
[Android Apps and Games] m0han:
As those names seem to imply, 'systemless hosts module for kernelsu' and 'magic_overlayfs' are two different modules, I should think.

Edit: See more clear answer above.
[Android Apps and Games] sir_bazz:
Thank you.

This had been doing my head in.
[Android Apps and Games] gallegonovato:
Good afternoon:

I wanted to comment on a detail I found in Adaway, with the Vpn option.

Sometimes it disconnects by itself. And if you restart the mobile, when you restart the mobile. Adaway appears stopped. And you have to hit the center button to activate it.

But I also found that, you have to go to the phone settings, look for the connections option. And for example on my friend's phone that I tested, a Samsung, go to more connection options. And there look for Vpn. And Adaway https://ibb.co/LzQVLMm will come up (click on the cogwheel). And it will come up https://ibb.co/dQ5B4F3

If you check the first option. It will always connect. And if you check the second one it will also use the blocking lists you have in Adaway.

This second option, I believe that it can enter in conflict with the option that GKid94 in https://github.com/AdAway/AdAway/issues/3975#issue-1835251700 comments.

Also in case it fails check https://github.com/AdAway/AdAway/issues/3907#issuecomment-1646449832

But Adaway when restarting the mobile usually appears stopped. And so it can be solved.

It would be necessary to comment to the users these options.

I apologize if you commented it more times. But I always use Adaway as root. Since I always root them and installed Lineageos without gaps, microg and so on...

But seeing the problems of people commenting on the github. So I used a friend's phone as a guinea pig.

I do not know if what I comment, can help. I hope so. And if I mess something up, I apologize.

Best regards
[Android Apps and Games] s--c:
Hi I'm using latest adaway rooted and trying to whilst a website. But it's coming up still with the adaway logo in the browser when I try to load websites. Any reason why adaway is not allowing?
[Android Apps and Games] gallegonovato:
Good afternoon:

Could you give a little more information.

What lists or host sources do you have in Adaway. What pages are you running?. Are you using Magisk? Etc...

Best regards
[Android Apps and Games] s--c:
Ah it was the local web server causing the issue for self signed certificate sites not to load.. I haven't installed the adaway self signed certificate and I'm not sure if it's needed.

Running stock hosts in adaway, latest version, magisk alpha latest version with systemless hosts enabled.

Not sure how to fix the issue as it seems to be with the certificate of the website.
[Android Apps and Games] SchWeinSAuG:
hey there,

using adaway since years. never had any problems. but since 2 weeks more and more ads start to appear on my device.

oos13 rooted

magisk 26.1 canary

adaway 6 1.1 root mode, always worked for me

chrome settings

- no preloading pages

- no secure DNS

anyone with same experience?
[Android Apps and Games] Nergal di Cuthah:
Are you running a Proxy or vpn?

Private dns in android settings?
[Android Apps and Games] zgfg:
Check if AdAway shows that all Hosts sources are up-to-date

If not, push to update and then reboot

However, you are free to add more Hosts sources, not just the three that come by default with AdAway

Eg, I have 12 Hosts sources that block me about 390K sites (modest)

Some people here use more Hosts Sources or use some that block many more sites (like 4M or more)
[Android Apps and Games] SchWeinSAuG:
no proxy or vpn

private dns is disabled

the strange thing is that adaway was always working .... before now ads start to come through
[Android Apps and Games] SchWeinSAuG:
well, all up to date.

View attachment 5972367

ads still appear like ive no adaway installed.

might it be that the new magisk version is responsible ? read nothing about magisk issue ...

cheers
[Android Apps and Games] Feduz:
the hosts file is updated? try with Magisk Delta, some versions of Magisk have issues
[Android Apps and Games] SchWeinSAuG:
yeah , that was the first thing i checked. hostfile is updated.

First time i hear from magisk delta.

gonna give it a try

View attachment 5972373
[Android Apps and Games] gallegonovato:
Good afternoon @s--c

You say you are using magisk alpha. But the latest stable version is 26.1 you can check it out at https://github.com/topjohnwu/Magisk

If I'm not wrong now Adaway doesn't work well with Magisk Canary. And with magisk alpha I can't tell you.

I use Adaway in root. With the latest version of Magisk (from the link I give you). With systemless hosts, Lsposed, XprivacyLua. And without any problem.

I don't know if any of my colleagues can give you or tell you something else that I don't know.

Let's see if they can help you better.

Best regards
[Android Apps and Games] SchWeinSAuG:
sorry for hijacking your answer.

i got the same magisk version installed, and for me adaway is not blocking anymore.

i am oos13

set up pixel 7a for my girl as well, with rooted stock OS ... ads will appear also on her phone.

so i guess its not a OS related issue.

you are on 26104 or 26105 magisk ?
[Android Apps and Games] zgfg:
I'm updating to every Canary when released, currently on 25105, previously 25104, etc, no problem.

I had also Delta, it worked the same way.

IMO, switching to Delta will not change anything (there was a problem in some old Canaries 2520xx but that was long ago fixed in Canary)

Where do you see ads - in some particular apps or in browser and which browser?
[Android Apps and Games] dvhttn:
I'm on 26106 and have noticed no more ads than before on the 25xxx series of Magisk. By that I mean that you will always see some ads on apps where they are included within the app itself and you can't get away from that except, if an option, to pay for the 'no ads' option.

Oh, I just click the 'systemless hosts' option and that's it ....
[Android Apps and Games] gallegonovato:
Good afternoon @SchWeinSAuG

The version I have of Magisk, is the latest version from topjohnwu from the link https://github.com/topjohnwu/Magisk . The latest release is 26.1

I do not get the ones you mention.

I use it in Lineageos, with Adaway in root mode. In Nexus 6p. And I use free or open source software. Even in browsers and everything perfect.

It even blocks connections I don't want from the web or so.

Even on my friend's phone that he uses Lineageos with the most basic Google stuff installed. And he also doesn't complain about anything.

A hug
[Android Apps and Games] SchWeinSAuG:
26105 is the version i got installed as well, latest version.

ads will most likely appear in chrome browser, not on every site but a lot. never had this issue. secure browsing and private dns is off.

ok, if i open the same website where ads appear (chrome) in opera browser (even with opera browsers internal ad blocking disabled ) i see no ads...

must be a chrome thing.

you can try yourself

with chrome browser open heute.at

do you see ads as well ?
[Android Apps and Games] DiamondJohn:
Have you explicitly tried pinging any block hosts? I had an issue where the provider was doing something with my data connection that bypassed the host file. But it worked on WiFi. Check with a ping in your shell. It may be an OS OR a provider issue.