Systemless Adaway With Magisk

klaberte

Senior Member
Jul 19, 2007
357
166
63
1. In Magisk Manager settings enable 'Systemless hosts'.
2. Reboot.
3. Install AdAway. Do not change the 'Target hosts file' setting in AdAway (/system/etc/hosts).
So, just to be 100% clear, once Systemless hosts is enabled and you reboot, when the system thinks it is working with /system/etc/hosts, it is in fact working with a magisk hosts file?
 

oreo27

Senior Member
Sep 24, 2012
649
142
73
So, just to be 100% clear, once Systemless hosts is enabled and you reboot, when the system thinks it is working with /system/etc/hosts, it is in fact working with a magisk hosts file?
Yup. As long as the option is enabled in Magisk. I've tested this out myself.
 
  • Like
Reactions: jsm36

kopitalk

Senior Member
Feb 4, 2012
2,707
2,008
0
Singapore
Just install unified Hosts AdBlock Module from the magisk download list, it has a gui now, no need to use terminal anymore, no need to install adaway.
If using this module, do we still need to enable systemless
hosts option in magisk setting?
Edit: Ok, the module instruction said it has to be enabled.
Edit1: It's so much easier to use AdAway :silly:
 
Last edited:

smashedup

Member
Nov 28, 2012
23
3
0
I've had problems with Magisk/Adaway and SafetyNet on Nougat:
I had no SafetyNet issues, then I activated the 'Systemless hosts' option in Magisk, installed Adaway and downloaded the hosts to the standard path (/system/etc/hosts), which - afaik - at that time should have been 'overmounted' (is that an english term?) with /Magisk/.core/hosts.
Unfortunately it didn't work and I lost SafetyNet (but also the ads, though).

No I updated to Oreo, have Magisk systemless root with SafetyNet compatibility restored and want to try my luck with Adaway again. But I'm a bit afraid of just doing the above steps again. Is there a way to check if Magisks systemless host feature works? Like a symlink in the shell or something?

Thanks a lot for your help, much appreciated!
 
  • Like
Reactions: Tr4sHCr4fT

smashedup

Member
Nov 28, 2012
23
3
0
Thanks for your reply wulfe13.

Yes, of course, in that case I'd be happy.
But like I said (or tried to say), I didn't pass SafetyNet test... :(
 

smashedup

Member
Nov 28, 2012
23
3
0
Nope. No Xposed at the time of the Adaway activation.
Well, maybe I'll just give it a try again...

edit: and it worked! Adblocker + SafetyNet :)
 
Last edited:

dadnammit

Senior Member
Jun 24, 2013
55
8
28
It worked for me too on Oreo.
I just enabled the systemless adblock option in Magisk Manager. Then installed AdAway.
Ad blocker is working and SafetyNet passes.
 

aenima73

Senior Member
Oct 22, 2012
146
23
0
Madrid
Just install unified Hosts AdBlock Module from the magisk download list, it has a gui now, no need to use terminal anymore, no need to install adaway.
How can I access the GUI of Unified Hosts AdBlock, when I click over the module, nothing happens.

Edit: I guess I need the app Unified Hosts Manager
 

coremania

Senior Member
Jan 16, 2016
1,808
557
133
How can I access the GUI of Unified Hosts AdBlock, when I click over the module, nothing happens.

Edit: I guess I need the app Unified Hosts Manager
The module installs a apk for controlling, if not u use a old version. Install it from the downloads which are avaible in the magisk apk and you're good and have the apk installed too.
 

~phoeny~

Senior Member
Mar 30, 2012
55
4
0
So on magisk 16.7 i enabled systemless hosts -> restart -> Installed Unified Hosts adblock module from the magisk app -> restart -> opened "bs.to" in chrome -> still see porn ads.
What did i do wrong?
 

thedemon786

Senior Member
Jul 15, 2012
392
105
0
Delhi
So on magisk 16.7 i enabled systemless hosts -> restart -> Installed Unified Hosts adblock module from the magisk app -> restart -> opened "bs.to" in chrome -> still see porn ads.
What did i do wrong?
use adaway instead. for some reason the unified hosts app doesnt work for me either
 

~phoeny~

Senior Member
Mar 30, 2012
55
4
0
use adaway instead. for some reason the unified hosts app doesnt work for me either
the adaway i get from f-droid?

So i uninstalled Unified Hosts -> restart -> installed adaway -> Let is do its thing-> restart. Still see porn. :eek:

It is using /system/etc/hosts as host location.

I also tried different sites and cleared cache to confirm that the ads are not cached. Oh god i want xposed back. :crying:
 

thedemon786

Senior Member
Jul 15, 2012
392
105
0
Delhi
the adaway i get from f-droid?

So i uninstalled Unified Hosts -> restart -> installed adaway -> Let is do its thing-> restart. Still see porn. :eek:

It is using /system/etc/hosts as host location.

I also tried different sites and cleared cache to confirm that the ads are not cached. Oh god i want xposed back. :crying:
in magisk settings -> enable systemless hosts-> reboot
install adaway -> download/install hosts -> reboot