Android4.0各img的解包与打包

来自个人维基
跳转至: 导航搜索

system.img:

$:mkdir operatorDir
$:mkdir operatorDir/mnt-point
$:out/host/linux-x86/bin/simg2img out/target/product/bbk75_cu_ics/system.img operatorDir/system.img.raw
$:sudo mount -t ext4 -o loop operatorDir/system.img.raw operatorDir/mnt-point/

$:sudo out/host/linux-x86/bin/make_ext4fs -s -l 512M -a system system.img.new operatorDir/mnt-point/
$:sudo umount operatorDir/mnt-point/


fat.img

make_ext4fs -s   -l 209715200 -a apps out/target/product/bbk82_wet_jb5/apps.img out/target/product/bbk82_wet_jb5/apps