Users are reporting widespread issues with accessing the hosts file in Magisk 28.1 and newer versions. The hosts file, typically located at /data/adb/modules/hosts/system/etc/hosts, is inexplicably locked for both reading and writing.
This issue affects both the built-in systemless host module and third-party modules like gloeyisk's hosts file manager. Users who downgraded to Magisk 27.0 confirm that the hosts file access functionality works correctly in that version.
The issue persists regardless of whether users are using the Magisk Release or Canary versions. AdAway, a popular hosts-based ad blocker, is also affected and explicitly directs users to check their Magisk module settings.
While the exact cause remains unclear, the file permissions do not appear to be the culprit. The hosts file has a permission of 644 (-rw-r--r--) and its parent directory has a permission of 755 (drwxr-xr-x).
This issue highlights a significant regression in Magisk's functionality and underscores the need for Magisk developers to address it promptly.
This article is created by nurl and is licensed under the Creative Commons Attribution 4.0 International License.
All articles on this site, unless otherwise specified as reprints or sources, are either original works or translations by this site. Please ensure proper attribution before reprinting.