For the record, this worked for me.
My goal is to put this [modified hosts] file in /etc to reduce Internet annoyances.
I have Magisk 21.0 installed as well. You can see below that I am su in adb.
Thanks for sharing!
After boot in adb (... redacted for brevity):Code:
$ su # mount --remount / -w # cd /system # touch junk # reboot
$ adb connect 192.168.1.208 * daemon not running; starting now at tcp:5037 * daemon started successfully connected to 192.168.1.208:5555 $ adb shell gta3xlwifi:/ $ su gta3xlwifi:/ # cd /system gta3xlwifi:/system # ls -l total 104 .. .. drwxr-xr-x 4 root root 4096 2020-10-03 13:09 framework -rw-r--r-- 1 root root 0 2020-10-04 11:56 junk drwxr-xr-x 12 root root 24576 2020-10-03 13:09 lib .. .. gta3xlwifi:/system # rm junk rm ro junk (y/N):y rm: junk: Read-only file system 1|gta3xlwifi:/system #
Just tried it, however it did not work for me. I am on stock 10.
You most likely run a custom 10 ROM, that's why after reboot, your change remains persistent.