I usually edit the hosts file via
adb on my devices to block certain time-draining websites.
AFAIK, the bootloader needs to be unlocked to access the phone's file system as read-write via
and to push the edited hosts file with
adb push $LOCAL_PATH/hosts /system/etc/.
After installation, GrapheneOS seems to have a conservative approach when it comes to read-write access to
/system, which is considered (as by myself) a security feature.
Yet, I missed editing the hosts file before locking the bootloader after installation of GrapheneOS and would prefer to get around reinstalling it. Therefore:
What is the easiest way, if existing, to edit a hosts file after finishing the GrapheneOS installation and locking the bootloader?
Alternatively, in case this is not doable without reinstallation:
Is the editing of the hosts file before relocking the bootloader, i.e. directly after/during the installation, the correct approach?
Is there a way to further ease reinstallation of my current setup, apart from backing up app settings?
(While writing the question, it seems more and more likely to me that it would be nonsensical to have a workable read-write access which fits my desired use case, as this would basically cancel out the security advantages of conservative read-write access...)