• Andrew Gunnerson's avatar
    Fix booting into recovery with Android 13 GKI kernels · 1f8c063d
    Andrew Gunnerson authored
    With Android 13 GKI kernels, the boot partition has no ramdisk, so
    Magisk constructs one from scratch. In this scenario, there's no backup
    init binary at /.backup/init. For normal boot, magiskinit will symlink
    /init -> /system/bin/init if needed. This commit implements the same
    for booting into recovery. Before, magiskinit would just exec itself
    over and over again because it couldn't restore the backup init.
    Signed-off-by: 's avatarAndrew Gunnerson <chillermillerlong@hotmail.com>
    1f8c063d
twostage.cpp 2.3 KB