lunch crDroid_coconut-eng
Replace coconut with your device’s codename.
The -eng (engineering) build includes debugging tools and fastboot bootable recovery. For a final user build, use -userdebug.
Let’s break the keyword into three components: crDroid, recovery.img, and full. crdroid recoveryimg full
To build only the recovery image (fastboot‑flashable recovery.img): lunch crDroid_coconut-eng
mka recoveryimage
On success, the image will be located at: Replace coconut with your device’s codename
out/target/product/coconut/recovery.img
If you want the installable ZIP (for TWRP/Lineage recovery style), build the entire ROM once, or use:
mka otatools
mka bootimage
mka recoveryimage
But recovery.img is all you need for fastboot flash recovery recovery.img.
source build/envsetup.sh