Proof-of-concept for using Magisk overlay.d
feature, inject .rc
script, replace some file in rootdir in pre-init
.
It is useful for custom kernel and some few modules.
See the script: customize.sh
Check out Magisk overlay.d Documentation for more information.