mtk系統如何製作差分包且正確簽名?

2021-09-08 16:01:07 字數 1538 閱讀 4451

如何製作差分包且正確簽名?

內容 (2014-04-15)

//@1. prepare target files

change directory to root of new codebase

1、./mk new

2、./mk otapackage  (phone must use this firmware)

3、copy out/target/product/obj/packaging/target_files_intermediates/-target_files-.zip to 

root codebase as old.zip

change directory to root of new codebase

4、./mk new

5、./mk otapackage

6、copy out/target/product/obj/packaging/target_files_intermediates/-target_files-.zip to

root codebase as new.zip

//@

2. make update package and signature

7、./build/tools/releasetools/ota_from_target_files -k -iold.zip new.zip update.zip

如何取值

檢視projectcongfig.mk.

如果mtk_signature_customization=yes並且mtk_internal=no,

的值為:build/target/product/security/[project]/releasekey

如果mtk_signature_customization=yes並且mtk_internal=yes,

的值為:build/target/product/security/common/releasekey

如果mtk_signature_customization=no,的值為: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 ***x/***_v1.0.0/xx_target_files_xx.zip  ***x/***_v1.0.1/xx_target_files_xx.zip update.zip

OTA差分包製作

在make android系統後,會生成系統的img檔案。make otapackage 會生成sd卡用的全部系統公升級包,有260m多。要生成增量公升級包。需要按以下步驟。mkdir ota source build envsetup.sh choosecom 1 1 7 eng make mak...

Android 差分包製作

1 差分包製作 每次編譯out target product autolink 6dl obj packaging target files intermediates 路徑下都會生成 zip的公升級包,我們製作差分包需要用到這裡的壓縮包。故每次編譯版本需要將out target product a...

AndroidOTA增量包(差分包)製作記錄

製作差分包的流程整理 注 差分包需要有兩版不同的軟體,且製作差分包需要 out target product obj packaging target files intermediates下的 target files eng.lankybin lb.liang.zip原始包,而非 out tar...