Unpacking boot image

  • The boot images can be unpacked using a tool called mkbootimg.
unpackbootimg -i boot.img -o ./extracted

Super image

super

  • Super image is a sparse image. Need to convert it to a raw image first.
  • To do that use this tool called simg2img.
simg2img <sparse_image_file> <raw_image_file>
  • Now that we have the raw super image. lpunpack can be used to extract individual images out of the super image.
lpunpack --partition=system_a super.img.raw