Timeline for root - Can't edit hosts file
Current License: CC BY-SA 4.0
12 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 14, 2023 at 16:25 | vote | accept | Miles Morales | ||
Jan 12, 2023 at 13:45 | answer | added | Miles Morales | timeline score: 1 | |
Jan 12, 2023 at 11:45 | comment | added | Firelord♦ | And turns out, if I use 'Systemless hosts' method, edit the hosts and then disable it in the Magisk Modules section, the hosts file in /system/etc/ revert back any changes -- this is intended behavior. Systemless hosts is a magisk feature. It overlays this new hosts file over the one that your OEM shipped. Thereafter any changes made to the hosts file are actually made to this overlay hosts file. By disabling systemless hosts, no overlay would be there and the actual hosts file of the system would be used. | |
Jan 12, 2023 at 11:33 | comment | added | alecxs | Do you know AdAway? what's the point of uninstall Magisk? you know you can set to always denial? | |
Jan 12, 2023 at 9:33 | comment | added | Miles Morales |
I was planning to uninstall root after editing the hosts. And turns out, if I use 'Systemless hosts' method, edit the hosts and then disable it in the Magisk Modules section, the hosts file in /system/etc/ revert back any changes.
|
|
Jan 12, 2023 at 9:29 | comment | added | Andrew T.♦ | Perhaps How does Magisk work? may give some insight into the "systemless" feature. | |
Jan 12, 2023 at 9:16 | comment | added | Andrew T.♦ | To be honest, I was just a casual Magisk user and didn't really understand how it works, so I can't explain it. For "not blocking the site", if you're using Chrome, then perhaps Modifying hosts file does not have any effect may be related (DNS cache). Other browsers/apps might have a similar feature. | |
Jan 12, 2023 at 9:02 | comment | added | Miles Morales |
@AndrewT. What's going on? After rebooting, I can edit the /system/etc/hosts file but it's not blocking the site. Can you please explain what exactly did I do by clicking on 'Systemless hosts' ?
|
|
Jan 12, 2023 at 8:50 | comment | added | Andrew T.♦ | Perhaps Where is the "systemless hosts" file under Magisk? may help? | |
Jan 12, 2023 at 8:44 | comment | added | Miles Morales | @AndrewT. It says 'support for ad blocking'. But I want to block some particular sites. How can I do that? | |
Jan 12, 2023 at 8:40 | comment | added | Andrew T.♦ | Since you're using Magisk, didn't Magisk have an option for Systemless Hosts? | |
Jan 12, 2023 at 8:36 | history | asked | Miles Morales | CC BY-SA 4.0 |