Unpack the images from super.img

November 11, 2025

Unpack the images from super.img

  • When you build AOSP, host tools are also built.
  • Since the Super Image is a Sparse image, it must be converted to raw before unpacking.
  • The file system varies according to BOARD_*_FILE_SYSTEM_TYPE, and in the case of ext4, it can be mounted with mount -t ext4.
  • If it's erofs, a separate tool (e.g., erofsfuse) is required for mounting.
  1. You need to convert the Sparse Image to a raw image.
Sparse image to raw image
sh
  1. You need to extract the Super Image, which consists of multiple partitions.
Extracting partition images from super
sh
  1. The file system of the images will appear as ext4, and you must add the offset option for mounting.
Loop mount with offset options
sh
Jooojub
System S/W engineer
Explore Tags
Series
    Recent Post
    © 2026. jooojub. All right reserved.