dd if=/dev/zero of=ext4.img bs=4k count=2048
mkfs.ext4 ext4.img
tune2fs -c0 -i0 ext4.img
mkdir ext4
sudo mount ext4.img ext4
sudo umount ext4
sudo apt update
sudo apt install -y simg2img img2simg
img2simg ext4.img ext4.img.sparse
simg2img ext4.img.sparse ext4.img.unsparse
simg2img.exe super.img super.img.raw
lpunpack.py -p system_a super.img.raw system_a
https://github.com/craftslab/fsexplorer
- https://android.googlesource.com/platform/system/extras/+/gingerbread/ext4_utils/simg2img.c
- https://cloud.tencent.com/developer/article/2126595
- https://github.com/anestisb/android-simg2img
- https://source.android.google.cn/docs/core/ota/dynamic_partitions?hl=en
- https://thiscouldbebetter.wordpress.com/2021/10/23/creating-an-ext4-filesystem-image-file/
- https://www.jianshu.com/p/aa567960156c
- https://www.youtube.com/watch?v=J5cQdzivtXk