Android7.0 MTK solution for compiling OTA update package error cocould not append verity data!
1. An error is reported when the OTA update package is compiled in the MTK solution of Android7.0, as shown below:
Could not append verity data!: error: file_write: incomplete writeFailed to write sparse fileTraceback (most recent call last): File "./build/tools/releasetools/add_img_to_target_files", line 376, in
main(sys.argv[1:]) File "./build/tools/releasetools/add_img_to_target_files", line 370, in main AddImagesToTargetFiles(args[0]) File "./build/tools/releasetools/add_img_to_target_files", line 313, in AddImagesToTargetFiles AddSystem(output_zip, recovery_img=recovery_image, boot_img=boot_image) File "./build/tools/releasetools/add_img_to_target_files", line 70, in AddSystem block_list=block_list) File "./build/tools/releasetools/add_img_to_target_files", line 78, in BuildSystem return CreateImage(input_dir, info_dict, "system", block_list=block_list) File "./build/tools/releasetools/add_img_to_target_files", line 151, in CreateImage assert succ, "build " + what + ".img image failed"AssertionError: build system.img image failed
Ii. Solution
Run df-h as follows:
df -hFilesystem Size Used Avail Use% Mounted onudev 32G 4.0K 32G 1% /devtmpfs 6.3G 52M 6.3G 1% /run/dev/dm-1 12G 9.2G 1.8G 85% /none 4.0K 0 4.0K 0% /sys/fs/cgroupnone 5.0M 0 5.0M 0% /run/locknone 32G 80K 32G 1% /run/shm
The root directory has only 1. 8 GB of available space. During the compilation of the OTA package, many intermediate files will be stored in the/tmp directory, and 1.8G is not enough, resulting in compilation errors.
The fundamental solution is to increase the partition space of/tmp.
Temporary solution:
Cd/tmp
Rm-rf *
Delete the files in the/tmp directory, clear the space, and then compile.