If your Ad-blocker is failing, try these steps based on common community solutions:
Open AdAway, select "revert" or "disable blocking," then re-enable it to rebuild the file.
Modern Android versions use systemless rooting. If systemless mode is disabled in AdAway but enabled in Magisk, the file will not update properly.
Simple but effective, this forces Android to reload the hosts file. Check Root Access: Ensure AdAway has superuser rights.
This open-source app helps you manually edit the hosts file, allowing you to add, edit, or delete specific entries.
A corrupt hosts file, such as one with improper formatting ( IPADDRESS HOSTNAME is required), will fail.
Enable "systemless hosts" in Magisk Manager, then try applying hosts in AdAway again.