• topjohnwu's avatar
    Support recovery based Magisk · 1cd45b53
    topjohnwu authored
    Some devices (mainly new Samsung phones we're talking here...) using
    A only system-as-root refuse to load ramdisk when booted with boot
    no matter what we do. With many A only system-as-root devices, even
    though their boot image is kernel only, we can still be able to add
    a ramdisk section into the image and force the kernel to use it as
    rootfs. However the bootloader on devices like the S10 simply does
    not load anything within boot image into memory other than the kernel.
    This gives as the only option is to install Magisk on the recovery
    partition. This commits adds proper support for these kind of scenarios.
    1cd45b53
boot_patch.sh 6.3 KB