【问题标题】:Sign ota package for android为 android 签署 ota 包
【发布时间】:2017-09-19 13:04:28
【问题描述】:

我在这个命令的帮助下创建了签名的目标文件:

./build/tools/releasetools/sign_target_files_apks -d ./device/bl/common/security -e app.apk=device/bl/common/security/releasekey -o target.zip signed_target.zip

这条指令成功完成。 现在我尝试在此命令的帮助下创建签名的 ota 包:

./build/tools/releasetools/ota_from_target_files -k ./device/bl/common/security/releasekey signed_target.zip ota_signed.zip

但我有错误:

Traceback (most recent call last):
  File "./build/tools/releasetools/ota_from_target_files", line 925, in <module>
    main(sys.argv[1:])
  File "./build/tools/releasetools/ota_from_target_files", line 893, in main
    WriteFullOTAPackage(input_zip, output_zip, OPTIONS.fota)
  File "./build/tools/releasetools/ota_from_target_files", line 464, in WriteFullOTAPackage
    MakeRecoveryPatch(OPTIONS.input_tmp, output_zip, recovery_img, boot_img)
  File "./build/tools/releasetools/ota_from_target_files", line 386, in MakeRecoveryPatch
    boot_type, boot_device = common.GetTypeAndDevice("/boot", OPTIONS.info_dict)
TypeError: 'NoneType' object is not iterable

我该如何解决?

【问题讨论】:

    标签: android ota


    【解决方案1】:
    ./build/tools/releasetools/ota_from_target_files -d MMC -k ./device/bl/common/security/releasekey signed_target.zip ota_signed.zip
    

    【讨论】:

    • 请解释为什么这会解决问题。谢谢
    • -d MMC 设置闪存或 emmc 存储
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2010-11-01
    • 1970-01-01
    • 2013-12-25
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多