Create a flashable AnyKernel3 zip
masterFollow these steps to package your kernel release into an AnyKernel3 flashable zip:
- Kernel Files: Place your kernel build product (e.g.,
Image.gz-dtborzImage) in the zip root. Include any requireddt,dtb,recovery_dtbo,dtbo,system_dlkm, orvendor_dlkmfiles in the root as well. - Ramdisk/Modules: Place ramdisk files in
/ramdisk(or/vendor_ramdiskfor multi-partition vendor_boot v3 support). Place module files in/modulesusing their full path (e.g.,/modules/system/lib/modules). - Patches: Place patch files (used with AK3 file editing commands) in
/patch(or/vendor_patchfor vendor_boot v3). - Configuration: Modify
anykernel.shto define your kernel's name, boot partition location, ramdisk file permissions, and ramdisk modification methods. You can optionally add banner or version files to the root to display them during flashing. - Packaging: Use
zipto create the final package, ensuring you exclude git and documentation files.
Important Notes:
- The
LICENSEfile must remain in the final zip. - For broadest compatibility, modify existing ramdisk files rather than replacing them entirely.
- If using a recovery that requires signature verification (e.g., Cyanogen Recovery), you must sign the zip separately.
- For debugging, append the suffix
-debuggingto your zip filename to enable the creation of a debug.tgzof/tmp.
zip -r9 UPDATE-AnyKernel3.zip * -x .git README.md *placeholder