Super.img Unpack Repack Jun 2026

mkdir -p $OUT_DIR cd $OUT_DIR

img2simg new_super.img new_super_sparse.img super.img unpack repack

Devices with Android 11+ and Virtual A/B use snapshots. Modifying super.img on VAB devices is riskier. It is safer to: mkdir -p $OUT_DIR cd $OUT_DIR img2simg new_super

lpmake --metadata-size 65536 --super-name super --block-size 4096 --group group_android:$GROUP_SIZE --partition system_a:readonly:0:group_android --image system_a=./system_a.img --output new_super.img super.img unpack repack

After customizing one or more logical partitions, you need to pack them back into a valid super.img that Android’s bootloader and update engine accept.