当我编译aosp的代码时,然后引发错误。
FAILED: out/target/product/walleye/vbmeta.img
/bin/bash -c "(mkdir -p out/target/product/walleye/obj/avb_chain_keys ) && (out/host/linux-x86/bin/avbtool make_vbmeta_image --include_descriptors_from_image out/target/product/walleye/boot.img --include_descriptors_from_image out/target/product/walleye/system.img --include_descriptors_from_image out/target/product/walleye/dtbo.img --algorithm SHA256_RSA4096 --key external/avb/test/data/testkey_rsa4096.pem --padding_size 4096 --output out/target/product/walleye/vbmeta.img ) && (rm -rf out/target/product/walleye/obj/avb_chain_keys )"
Traceback (most recent call last):
File "out/host/linux-x86/bin/avbtool", line 4218, in <module>
tool.run(sys.argv)
File "out/host/linux-x86/bin/avbtool", line 4063, in run
args.func(args)
File "out/host/linux-x86/bin/avbtool", line 4091, in make_vbmeta_image
args.padding_size)
File "out/host/linux-x86/bin/avbtool", line 2473, in make_vbmeta_image
append_to_release_string, 0)
File "out/host/linux-x86/bin/avbtool", line 2627, in _generate_vbmeta_blob
image_handler)
File "out/host/linux-x86/bin/avbtool", line 2285, in _parse_image
descriptors = parse_descriptors(image.read(h.descriptors_size))
File "out/host/linux-x86/bin/avbtool", line 1750, in parse_descriptors
ret.append(c(bytearray(data[o:o + 16 + nb_following])))
File "out/host/linux-x86/bin/avbtool", line 1417, in __init__
data[0:self.SIZE])
struct.error: unpack requires a string argument of length 132
ninja: build stopped: subcommand failed.
编译信息:
内部版本:OPD3.170816.023
分支:android-8.0.0_r34
版本:Oreo
支持的设备:Pixel 2 XL,Pixel 2
如何解决这个问题?