android - 增量 OTA zip 未生成

标签 android embedded android-source ota

我正在尝试生成 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 文件

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

将生成增量 OTA 文件。

关于android - 增量 OTA zip 未生成,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46660805/

相关文章:

c - 有人曾经将 I2C 拆分到两个微 Controller 上吗?

android - 在 AOSP 设备上保持 Wifi-Direct 打开

android - 如何保持按钮禁用任何editText为空?

android - Cordova 6.0.0 安卓 : INSTALL_FAILED_VERSION_DOWNGRADE

java - 如何使 TableLayout 响应式

c - 用于嵌入式应用的音频 (MP3) 编解码器

c++ - 当 std::atomic<T>::is_always_lock_free 为 false 时,std::atomic<T> 对于中断是否安全?

java - 给定 SMS 字符串的正则表达式是什么

java - 如何在android JellyBean 4.2.2中开发自定义状态栏

android - UiAutomation vs AccessibilityService