yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] manjaroid:
Question about unified hosts Magisk module

I seem to be getting results blocking hosts with Adaway without the unified hosts module installed in Magisk Manager, nor did I enable systemless hosts in Adaway. I'm just using /system/etc/hosts as I've always done with a text editor.

Do I go with systemless or is this a case of a solution in search of a problem?
[Android Apps and Games] PoochyX:
Whatever works for you is the solution to your comfortablity....

([emoji3590]09-09-18[emoji3590])
[Android Apps and Games] ktmom:
You didn't say what your device is. Looking back through your posts, I'm guessing a Moto G4 on a custom ROM.

As long as you don't care about taking an OTA (which is unlikely to be released for this device), then mounting /system isn't a problem for your device configuration. So for you, systemless is optional.
[Android Apps and Games] manjaroid:
In the context of read-only /system and OTA updates, your answer is precisely the info I was looking for. Much of the reading I did (like this Github post) made it sound as if the Magisk module was mandatory and that there'd be troubles without it. I'll stick with the native hosts file but it's good to know systemless is an option.

Yes, my regular phone is a Moto G4 Plus but I've gone back to stock Oreo after test driving a couple Pie ROMs. There was a stock 8.1 OTA update as recently as May 2019 and surely it's the last one.

Thanks!
[Android Apps and Games] XtraWater:
A simple question: should adaway block google ads in Google search results?
[Android Apps and Games] mightyjai:
Not working on A-only device running on Android 10...

Is the latest version not compatible with Android 10 ?
[Android Apps and Games] Shtiff1:
Your first result should be ad based or suggestion ads and they block them for me.
[Android Apps and Games] XtraWater:
Thank you. Unfortunately thy won't blocked for me. I tried many different hosts and just re-installed adaway. Do yiu have an idea what I could do else? It started to show ads a few weeks ago.

Originally the 3 standard hosts were enough.

---------- Post added at 02:12 AM ---------- Previous post was at 01:54 AM ----------

I just figured found the issue and it's totally reproducable. The only questions is, how to solve it.

Im using Samsung Internet Browser. It doesn't block ads in dark mode. In standard mode it's fine. That's weird.
[Android Apps and Games] ktmom:
It does work with A10. Start with, is the systemless hosts module installed in Magisk? Magisk manager -> settings -> tap on systemless hosts after install, reboot and try applying Adaway again.

What device?
[Android Apps and Games] PoochyX:
Systemless host module needs to be activated in magisk for adaway to be effective for systemless host file use

([emoji3590]09-09-18[emoji3590])
[Android Apps and Games] ktmom:
I've been thinking about this. The only thing that makes sense is that to effect the dark mode, the browser is using a data cache that bypasses "normal" DNS calls. Similar to using Chrome's data saver, with the same result.
[Android Apps and Games] thomas140:
Guys, some website block user who used Adblock, any idea how to overcome this? Tried whitelist in the list but failed.
[Android Apps and Games] Ultramanoid:
Yes. Avoid such sites trying to push malware into visitors' devices.
[Android Apps and Games] MichalPlays:
Did someone experienced Problem with Android 10 and Pixel 3 XL devices?

I'm getting an error: Not enough memory on the partition.

Try to change the host file on /data/data/hosts

I'm currently using the latest version of this app :/
[Android Apps and Games] zgfg:
Have you enabled Systemless hosts in Magisk (as mentioned above several times, due to read-only /system in Q)
[Android Apps and Games] MichalPlays:
Already enabled it in Magisk but that probably caused this problem.

Before I did that, the app would just reboot the phone but it was still saying to press the install button.

maybe I have to modify the permissions on the host file at /system/etc/

I have Root Explorer which has a feature th allows me to edit permissions on files
[Android Apps and Games] :
Hello!

Firstly thank you developers for a great app!

I have just one beginners question... Can I use AdAway to manualy block hidden trackers in installed apps? Like Google Analytics etc...?

If I just add "com.google.android.apps.analytics." to blocklist in adaway, will this do the trick?

Thank you :)
[Android Apps and Games] MichalPlays:
alright, I fixed my problem for now.

Did a full unroot and installed magisk boot file via fastboot.

Now the app shows me that it activated successfully after reboot :P
[Android Apps and Games] marciozomb13:
No, won't block the results but depending on the host file you won't be able to access the ad link. These are coded into Google app. Don't think can be blocked via hosts.
[Android Apps and Games] ktmom:
For any app that makes the call by DNS, yes. If an app has an IP hard coded or other DNS work around, no.
[Android Apps and Games] :
Thank you for a reply. I am not sure if understand the difference :) My knowledge is not that great...

So lets take for example this app: https://reports.exodus-privacy.eu.org/en/reports/com.nordvpn.android/latest/#trackers

If I add these lines to blocklist in AdAway, app will not be able to connect to these domains?

- com.appsflyer.

- com.google.android.apps.analytics.

- com.crashlytics.

- com.google.firebase.analytics.

- com.google.android.gms.measurement.

- com.google.tagmanager

- com.google.android.gms.tagmanager
[Android Apps and Games] ktmom:
The answer is the same. Provided the app accesses those domains using DNS, then having those domains in the host sources will prevent access.

Apps can work around DNS by using a proxy server, an IP address, or otherwise bundling access into the app. Adaway can not help in that case.
[Android Apps and Games] creaturevoidof_form:
Is AdAway not supported in Android 10?
[Android Apps and Games] zgfg:
Can you please use search (top right) or just scroll back and carefully read posts from e.g. last two days

---------- Post added at 06:50 PM ---------- Previous post was at 06:48 PM ----------

Instead of theoretical discussion, have you simply entered to your blacklist and tried
[Android Apps and Games] :
I did, but how can I know if its working? Can I see traffic to these domains not happening? :P

How can I check if its working?
[Android Apps and Games] Oswald Boelcke:
At the very above post, that's obviously not names of domains but of apk's etc. Instead of putting e.g. "com.crashlytics." into your blacklist insert crashlytics.com etc.

If this crap is not hard-codded by IP address into an application AdAway should be able to handle it (but certainly depending on YOUR block list(s)). Personally, I haven't anything to complain about.
[Android Apps and Games] dhacke:
Just activate the logging function of AdAway, deactivate Private DNS if it is on and open the app for which you block the adresses.

If the adresses doesn't show up in the AdAway log you know it's working.

And as [MENTION=7408621]Oswald Boelcke[/MENTION] said you must add the exact urls to AdAways Blocklist. Not apk names.

To find urls i can suggest Androlyzer which can analyses apps and show the used urls from a specific app.
[Android Apps and Games] :
I will try all that, thank you for help! :)
[Android Apps and Games] JGradyO:
These are not domains. Adding them to the blacklist won't help.
[Android Apps and Games] zgfg:
As pointed by the other user, you didn't list FQDNs but package names - with AdAway you cannot blacklist/whitelist some apps, only FQDNs (domains)

For AdAway you must have root, hence you can check from the logcat which domains were resolved by DNS and which TCP connections were established while your app is running.

Then add suspicious domains to your AdAway blacklist, restart the phone and test again, and analyze the log again if you still see the ads
[Android Apps and Games] XtraWater:
Fact; in Samsung Internet Browser Beta, all Google ads disappeared.

I don't know If it is because of adaway or the adblock plus addon for the browser. Now it works on dark mode too.

No more Google ads. I tested it plenty of times with keywords like 'Audi'. Samsung internet browser shows Google ads, Samsung internet browser beta doesn't. Everything else is same.

I hope it stays that way.
[Android Apps and Games] guest4711:
It may work if you use the right hostnames. com.google.android.apps.analytics is definitive false, it may be something like analytics.google.com or analytics.apps.android.google.com
[Android Apps and Games] :
I did this. Now I see AdAway is really a fantastic app with smooth, user-friendly and logically arranged options. Thank you developer!

Only one thing I do not understand.

When I enable monitoring and then look at DNS requests results, all domain are in normal shape... like "mozilla.org" or. "hosts-file.net".

... but there is one line on a list that is just "https". Not "https.com", just https.

If i click on it it redirects me to http://www.https.com/, which seems to be Home improvement website, which has nothing to do with any app i use. :eek:
[Android Apps and Games] zgfg:
Some smart ass registered a domain https.com ?
[Android Apps and Games] zgfg:
On the Energized Protection site you can find an extensive list of hosts sources they maintain (calling them packages), of various sizes (bigger packages contain domains that may be rarely used but handling such a big hosts file could cause problems for old devices with small amount of RAM):

https://energized.pro/

https://github.com/EnergizedProtection/block/blob/master/README.md

For AdAway (or DNS66, being an ad-blocker does not require root) you need to take hosts.txt format

For example, Blu is their 'finest mid-range' package, listing 180K of blocked domains (6 MB size for the hosts file), incl. an extensive list of trackers:

https://block.energized.pro/blu/formats/hosts.txt

Pick the one or more (they have also additional packages to block porn or social sites) that suit your needs and add to the hosts sources in AdAway (then update hosts file and restart the phone)
[Android Apps and Games] ipdev:
And it's not even secure. :D

Didn't buy a SSL.

:laugh:
[Android Apps and Games] m0han:
supported. some screenshots.
[Android Apps and Games] kmry:
It's not working for me on pixel 2 android 10 Novembre patch
[Android Apps and Games] ktmom:
We might be able to help if you were specific. Are you using Magisk? Which version? Did you enable systemless hosts in Magisk settings? Reboot afterwards?

Which version of Adaway?
[Android Apps and Games] kmry:
Magisk 20.1, adaway 4.3; well, the systemless host did the trick, thank u very much.
[Android Apps and Games] mahroze:
Been hearing rumors that YouTube will be banning accounts for users with ad blocker software. Is this true? And if so. How to whitelist YouTube in adaway or any workaround coming for it?
[Android Apps and Games] zgfg:
AdAway does not block ads in YT, you need Vanced (root app or Magisk module)

In AdAway you cannot whitelist per apps, in DNS66 you can (and it works without root but it keeps its own VPN connection)
[Android Apps and Games] JAYNO20:
I am having a problem with adaway. It blocks ads everywhere in the OS except for chrome. I've ensured data saver is not on and I've even unchecked and rebooted and then rechecked the systemless module, cleared data/cache on chrome, uninstalled/installed adaway and updated to the most recent version with no luck. I am on the November patch Android 10 on my Pixel 3. It doesn't matter if I'm on Wi-Fi or data ads are not blocked in chrome. Any help I can get will be greatly appreciated.
[Android Apps and Games] zgfg:
For Chrome you need additional procedure as described here:

https://xdaforums.com/mate-9/help/modding-removing-bloatware-blocking-ads-t3971297/post80526823
[Android Apps and Games] ithehappy:
Hi, I'm a long time AdAway user, but never posted here. As it would block Ads almost anywhere including YouTube app too I think. But now it doesn't work on YouTube app (hasn't been blocking any ads within the app for a while though), but also for Chrome it does block the ads., but the space consumed by those ads still remain as an empty, white space! Is there a way i can have them removed? Please refer to the screenshots to see what I'm talking about.

Also additional query, if there's any thing better than Adaway which will block ads for everything on my phone then please mention. I would not prefer one of those VPN rerouting type of apps though.
[Android Apps and Games] smint86:
I can't help you concerning the white space.

If you want to block ads from YouTube on your phone, you'll need a modded version of the app. Look for "Vanced YouTube" here on xda, I got it running as a Magisk module and it's working like a charm. Adblocking and some fancy additional features.
[Android Apps and Games] zgfg:
I don't have empty spaces in Chrome, see #14145 from an hour ago (but it may depend on Web page you're reading)

For YT it was also answered yesterday, #14143
[Android Apps and Games] ktmom:
The empty space in websites is the websites programming to hold a consistent space for the ad. Adaway can't make that space collapse, but a add-on in a browser called uBlock can. It's not available, AFAIK, for the mobile chrome, but there are chrome based browsers like Kiwi browser that can run add-ons. I use Firefox based browsers which also accept add-ons.
[Android Apps and Games] patrickdrd:
adguard can do that as well
[Android Apps and Games] gruby_grubas:
Hi,

I have a problem with setting adaway up after updating to android 10

oneplus 7pro

magisk 20.1

adaway 4.3.0

I have magisk systemless hosts module enabled but still see adds in some apps, where there were none when I was on pie.

I did multiple reinstalations, cache clears but no success.

Any help will be apreciated. Thanks
[Android Apps and Games] drnightshadow:
Use search... already answered about 100-times...

tip: host(s), hardcoded ip
[Android Apps and Games] ktmom:
Adaway Wiki
[Android Apps and Games] PoochyX:
Like the random ads that still come on in YouTube Vance...

([emoji3590]09-09-18[emoji3590])
[Android Apps and Games] 4oo4:
I'm having the same issue on the Pixel 3 with Magisk Canary, I can't seem to find that module though or find those settings in Magisk Manager.

Nevermind, I'm dumb, found it lol
[Android Apps and Games] Ravi_sh594:
Not able to apply the file..
[Android Apps and Games] Ravi_sh594:
Not working
[Android Apps and Games] ktmom:
Are you rooted with Magisk? Have you enabled systemless hosts in Magisk settings?

If you continue to have trouble, detailed information is in order. What device, android version, Adaway version and turn on verbose logging in Adaway then get logs.
[Android Apps and Games] eyaw:
This only happened now..

How to fix this?

Anyone..
[Android Apps and Games] ktmom:
Detailed information is in order. What device, android version, Adaway version, Magisk version, or some other root method?

If you go into the root manager app (Magisk manager) is Adaway turned off there?

Do other apps have trouble? Ones previously installed verses newly installed?

See this post for the latest Adaway release:
[Android Apps and Games] raizor6th:
Hi,

I'm trying to enable ad-blocking on adaway but magisk wont promt to allow/deny root access. I'm using miui11 can you help me!.
[Android Apps and Games] zgfg:
There is a bug in Magisk Manager not prompting for root access upon the clean Magisk installation.

Reported many times in Magisk and Magisk Canary threads - unfortunately, people got bored bt answering to every new user, so please read/search some days back to find the workaround

Sorry, I don't recall cronology of (partial) fixes and workarounds anymore, was it fully fixed in the latest Canary, is it enough just to allow to MM to draw over the other apps, or is it (still) required to update Magisk over itself (same version), to get it fix the database access

PS: First of all, Systemless hosts must be enabled in MM
[Android Apps and Games] ktmom:
MIUI has been particularly bad about having problems with the recent releases of Magisk. If canary doesn't help you, you could try an older release. Maybe 19.2-19.3. Those versions are prior to the "System as Root" changes.
[Android Apps and Games] raizor6th:
Thanks, will try canary or roll back to older version of Magisk.

Thanks, I thought it was adaway. I'll try the older version or canary.

Cheers
[Android Apps and Games] Veerab:
Any adblocker app for non-rooted phone which don't drain much battery
[Android Apps and Games] Ultramanoid:
https://xdaforums.com/android/apps-games/app-dns66-source-host-ad-blocker-root-t3487497
[Android Apps and Games] jamronk:
Clear all data magisk - reboot n open adaway again
[Android Apps and Games] raizor6th:
Adaway works now but on magisk 19.3

Cam I update magisk to latest version? Or I should stay.
[Android Apps and Games] guest4711:
No problem here with AdAway 4.3.0 and Magisk Canary. Systemless hosts activated in MagiskManager.
[Android Apps and Games] kucingbaik2:
i use android 10 custom on kenzo with magisk canary latest

but got error on update ad away

like this

error message " copying of host file failed "

any solutions ??

[IMG="eror"]https://i460.photobucket.com/albums/qq329/devrx_bucket/Mobile%20Uploads/Screenshot_20191130-120721_AdAway_zpstp5t7g4j.jpeg[/IMG]
[Android Apps and Games] zgfg:
Android 10 - read only system

Did you read above about systemless hosts?!
[Android Apps and Games] kucingbaik2:
thank you problem solved....

work normaly
[Android Apps and Games] :
Magisk 20.1, Adaway 4.3.0, Android 6, systemless enabled.

Blocking does not work at all, and when I try to 'Log DNS requests' inside Adaway, the log file is empty.
[Android Apps and Games] ktmom:
First, what is the size of the hosts file after Adaway had been applied? Another way to determine if the hosts file had been modified is to look at the banner at the top of the file. It will indicate it was modified by Adaway.

Did you reboot after applying the hosts file?

Specifically, what app(s) are still displaying ads?

As far DNS logging, look at the bottom of the wiki page for reasons it might not work.
[Android Apps and Games] :
1.7 MB, yes it is modified by adaway. Yes it is rebooted. Youtube is displaying ads.

But now it looks like ad blocking is working in Chrome, it was not working before, I tested for 2 days. But youtube still display ads.
[Android Apps and Games] ktmom:
You could have saved yourself some hassle by searching "YouTube" in this thread. Adaway can not help with apps that have the ads served internally. There are options though.

BTW, if you have data saver on in chrome, you'll have trouble with ads.
[Android Apps and Games] BhNeP:
You can use Magisk plus the Youtube Vanced module for that.
[Android Apps and Games] martyfender:
Adaway will not block ads in youtube, as has been stated many, many times till we are all blue in the face!
[Android Apps and Games] TotallyAnxious:
[youtube]R9oCznDSW-g[/youtube]

Lol this was way too spot on to not post.
[Android Apps and Games] ttreddy2210:
I think you are using MIUI based rom open app drawer>settings>apps>manage apps>select magisk manager>put auto start on>other permissions>check 3rd option in the screenshot
[Android Apps and Games] NightRiders87:
Hello, what entry should I add to block ads on Facebook messenger?

Wysłane z mojego Redmi K20 Pro przy użyciu Tapatalka
[Android Apps and Games] ktmom:
On any app you can log DNS requests. Then add domains to the blacklist that you want to block.

Facebook has a vested interest in serving you ads (like YouTube and others) so the ads are tightly integrated and don't make DNS requests. Searching this thread should find alternatives.
[Android Apps and Games] PoochyX:
Just use the ad free messenger mod from xda thread just search for it

([emoji3590]09-09-18[emoji3590])
[Android Apps and Games] j1gga84:
Is there an alternative link for http://sbc.io/hosts/hosts because only https links are allowed.

Edit:

You find the answer when you click on the link, nevermind for asking ;)

Regards

Sent from my SM-G960F with Tapatalk
[Android Apps and Games] zgfg:
Go to Energized Protection, there you can find packages of your choice (hosts merged from various sources, incl. also from sbc.io)

You can choose in which format you want (take hosts txt) - and all are hosted by https

See post:

https://xdaforums.com/showthread.php?t=2190753&p=80873149
[Android Apps and Games] cloggdbladdr:
Recently I installed Pixel Experience 10 (Android Q), together with Magisk 20.1. Downloaded Adaway 4.3.0 but failed to apply the host file. It worked when I was using Pie. Is it a known issue with Q?

Edit: Enabled Systemless mode in Magisk and now I can patch host file with AdAway.
[Android Apps and Games] dagobert2000:
Had the same problem here, i just installed LineageOS 17 on my pixel sailfish - since that, ublock is not working any more, as the host file cannot be installed.

But enabling Systemless mode in Magisk made it work again. Thanks for the hint!
[Android Apps and Games] gnabtib8:
delete
[Android Apps and Games] memocatcher:
Is there any way one can block those google search ads, which always appear at the top? See image for reference:
[Android Apps and Games] Wolfcity:
uBlock Origin on Firefox or other browsers that support it like kiwi browser.
[Android Apps and Games] adame09:
Use the Steven black unified hosts file. Blocks major ads everywhere.
[Android Apps and Games] durukanx:
Have some one list for blacklist ?
[Android Apps and Games] Wolfcity:
That's not true for Google search ads. I have Steven Black list in Adaway and if you take a look on my last post ( https://xdaforums.com/showthread.php?t=2190753&p=81218005 )

these ads are blocked with Firefox and uBlock Origin but not with Chrome on the same device.
[Android Apps and Games] ktmom:
As [MENTION=5237901]Wolfcity[/MENTION] says, you need a different solution for this ads. A DNS blocker like Adaway can not block things that don't go through your device's DNS. Those Google ads do not - they have a vested interest :)

There are other options as well as the ublock origin browser plug-in. My preference is to use DuckDuckGo search instead of Google.
[Android Apps and Games] zgfg:
For Chrome you need few more steps in Chrome, then AdAway will perfectly block ads:

https://xdaforums.com/mate-9/help/modding-removing-bloatware-blocking-ads-t3971297/post80526823
[Android Apps and Games] knpk13:
Are DNS blockers and hosts file based blockers the same thing? Because it seems like AdAway is blocking ads on chrome for me without changing anything (default settings chrome and adaway)
[Android Apps and Games] ktmom:
Yes, they are.
[Android Apps and Games] k2828:
Usually i dont have ads even in chrome but a few times per year google ads at the top are shown.

Like right now and its annoys me :D maybe adaway needs an update or so.
[Android Apps and Games] ktmom:
Adaway does exactly what it's designed to do. If there are entries in your hosts file, then Adaway works.
[Android Apps and Games] DiamondJohn:
If you don't get ads in a google search, then something is wrong.:silly: As [MENTION=6617276]ktmom[/MENTION] stated, the app itself does NOT need an update. You can change your block lists by changing your host sources. But dont expect to block google ads at the top of search results in google
[Android Apps and Games] Nergal di Cuthah:
It does block the endpoint for the ads just not the display of them.
[Android Apps and Games] XtraWater:
Samsung internet browser beta with installed adblocker addon. That works.
[Android Apps and Games] Nergal di Cuthah:
Huh? Where'd you come from (couldn't find earlier posts in the last few pages). Why'd you quote me, I said nothing about samsung browser or any other browser.
[Android Apps and Games] Wolfcity:
In the beginning of this topic:

Just to summarize it:

- Adaway doesn't block Google search ads.

- Browsers with adblockers like uOrigin do.

- For Chrome it needs some work:

https://xdaforums.com/showthread.php?t=2190753&p=81221275

- And the main point: Adaway does what it should do .;)

I hope I didn't forget anything, correct me if I'm wrong.
[Android Apps and Games] nighthowl:
Thank a lot!

Reserved