Magisk has always been known for its powerful features and capabilities in customizing the Android experience. However, users of Magisk v28 (version code 28001) have reported an issue involving permissions to the crucial `/etc/hosts` file.
This file plays a vital role in ad blocking through apps like Adaway. Adaway modifies the `/etc/hosts` file to redirect ad requests, effectively blocking them.
Prior to Magisk v28, users could easily manage permissions for the `/etc/hosts` file, including disabling read access for 'other' users. This was crucial for optimizing ad blocking performance and preventing potential conflicts.
However, with Magisk v28, attempting to modify the permissions of the `/etc/hosts` file results in an error message stating 'Sorry, the operation failed'. This prevents users from gaining the necessary access to optimize their ad blocking setup effectively. This issue appears to persist even with alternative file managers like 'Root Explorer'.
As a workaround, downgrading to Magisk v27 allows users to regain access to the `/etc/hosts` file for permissions management. This highlights a potential regression in Magisk v28 that needs to be addressed.
We urge the Magisk development team to investigate this issue and implement a fix in future updates. A solution could involve adjusting the underlying permission handling or providing alternative methods for managing `/etc/hosts` file access in Magisk v28. Users rely on Magisk for its versatility, and restoring proper `/etc/hosts` file permissions management is crucial for maintaining a smooth and optimized user experience.
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.