版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/su749520/article/details/84936714
1. M版本
- ./build/tools/releasetools/ota_from_target_files -s ./device/mediatek/build/releasetools/mt_ota_from_target_files --block -i old.zip new.zip update.zip
2. N版本
- ./build/tools/releasetools/ota_from_target_files -s ./device/mediatek/build/releasetools/mt_ota_from_target_files --block -i old.zip new.zip update.zip
3. O版本
- ./build/tools/releasetools/ota_from_target_files -k $(key_path) -s vendor/mediatek/proprietary/scripts/releasetools/mt_ota_from_target_files -i V1.zip V2.zip update.zip
4. P版本
- ./build/tools/releasetools/ota_from_target_files -k $(key_path) -i s100.zip s101.zip update_s100_s101.zip
5. key_path
关于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