Quote:
Originally Posted by
pratikp16
Tried both. No matter what i do, i still get ads. I have the following on my Oneplus 6t running the latest rom:
- magisk 19.3
- systemless hosts module enabled
- symlink of /system/etc/hosts -> /data/data/hosts (this seems to be from the module rather than due to adaway)
- Adaway 4.2.6 installed
- cannot enable the Systemless hosts checkbox in Adaway, every time i try i just get a toast notification about Magisk granting Adaway permissions and then nothing else
- target hosts file set to /system/etc/hosts
Using a file manager i can see that /data/data/hosts has a bunch of entries but this doesn't seem to be picked up. Can see ads in Chrome, Firefox and apps where i wasn't seeing them before.
Quote:
Originally Posted by
pratikp16
I have. A few times since. And also uninstalled and reinstalled Adaway. But it made no difference.
If I disable the systemless hosts module then I get the old hosts file back but then when enabling Adaway I get the message about no space left on the system partition.
What module is setting that symlink?
Unless there is a reason for it, that symlink should not exist.
To remove it manually, boot into recovery (TWRP), mount system and delete /data/data/hosts
Warning! You need at least a stock hosts file in system/etc/ .
My guess, your fighting another issue.
Sidenote:
Odd as it sounds, AdAway seems to fail when my Magisk install was or became broken.
Other apps and modules may work or at least seem to work fine but, if AdAway gave me problems, most of the time it was magisk. (Probably due to the changes in magisk.)
A clean install of magisk normally fixed it.
PS.
I attached the hosts file from 6t (Beta 14) for reference and just incase you need a stock hosts file.
(It's the same as any other generic android hosts file.)
added .txt so I could attach it.
Out of curiosity, how much space is free in system?
(Most file explorers, an app like DiskInfo or
df -ah from shell will show used and free space.)
I set the same symlink on my Nexus 6P and did a little testing.
I tried without and with systemless hosts enabled.
Forgot about the reboot step when not modifying the hosts file systemless. After a reboot it worked.
Remember, some apps/sites will save ads in a cache file for off-line use. If you block the ad server afterwards, you will need to clear the ad cache.