[Recovery]如何编译差分升级包

[Recovery]如何编译差分升级包

[DESCRIPTION]

Two types of OTA update image can be selected. One is full OTA update image and the other is differential OTA update image.
The only advantage of differential OTA is the package size of it is smaller than the one of full OTA.

[SOLUTION]

Need two code bases (V1codebase and V2codebase) to build V1_2 differential
OTA update image as following steps:
1. Change directory to root of V1 codebase
2. ./makeMTK $(project) bm_new
3. ./makeMtk $(project) otapackage
4. Copy
out/target/product/$(project)/obj/PACKAGING/target_files_intermediates/<pr
oject>_target_files-<user>.zip to the root directory of V2 as V1_org.zip
5. Change directory to root of V2 codebase
6. ./ makeMtk $(project) bm_new
7. ./makeMtk $(project) otapackage
8. Copy
out/target/product/$(project)/obj/PACKAGING/target_files_intermediates/<pr
oject>_target_files-<user>.zip to the root directory of V2 as V2_org.zip
9. ./build/tools/releasetools/ota_from_target_files –k <key_path>-i
V1_org.zip V2_org.zip V1_2.zip
关于key_path的取值。查看projectcongfig.mk.
如果MTK_SIGNATURE_CUSTOMIZATION=yes并且MTK_INTERNAL=no,
<key_path>的值为:build/target/product/security/[Project]/releasekey
如果MTK_SIGNATURE_CUSTOMIZATION=yes并且MTK_INTERNAL=yes,
<key_path>的值为:build/target/product/security/common/releasekey
如果MTK_SIGNATURE_CUSTOMIZATION=no,<key_path>的值为:build/target/product/security/testkey
另外,可以直接查看make -j24 otapackage的最后部分的打印出来的log,里面包含了签名的路径。


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值