把out/tar 下的system目录打包成ext4的img
sudo ./make_ext4fs -s -l 640M -a system system.img.ext4 system/
./simg2img system.img.ext4 system.img
zhihua@pc:~/m6tv$ file system.img
system.img: Linux rev 1.0 ext4 filesystem data, UUID=57f8f4bc-abf4-0000-675f-946fc0f9f25b (extents) (large files)
zhihua@pc:~/m6tv$ sudo mount -o loop system.img /mnt/system/
zhihua@pc:~/m6tv$ cd /mnt/system/
zhihua@pc:/mnt/system$ ls
app bin build.prop etc fonts framework lib media tts usr xbin
zhihua@pc:/mnt/system$
阅读(977) | 评论(0) | 转发(0) |