Android7.0 MTK solution for compiling OTA update package error cocould not append verity data!

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.