首页 > 代码库 > 解压system.img重新打包system.img

解压system.img重新打包system.img

file system.img

./out/host/linux-x86/bin/simg2img out/target/product/msm8610/system.img system.raw.img
mkdir system_new
sudo mount -t ext4 -o loop system.raw.img ./system_new

cp ./system_new ./test

./out/host/linux-x86/bin/make_ext4fs -l 1024M -s -a system system_new.img ./test

./out/host/linux-x86/bin/simg2img out/target/product/msm8610/system_new.img system.img

解压system.img重新打包system.img