我借助此命令创建了签名目标文件:
./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
我该如何解决?
答案 0 :(得分:0)
./build/tools/releasetools/ota_from_target_files -d MMC -k ./device/bl/common/security/releasekey signed_target.zip ota_signed.zip