增量 OTA zip 未生成

Incremental OTA zip is not generating

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

Home$build/tools/releasetools/ota_from_target_files -i out/target/product/xxx/OTA_20170916.zip out/target/product/xxx/OTA-20171010.zip out/target/product/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

你能帮忙解决这个错误吗

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

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

复制新的 OTA 和旧的 OTA zip 文件

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

将生成增量 OTA 文件。