Android 做OTA升级包出现错误:Could not append verity metadata!: Invalid sparse file format at data block

编译版本,做OTA升级包,报莫名其妙的错误,经检查(命令:df  -h)是服务器硬盘空间缩小到1.8G以下导致,通过删除不需要的log文件以及多余的垃圾文件即可解决该问题。

Could not append verity metadata!: Invalid sparse file format at data block at 49529368
error: file_write: incomplete write
Failed to write sparse file
Traceback (most recent call last):
  File "./build/tools/releasetools/add_img_to_target_files", line 362, in <module>
    main(sys.argv[1:])
  File "./build/tools/releasetools/add_img_to_target_files", line 356, in main
    AddImagesToTargetFiles(args[0])
  File "./build/tools/releasetools/add_img_to_target_files", line 322, in AddImagesToTargetFiles
    AddSystem(output_zip, recovery_img=recovery_image, boot_img=boot_image)
  File "./build/tools/releasetools/add_img_to_target_files", line 65, in AddSystem
    block_list=block_list)
  File "./build/tools/releasetools/add_img_to_target_files", line 80, in BuildSystem
    return CreateImage(input_dir, info_dict, "system", block_list=block_list)
  File "./build/tools/releasetools/add_img_to_target_files", line 171, in CreateImage
    assert succ, "build " + what + ".img image failed"
AssertionError: build system.img image failed

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值