标题: 鸿蒙更新包 update.bin 解包工具
时间: 1天前发布,1天前修改
抓包获取一个鸿蒙全量更新包(update_full_base.zip)
电脑开热点给手机,然后用 Wireshark 在电脑上抓包,再在手机上下载更新即可。鸿蒙的更新包地址是 http 的,直接就能看到(但是应用商店地址是 https 的,抓不到)。
在 Wireshark 显示过滤器里输入 http 来突出显示下载地址。
在大版本更新(比如 5.1 更新到 6.0)的时候可以抓到全量更新包,文件名为 update_full_base.zip。
安装依赖
sudo apt install git python3 python3-xmltodict python3-cryptography python3-asn1crypto
下载解包工具
git clone https://gitcode.com/hu60/update_unpackaging_tools.git
解压全量更新包
mkdir update_full_base
cd update_full_base
unzip ../update_full_base.zip
解包 update.bin
../update_unpackaging_tools/unpack_update_bin.py -i ./update.bin -o .
解出来的包会在自动创建的 unpack_result_xxx 文件夹里。
安装挂载 system.img 所需依赖包
如果内核直接支持erofs文件系统则无需安装
sudo apt install erofsfuse
挂载 system.img
cd ./unpack_result_*
mkdir system
sudo mount -t erofs ./system.img ./system
cd ./system
ls
以下文件也可以用相同的方式挂载:
chip_prod.img
cust.img
patch.img
sys_prod.img
system.img
vendor.img
『回复列表(1|隐藏机器人聊天)』