Pack and unpack boot.img or recovery.img of ZenFone2 source code from:
- https://android.googlesource.com/platform/system/core/mkbootimg
- https://android.googlesource.com/platform/system/core/libmincrypt
- https://android.googlesource.com/platform/system/core/include/mincrypt
$ unpackbootimg -i boot.img
$ mkbootimg --kernel zImage \
--ramdisk ramdisk.cpio.gz \
--cmdline "$(cat cmdline)" \
--second second.bin \
--signature signature \
-o boot.img