无法在AOSP 11中创建AB OTA ZIP文件
无法在AOSP11中创建AB OTA ZIP文件。
请找到以下错误:
test@test:~/aosp/test1_android$ ./build/tools/releasetools/ota_from_target_files out/dist/rockpi4b-target_files-eng.test.zip update.zip
2022-05-26 20:05:32 - common.py - WARNING : Failed to read SYSTEM/etc/build.prop
2022-05-26 20:05:32 - common.py - WARNING : Failed to read VENDOR/etc/build.prop
2022-05-26 20:05:32 - common.py - WARNING : Failed to read PRODUCT/etc/build.prop
2022-05-26 20:05:32 - common.py - WARNING : Failed to read SYSTEM_EXT/etc/build.prop
2022-05-26 20:05:55 - common.py - WARNING : Failed to read SYSTEM/etc/build.prop
2022-05-26 20:05:55 - common.py - WARNING : Failed to read VENDOR/etc/build.prop
2022-05-26 20:05:55 - common.py - WARNING : Failed to read PRODUCT/etc/build.prop
2022-05-26 20:05:55 - common.py - WARNING : Failed to read SYSTEM_EXT/etc/build.prop
2022-05-26 20:05:55 - common.py - WARNING : Failed to read SYSTEM/etc/build.prop
2022-05-26 20:05:55 - common.py - WARNING : Failed to read VENDOR/etc/build.prop
2022-05-26 20:05:55 - common.py - WARNING : Failed to read PRODUCT/etc/build.prop
2022-05-26 20:05:55 - common.py - WARNING : Failed to read SYSTEM_EXT/etc/build.prop
2022-05-26 20:05:55 - common.py - WARNING : Failed to read SYSTEM/etc/build.prop
2022-05-26 20:05:55 - common.py - WARNING : Failed to read VENDOR/etc/build.prop
2022-05-26 20:05:55 - common.py - WARNING : Failed to read PRODUCT/etc/build.prop
2022-05-26 20:05:55 - common.py - WARNING : Failed to read SYSTEM_EXT/etc/build.prop
2022-05-26 20:05:57 - ota_from_target_files - WARNING : Duplicate block difference found.
Device specific block diff for partition 'system_ext' overrides the one in generic script.
2022-05-26 20:05:57 - ota_from_target_files - WARNING : Duplicate block difference found. Device specific block diff for partition 'product' overrides the one in generic script.
2022-05-26 20:05:57 - ota_from_target_files - WARNING : Duplicate block difference found. Device specific block diff for partition 'odm' overrides the one in generic script.
Compressing system.new.dat with brotli
Compressing vendor.new.dat with brotli
Compressing product.new.dat with brotli
Compressing odm.new.dat with brotli
Compressing system_ext.new.dat with brotli
write trust now...
write uboot now...
warning: no vbmeta.img in input target_files; not flashing vbmeta
wirte dtbo now...
no charge img; ignore it.
info: no resource image; ignore it.
no RKLoader.bin, ignore it.
info: no vendor_boot.img in input target_files; ignore it
info: no logo image; ignore it.
2022-05-26 20:07:28 - ota_from_target_files - ERROR :
ERROR:
Traceback (most recent call last):
File "./build/tools/releasetools/ota_from_target_files", line 2258, in <module>
main(sys.argv[1:])
File "./build/tools/releasetools/ota_from_target_files", line 2237, in main
source_file=OPTIONS.incremental_source)
File "./build/tools/releasetools/ota_from_target_files", line 1980, in GenerateNonAbOtaPackage
output_file)
File "./build/tools/releasetools/ota_from_target_files", line 880, in WriteFullOTAPackage
FinalizeMetadata(metadata, staging_file, output_file, needed_property_files)
File "./build/tools/releasetools/ota_from_target_files", line 1328, in FinalizeMetadata
prelim_signing = ComputeAllPropertyFiles(input_file, needed_property_files)
File "./build/tools/releasetools/ota_from_target_files", line 1314, in ComputeAllPropertyFiles
SignOutput(input_file, prelim_signing)
File "./build/tools/releasetools/ota_from_target_files", line 492, in SignOutput
whole_file=True)
File "/home/test/aosp/test1_android/build/make/tools/releasetools/common.py", line 1854, in SignFile
proc.returncode, stdoutdata))
ExternalError: Failed to run signapk.jar: return code 1:
Error: Unable to access jarfile
/home/test/aosp/test1_android/build/make/tools/framework/signapk.jar
您能帮我吗,如何克服此错误。
Unable to create AB OTA zip file in AOSP11.
Please find below error:
test@test:~/aosp/test1_android$ ./build/tools/releasetools/ota_from_target_files out/dist/rockpi4b-target_files-eng.test.zip update.zip
2022-05-26 20:05:32 - common.py - WARNING : Failed to read SYSTEM/etc/build.prop
2022-05-26 20:05:32 - common.py - WARNING : Failed to read VENDOR/etc/build.prop
2022-05-26 20:05:32 - common.py - WARNING : Failed to read PRODUCT/etc/build.prop
2022-05-26 20:05:32 - common.py - WARNING : Failed to read SYSTEM_EXT/etc/build.prop
2022-05-26 20:05:55 - common.py - WARNING : Failed to read SYSTEM/etc/build.prop
2022-05-26 20:05:55 - common.py - WARNING : Failed to read VENDOR/etc/build.prop
2022-05-26 20:05:55 - common.py - WARNING : Failed to read PRODUCT/etc/build.prop
2022-05-26 20:05:55 - common.py - WARNING : Failed to read SYSTEM_EXT/etc/build.prop
2022-05-26 20:05:55 - common.py - WARNING : Failed to read SYSTEM/etc/build.prop
2022-05-26 20:05:55 - common.py - WARNING : Failed to read VENDOR/etc/build.prop
2022-05-26 20:05:55 - common.py - WARNING : Failed to read PRODUCT/etc/build.prop
2022-05-26 20:05:55 - common.py - WARNING : Failed to read SYSTEM_EXT/etc/build.prop
2022-05-26 20:05:55 - common.py - WARNING : Failed to read SYSTEM/etc/build.prop
2022-05-26 20:05:55 - common.py - WARNING : Failed to read VENDOR/etc/build.prop
2022-05-26 20:05:55 - common.py - WARNING : Failed to read PRODUCT/etc/build.prop
2022-05-26 20:05:55 - common.py - WARNING : Failed to read SYSTEM_EXT/etc/build.prop
2022-05-26 20:05:57 - ota_from_target_files - WARNING : Duplicate block difference found.
Device specific block diff for partition 'system_ext' overrides the one in generic script.
2022-05-26 20:05:57 - ota_from_target_files - WARNING : Duplicate block difference found. Device specific block diff for partition 'product' overrides the one in generic script.
2022-05-26 20:05:57 - ota_from_target_files - WARNING : Duplicate block difference found. Device specific block diff for partition 'odm' overrides the one in generic script.
Compressing system.new.dat with brotli
Compressing vendor.new.dat with brotli
Compressing product.new.dat with brotli
Compressing odm.new.dat with brotli
Compressing system_ext.new.dat with brotli
write trust now...
write uboot now...
warning: no vbmeta.img in input target_files; not flashing vbmeta
wirte dtbo now...
no charge img; ignore it.
info: no resource image; ignore it.
no RKLoader.bin, ignore it.
info: no vendor_boot.img in input target_files; ignore it
info: no logo image; ignore it.
2022-05-26 20:07:28 - ota_from_target_files - ERROR :
ERROR:
Traceback (most recent call last):
File "./build/tools/releasetools/ota_from_target_files", line 2258, in <module>
main(sys.argv[1:])
File "./build/tools/releasetools/ota_from_target_files", line 2237, in main
source_file=OPTIONS.incremental_source)
File "./build/tools/releasetools/ota_from_target_files", line 1980, in GenerateNonAbOtaPackage
output_file)
File "./build/tools/releasetools/ota_from_target_files", line 880, in WriteFullOTAPackage
FinalizeMetadata(metadata, staging_file, output_file, needed_property_files)
File "./build/tools/releasetools/ota_from_target_files", line 1328, in FinalizeMetadata
prelim_signing = ComputeAllPropertyFiles(input_file, needed_property_files)
File "./build/tools/releasetools/ota_from_target_files", line 1314, in ComputeAllPropertyFiles
SignOutput(input_file, prelim_signing)
File "./build/tools/releasetools/ota_from_target_files", line 492, in SignOutput
whole_file=True)
File "/home/test/aosp/test1_android/build/make/tools/releasetools/common.py", line 1854, in SignFile
proc.returncode, stdoutdata))
ExternalError: Failed to run signapk.jar: return code 1:
Error: Unable to access jarfile
/home/test/aosp/test1_android/build/make/tools/framework/signapk.jar
Can you please help me , how to overcome this error.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
成功构建AOSP代码后,您必须设置DIST_DIR如下:
After you build AOSP code successfully,you must set DIST_DIR as follows:
ota_from_target_files acts different in android 11.
If you have executed "make dist", the otatools is put in out/dist/otatools.zip, or you can "make otatools-package", the otatools will put in out/target/product/ xxxx/otatools.zip。
所有依赖性都包装在otatools.zip中,然后您可以在otatools.zip中使用ota_from_target_files来制作OTA ZIP。
ota_from_target_files acts different in android 11.
If you have executed "make dist", the otatools is put in out/dist/otatools.zip, or you can "make otatools-package", the otatools will put in out/target/product/xxxx/otatools.zip.
All the dependency is packed in otatools.zip, then you can use ota_from_target_files in otatools.zip to make ota zip.
如果您在根目录中执行python脚本ota_from_target_files.py,则需要使用-p来指定路径。
或者
,您可以直接从根目录中执行它:
有关详细信息,请参阅构建/工具/reareaseTools/ota_from_target_files.py和build/build/tools/areaseSetools/common.py。
通常,此问题的关键是options.search_path。
If you execute the Python script ota_from_target_files.py in the root directory, you need to use -p to specify the path.
Using
Alternatively, you can execute it directly from the root directory:
For details, refer to build/tools/releasetools/ota_from_target_files.py and build/tools/releasetools/common.py.
In common.py, the key to this issue is Options.search_path.