Unpack the images from super.img
November 11, 2025

Unpack the images from super.img

  • AOSP를 빌드 하면 host tools도 함께 빌드 됩니다.
  • Super Image는 Spare 이미지 이므로 raw로 변환하여 Unpack 해야 합니다.
  • BOARD_*_FILE_SYSTEM_TYPE에 따라 file system은 달라지며, ext4의 경우 mount -t ext4 로 mount 가능합니다.
  • 만약 erofs일 경우 mount를 위해 별도 tool (e.g. erofsfuse)이 필요합니다.
  1. Spare Image를 raw 이미지로 변환해야 합니다.
Sparse image to raw image
sh
  1. 여러 파티션으로 구성되어 있는 Super Image를 extract 해야 합니다.
Extracting partition images from super
sh
  1. 이미지들의 file system은 ext4로 보일 것이며 mount를 위해선 offset 옵션을 추가해야 합니다.
Loop mount with offset options
sh
PreviousHow to take a screen capture in AOSP
Jooojub
System S/W engineer
Explore Tags
Series
    Recent Post
    © 2026. jooojub. All right reserved.