參考資訊:
https://xdaforums.com/t/how-to-make-files-in-system-writable.4514603/
https://xdaforums.com/t/guide-how-to-change-files-in-the-directory-system-with-magisk.4454489/
步驟如下:
1. 安裝Magisk
2. 將想要修改的/system檔案複製到/data/adb/modules/playstore下
3. 修改/data/adb/modules/playstore下的檔案,重新開機即可生效
如下範例是修改/system/usr/keylayout/TitanKey.kl檔案
# mkdir -p /data/adb/modules/playstore/system/usr/keylayout/ # cp /system/usr/keylayout/TitanKey.kl /data/adb/modules/playstore/system/usr/keylayout/ # vi /data/adb/modules/playstore/system/usr/keylayout/TitanKey.kl key 42 SHIFT_LEFT key 253 ALT_LEFT key 158 CTRL_LEFT key 580 ALT_RIGHT key 251 ALT_LEFT key 100 SHIFT_LEFT # reboot