mtk系统如何制作差分包且正确签名?

如何制作差分包且正确签名?

内容 (2014-04-15)

//@ 1. Prepare Target Files


Change directory to root of new codebase


1、./mk <project>new


2、./mk <project> otapackage  (Phone must use this firmware)


3、Copy out/target/product/<project>obj/PACKAGING/target_files_intermediates/<project>-target_files-<user>.zip to 

     root codebase as old.zip

Change directory to root of new codebase


4、./mk <project> new


 

5、./mk <project> otapackage


 

6、Copy out/target/product/<project>obj/PACKAGING/target_files_intermediates/<project>-target_files-<user>.zip to

     root codebase as new.zip

//@ 2. Make update package and signature


7、./build/tools/releasetools/ota_from_target_files -k <key_path> -i old.zip new.zip update.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

mtk系统制作差分包具体命令实例如下:

build/tools/releasetools/ota_from_target_files  -v -s device/mediatek/build/releasetools/mt_ota_from_target_files -k  build/target/product/security/testkey -i xxxx/xxx_v1.0.0/xx_target_files_xx.zip  xxxx/xxx_v1.0.1/xx_target_files_xx.zip update.zip

猜你喜欢

转载自blog.csdn.net/u010867436/article/details/86292255
今日推荐