(1):file system.img 查看当前文件的类型。本人使用的是Android 4.4版本,其system.img文件为 Linux rev 1.0 ext4 filesystem data

(2):对应ext4 文件的,采用挂载分区的方式来打开system.img文件,sudo mount -t ext4 -o loop system.img  systemimg(systeming 为新建的文件夹) 

(3):增加、删减APK sudo cp   sudo rm

(4):压缩文件systeming文件夹,使用工具make_ext4fs,使用前应给其授权chmod 777 ./make_ext4fs

    ./make_ext4fs -l 1024M -s -a system system_new.img systemimg

(5):检查压缩后产生的system_new.img的文件格式,file system_new.img 。本人检查后为data类型,故还需要将其转换为Linux rev 1.0 ext4 filesystem data

(6):使用工具simg2img。

    chmod 777 ./simg2img

    ./simg2img system_new.img system_out.img

   核对file system_out.img。输出Linux rev 1.0 ext4 filesystem data

(7):重新烧入目标板