教你解包华为U8825D官方固件UPDATE.APP --以B956为例

本文介绍如何从B956官方固件出发,通过特定工具解包UPDATE.APP并提取关键文件,包括boot.img、system.img等,为自制ROM奠定基础。

B956终于出来了,憋了这么久憋出个稳定性{:5_140:}不过也的确存在死机问题(音量、电源还可用)。原生相机早已弃之不用,不然在/DCIM下生成个2G的隐藏文件谁受得了,不知道B956改进了没



闲话说完了,开始正题。

要自制ROM首先得有官方文件,“菜”都没有怎么下厨我们现在说的就是这事儿。要“做菜"自然得要有好厨具,但
安卓厨房”无法直接解包UPDATE.APP不过我们有办法。

步骤一:解包
http://bbs.dospy.com/thread-15484722-1-691-1.html此为菜刀也

将官方固件中的“UPDATE.APP”丢进上面下载的工具目录中和“解包.bat”和放在一起,运行解包.bat”。文件解压后会在“output”文件夹里生成很多文件,我们只需要其中的几个就可以了。下边做个列表对号入座
24       boot.img         包含了内核自然有用
20       unicom.img      就是那个cust目录
16       data               对应data目录,几个小文件
14       system.img      最主要的就是它,对应system目录
12      recovery.img     官方的recovery,有用么?
“upgradable_versions.txt”这个文件其实包含了AMSS.MBN和AMSSHD.MBN

这个工具原本是用于“G300/U8815/U8818”的,所以导出的文件顺序错乱。有兴趣的可以改一下其中的split_updata.pl,这里直接给出序号
另外还可以用recovery模式中的“备份”来提取boot.img(8M)和recovery.img(20M非官方),这个boot.img和我们解出来的file24.mbn(5M)用厨房处理后是完全一样的。

步骤二:提取
打开“DiskInternals Linux Reader”,将file24.mbn等文件拖入窗口,挂载成为驱动器摸样的东东


打开分区


全选后选择SAVE另存,这样就把官方的system目录导出了。导出的时候看着不顺眼的APP还可以删掉。
同理把data,cust导出,以后的事儿就见仁见智了。



参考
  http://bbs.anzhi.com/forum.php?mod=viewthread&tid=5674419
         http://bbs.anzhi.com/forum.php?mod=viewthread&tid=5480856
         http://bbs.shendu.com/thread-2197881-1-1.html
  
xp32, java
-sdk6




非常威猛的官方固件UPDATE.APP解包打包工具(转自XDA论坛) Huawei Update Extractor After messing around a bit with the perl tools available for extracting Huawei update.app files, i got the idea to create an own (windows) tool. Requirements .Net Framework 3.5 Install Extract the content of the zip to a folder somewhere on your system. Execute HuaweiUpdateExtractor.exe I'm planning to create an installer sometime. Usage Press the browse (...) button and select an update.app file. Select a device or unknown and press on the open button. You'll see the content of the update.app file in the listview. Select one or more files and right click. Choose Extract selected from the context menu. Choose the ouput folder and press ok. Or just right click on the list and select Extract all, choose the output folder again and press ok. Press close on the extract window. You can sort the list on sequence, filename and size. Just press on the desired column header. Command line: HuaweiUpdateExtractor extract input output [profile] HuaweiUpdateExtractor repack input output profile Profile The profiles.xml file is used to identify the files in the update.app file. Every file in the update.app has a sequence or type, which is also shown in the list. Those sequences or types are used to identify the file/device partition. Example: system.img recovery.img baseband.img version.txt splash.raw565 boot.img cust.img userdata.img signature crc system.img cache.img cust.img userdata.img modemimage.img boot.img recovery.img signature crc - Root tag of the xml file. - Identifies a device - attribute name: name of the device - attribute author: author of the device - File root tag - Identifies a file - attribute sequence: sequence of the file in update.app - attribute type: type of the file in the update.app - attribute partition: destination partition on the device - attribute signature: used to identify the signature file - attribute checksum: used to identify the checksum file - value: file name You can add or edit devices. If you want them to integrate in newer version, pm 'em to me. I'm gonna make some auto update for the device file somewhere in the future Roadmap - You tell me ... Credits ZeBadger (zebadger@hotmail.com) for figuring out the file headers S34Qu4K3 for the P6 partition layout ngamyarthar for adding ALOT of devices! Changelog
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值