【问题标题】:Issue in Android OTA creation using the ./build/tools/releasetools/ota_from_target_files tool使用 ./build/tools/releasetools/ota_from_target_files 工具创建 Android OTA 时出现问题
【发布时间】:2019-02-20 10:10:35
【问题描述】:

我使用OTA Package tool 中提到的步骤为高通构建了 Android 开源项目 (AOSP)

现在我想为此创建完整和增量的 OTA 包,我也参考了上面链接中提到的相同命令,但我收到以下错误:

xxx@SRS-DT-041:/media/xxx/external/xxxx/apq8096au-la-1-3_ap_standard_oem.git/LINUX/android_working$ ./build/tools/releasetools/ota_from_target_files /media/xxx/external/xxx/apq8096au-la-1-3_ap_standard_oem.git/LINUX/android_working/dist_output_xxx/msm8996-ota-eng.xxx.zip  OTA.zipTraceback (most recent call last):
  File "./build/tools/releasetools/ota_from_target_files", line 1996, in <module>
    main(sys.argv[1:])
  File "./build/tools/releasetools/ota_from_target_files", line 1887, in main
    OPTIONS.info_dict = common.LoadInfoDict(input_zip)
  File "/media/xxx/external/xxx/apq8096au-la-1-3_ap_standard_oem.git/LINUX/android_working/build/make/tools/releasetools/common.py", line 169, in LoadInfoDict
    raise ValueError("can't find META/misc_info.txt in input target-files")
ValueError: can't find META/misc_info.txt in input target-files
xxx@SRS-DT-041:/media/xxx/external/xxx/apq8096au-la-1-3_ap_standard_oem.git/LINUX/android_working$ 

【问题讨论】:

    标签: android


    【解决方案1】:

    我认为问题在于您没有使用“目标文件”来生成 OTA。 “目标文件”似乎是 out-folder 中生成的 OTA。

    语法是:

    $ ./build/tools/releasetools/ota_from_target_files <target_file_as_input> <ota_file_as_output>
    

    目标文件通常位于:

    out/dist/*-target_files-*.zip
    

    在我的 AOSP 中我这样做:

    $ ./build/tools/releasetools/ota_from_target_files ota/dist/dajo-target_files-eng.david.zip ota.zip
    

    【讨论】:

      猜你喜欢
      • 2016-12-30
      • 1970-01-01
      • 2019-06-23
      • 1970-01-01
      • 1970-01-01
      • 2019-06-08
      • 1970-01-01
      • 2023-03-20
      • 1970-01-01
      相关资源
      最近更新 更多