![]() ![]() Usually, system properties are designed to only be updated by `init` and read-only to non-root processes. In this mode, service scripts are executed. Later in the booting process, the class `late_start` will be triggered, and Magisk “service” mode will be started. The daemon `magiskd` will be launched, post-fs-data scripts are executed, and module files are magic mounted. This triggers on `post-fs-data` when `/data` is decrypted and mounted. – Execute the original `init` to continue the boot process post-fs-data – Patch `init` or `libselinux.so` to force the system to load the patched policies – Patch sepolicy rules and dump to `/sepolicy` or `/sbin/.se` or `/dev/.se` – Load sepolicy either from `/sepolicy`, precompiled sepolicy in vendor, or compile split sepolicy On legacy system-as-root devices, we switch root to system on 2SI devices, we patch fstab and execute the original `init` to mount partitions for us. `magiskinit` will replace `init` as the first program to run. Magisk v21.2 zip file download Magisk Booting Process Pre-Init ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |