Basics and Common Knowledge
About 365 wordsAbout 1 min
2025-1-3
Patch Points for Different Root Solutions
Magisk
Magisk patches the ramdisk, which is located in the boot partition before partition splitting, and in the init_boot partition after splitting.
提示
If there's an init_boot, patch init_boot; otherwise, patch boot.
KernelSU
This covers the original KernelSU and all its branches.
LKM
When KernelSU uses LKM, it patches the ramdisk to load kernel modules. The location is the same as Magisk
GKI
When KernelSU uses GKI, you need kernel source code to rebuild the Kernel to use GKI. The modified partition is boot.
Apatch & FolkPatch
Apatch is developed based on KernelPatch. Its patch point is the kernel, which is the boot partition.
重要
At any time, Apatch patches the boot partition. Unless Google changes the kernel location in the future, it will always be boot. Patching init_boot is invalid.
Mounting
Magisk
Magisk uses a mounting mechanism generally called Magic Mount, which is built into the Magisk core. It allows you to modify read-only partitions (EROFS:system) without actually modifying system files.
重要
You can indeed use modules like Mountify to make Magisk support Overlayfs mounting, but this is generally meaningless.
KernelSU
This covers the original KernelSU and all branches that have followed up with Meta Module.
Considering that KernelSU has switched to Meta Module for mounting, this section only briefly discusses some Meta Module features.
Meta-Overlayfs
The official mounting implementation maintained by KernelSU, based on the Overlayfs file system of the Linux Kernel. Theoretically, it has better performance and stealth than Magic Mount.
Meta-Magic Mount (rs)
A mounting implementation comparable to Magisk's Magic Mount, with additional features implemented on top of it.
Meta-Hybrid Mount
Provides both Overlayfs & Magic Mount mounting implementations. Considering its special HymoFS has been temporarily removed, it has no advantage over other Meta Modules.
Apatch & FolkPatch
Apatch defaults to using Magic Mount for mounting, with optional Overlayfs support.
注
When Apatch enables Lite Mode, you can use Meta Module. However, considering that mainstream source modules haven't moved away from Magic Mount & Overlayfs, doing so is meaningless.
Copyright
Copyright Ownership:Cassiopeia
License under:Attribution 4.0 International (CC-BY-4.0)
