1、windows下使用[cofface]unpack huawei app,解包华为官方Update.app包分解出super.img;
2、从super.img分解出system.img,erofs已经合入4.20 linux内核,所以建议使用4.2+版本以上内核的linux系统,我是使用ubuntu20.04beta 64位,内核版本(5.4),分解super.img使用工具包里面的lpunpack:
1)、将sparse格式转换为ext4格式: ./simg2img super.img super.img.ext4
2)、lpunpack分解super.img.ext4(工具也可以自己用Android源码编译): ./lpunpack super.img.ext4
3、ubuntu 切换到root用户下: mkdir -p /mnt/system
mount -t erofs -o loop system.img /mnt/system
|