增量OTA zip不会生成

时间:2017-10-10 07:23:08

标签: android embedded android-source ota

我正在尝试生成minor.zip(Incremental OTA zip)文件。

  

主页$ build / tools / releasetools / ota_from_target_files -i   出/目标/产品/ XXX / OTA_20170916.zip   出/目标/产品/ XXX / OTA-20171010.zip   出/目标/产品/ XXX / minor.zip

unzipping target target-files...
Traceback (most recent call last):
File "build/tools/releasetools/ota_from_target_files", line 2028, in 
<module>
main(sys.argv[1:])
File "build/tools/releasetools/ota_from_target_files", line 1937, in 
main
OPTIONS.info_dict = common.LoadInfoDict(input_zip)
File "build/tools/releasetools/common.py", line 141, in LoadInfoDict
raise ValueError("can't find recovery API version in input target-files")
ValueError: can't find recovery API version in input target-files

这个错误即将来临......

我关注了这个网站http://solarex.github.io/wiki/Android/android_ota_update.html

请帮助您克服此错误

1 个答案:

答案 0 :(得分:1)

我获得了增量OTA zip创建的解决方案。

步骤1:从out / target / product / xxx / obj / PACKAGING / target_files_intermediates /

复制新的OTA和旧OTA zip文件

第2步:./ build / tools / releasetools /ota_from_target_files -i old.zip new.zip update.zip

将生成增量OTA文件。