Modern Android versions use systemless rooting. If systemless mode is disabled in AdAway but enabled in Magisk, the file will not update properly.
The application may be attempting to reach a host that contains a path (e.g., google.com/api instead of just google.com ). This fails in OkHttp. 4. Safety Considerations host fail android skachat
The hosts file is in a read-only partition ( /system/etc ). If AdAway or similar apps cannot gain proper root access to remount this partition as read-write, the file cannot be updated. Modern Android versions use systemless rooting
If your Ad-blocker is failing, try these steps based on common community solutions: This fails in OkHttp
This feature covers the "hosts fail" issue on Android, focusing on how the system hosts file works, why it fails (leading to Unable to resolve host errors or 403 Forbidden errors), and how to manage it, especially with rooting tools like AdAway or manual editing. Android Hosts File Fail: Diagnosis, Causes, and Fixes
A corrupt hosts file, such as one with improper formatting ( IPADDRESS HOSTNAME is required), will fail.