On Thu, 29 Oct 2026 10:20:19 +0100, Igor Opaniuk <[email protected]> wrote: > Since Android 13 (boot image header version 4) the generic ramdisk lives > in its own init_boot partition and boot holds only the GKI kernel. The > bootmeth loaded boot and vendor_boot only, so such a device could not > reach init unless its images were repacked. > > Scan init_boot like boot and vendor_boot through a shared helper (the > header is the boot image header with a kernel size of 0), load it to > init_boot_comp_addr_r, add it to the partitions libavb verifies (as a > preloaded buffer, like the others) and hand it to bootm through > set_ainit_bootimg_addr(), which then takes the generic ramdisk from it. > A header version 4 device without an init_boot partition still boots > with the ramdisk from boot; a broken init_boot is an error. > > [...]
Reviewed-by: Mattijs Korpershoek <[email protected]> -- Mattijs Korpershoek <[email protected]>
