[cofface]分解华为erofs格式的system.img及分解super.img


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


 
工具包下载:链接:https://pan.baidu.com/s/1LjzyU3lGOpGfvn0pO2FLRA 提取码:zcdi
 

合作联系邮箱:cofface#cofface.com(请将#替换为@)

转载请注明来源:Cofface Blog » [cofface]分解华为erofs格式的system.img及分解super.img

赞 (30) 打赏

感谢您的支持,我会继续努力的!

支付宝扫一扫打赏