[Android Q&A, Help & Troubleshooting] tohtorin:
Hi!

I am trying to get Pixel Experience 12 for OnePlus 8t compiled and it fails randomly at creating OTA package.

Sometimes (from scratch and from original repos) it manages to compile OK and creates installable working ota zip file.

Most of the time not.. and this is what I get

2022-02-23 21:18:41 - check_target_files_vintf.py - INFO : Checking VINTF compatibility target files...

2022-02-23 21:18:42 - ota_from_target_files.py - ERROR :

ERROR:

Traceback (most recent call last):

File "/work/pe/out/host/linux-x86/bin/ota_from_target_files/ota_from_target_files.py", line 1496, in <module>

File "/work/pe/out/host/linux-x86/bin/ota_from_target_files/ota_from_target_files.py", line 1470, in main

File "/work/pe/out/host/linux-x86/bin/ota_from_target_files/ota_from_target_files.py", line 1100, in GenerateAbOtaPackage

File "/work/pe/out/host/linux-x86/bin/ota_from_target_files/check_target_files_vintf.py", line 244, in CheckVintfIfTrebleEnabled

if not CheckVintf(target_files, target_info):

File "/work/pe/out/host/linux-x86/bin/ota_from_target_files/check_target_files_vintf.py", line 216, in CheckVintf

return CheckVintfFromTargetFiles(inp, info_dict)

File "/work/pe/out/host/linux-x86/bin/ota_from_target_files/check_target_files_vintf.py", line 193, in CheckVintfFromTargetFiles

input_tmp = common.UnzipTemp(inp, GetVintfFileList() + UNZIP_PATTERN)

File "/work/pe/out/host/linux-x86/bin/ota_from_target_files/common.py", line 1996, in UnzipTemp

UnzipToDir(filename, tmp, pattern)

File "/work/pe/out/host/linux-x86/bin/ota_from_target_files/common.py", line 1972, in UnzipToDir

RunAndCheckOutput(cmd)

File "/work/pe/out/host/linux-x86/bin/ota_from_target_files/common.py", line 312, in RunAndCheckOutput

args, proc.returncode, output))

ExternalError: Failed to run command '['unzip', '-o', '-q', 'out/target/product/kebab/obj/PACKAGING/target_files_intermediates/aosp_kebab-target_files-eng.drgreen.zip', '-d', '/work/pe/out/soong/.temp/targetfiles-Q7DvQ2', 'SYSTEM/etc/vintf/*', 'VENDOR/etc/vintf/*', 'SYSTEM_EXT/etc/vintf/*', 'ODM/etc/*', 'META/*', '*/build.prop']' (exit code 12):

error: invalid zip file with overlapped components (possible zip bomb)

21:18:42 ninja failed with: exit status 1

#### failed to build some targets (15:20 (mm:ss)) ####

If I try manually that command:

[drgreen@compile pe]$ unzip -o out/target/product/kebab/obj/PACKAGING/target_files_intermediates/aosp_kebab-target_files-eng.drgreen.zip -d /work/pe/out/soong/.temp/targetfiles-Q7DvQ2 SYSTEM/etc/vintf/* VENDOR/etc/vintf/* SYSTEM_EXT/etc/vintf/* ODM/etc/* META/* */build.prop

Archive: out/target/product/kebab/obj/PACKAGING/target_files_intermediates/aosp_kebab-target_files-eng.drgreen.zip

inflating: /work/pe/out/soong/.temp/targetfiles-Q7DvQ2/META/ab_partitions.txt

extracting: /work/pe/out/soong/.temp/targetfiles-Q7DvQ2/META/apex_info.pb

inflating: /work/pe/out/soong/.temp/targetfiles-Q7DvQ2/META/apexkeys.txt

inflating: /work/pe/out/soong/.temp/targetfiles-Q7DvQ2/META/apkcerts.txt

inflating: /work/pe/out/soong/.temp/targetfiles-Q7DvQ2/META/boot_filesystem_config.txt

inflating: /work/pe/out/soong/.temp/targetfiles-Q7DvQ2/META/care_map.pb

inflating: /work/pe/out/soong/.temp/targetfiles-Q7DvQ2/META/dynamic_partitions_info.txt

inflating: /work/pe/out/soong/.temp/targetfiles-Q7DvQ2/META/file_contexts.bin

inflating: /work/pe/out/soong/.temp/targetfiles-Q7DvQ2/META/filesystem_config.txt

inflating: /work/pe/out/soong/.temp/targetfiles-Q7DvQ2/META/kernel_configs.txt

extracting: /work/pe/out/soong/.temp/targetfiles-Q7DvQ2/META/kernel_version.txt

inflating: /work/pe/out/soong/.temp/targetfiles-Q7DvQ2/META/misc_info.txt

inflating: /work/pe/out/soong/.temp/targetfiles-Q7DvQ2/META/odm_filesystem_config.txt

extracting: /work/pe/out/soong/.temp/targetfiles-Q7DvQ2/META/otakeys.txt

inflating: /work/pe/out/soong/.temp/targetfiles-Q7DvQ2/META/postinstall_config.txt

inflating: /work/pe/out/soong/.temp/targetfiles-Q7DvQ2/META/product_filesystem_config.txt

inflating: /work/pe/out/soong/.temp/targetfiles-Q7DvQ2/META/recovery_filesystem_config.txt

inflating: /work/pe/out/soong/.temp/targetfiles-Q7DvQ2/META/root_filesystem_config.txt

inflating: /work/pe/out/soong/.temp/targetfiles-Q7DvQ2/META/system_ext_filesystem_config.txt

inflating: /work/pe/out/soong/.temp/targetfiles-Q7DvQ2/META/update_engine_config.txt

inflating: /work/pe/out/soong/.temp/targetfiles-Q7DvQ2/META/vbmeta_digest.txt

inflating: /work/pe/out/soong/.temp/targetfiles-Q7DvQ2/META/vendor_filesystem_config.txt

extracting: /work/pe/out/soong/.temp/targetfiles-Q7DvQ2/ODM/etc/NOTICE.xml.gz

inflating: /work/pe/out/soong/.temp/targetfiles-Q7DvQ2/ODM/etc/build.prop

extracting: /work/pe/out/soong/.temp/targetfiles-Q7DvQ2/ODM/etc/fs_config_dirs

extracting: /work/pe/out/soong/.temp/targetfiles-Q7DvQ2/ODM/etc/fs_config_files

extracting: /work/pe/out/soong/.temp/targetfiles-Q7DvQ2/ODM/etc/group

inflating: /work/pe/out/soong/.temp/targetfiles-Q7DvQ2/ODM/etc/media_profiles_V1_0.xml

inflating: /work/pe/out/soong/.temp/targetfiles-Q7DvQ2/ODM/etc/odm_feature_list

extracting: /work/pe/out/soong/.temp/targetfiles-Q7DvQ2/ODM/etc/passwd

inflating: /work/pe/out/soong/.temp/targetfiles-Q7DvQ2/SYSTEM/build.prop

inflating: /work/pe/out/soong/.temp/targetfiles-Q7DvQ2/SYSTEM/etc/vintf/compatibility_matrix.3.xml

inflating: /work/pe/out/soong/.temp/targetfiles-Q7DvQ2/SYSTEM/etc/vintf/compatibility_matrix.4.xml

inflating: /work/pe/out/soong/.temp/targetfiles-Q7DvQ2/SYSTEM/etc/vintf/compatibility_matrix.5.xml

inflating: /work/pe/out/soong/.temp/targetfiles-Q7DvQ2/SYSTEM/etc/vintf/compatibility_matrix.6.xml

inflating: /work/pe/out/soong/.temp/targetfiles-Q7DvQ2/SYSTEM/etc/vintf/compatibility_matrix.device.xml

inflating: /work/pe/out/soong/.temp/targetfiles-Q7DvQ2/SYSTEM/etc/vintf/manifest.xml

inflating: /work/pe/out/soong/.temp/targetfiles-Q7DvQ2/SYSTEM_EXT/etc/vintf/manifest.xml

inflating: /work/pe/out/soong/.temp/targetfiles-Q7DvQ2/VENDOR/build.prop

inflating: /work/pe/out/soong/.temp/targetfiles-Q7DvQ2/VENDOR/etc/vintf/compatibility_matrix.xml

inflating: /work/pe/out/soong/.temp/targetfiles-Q7DvQ2/VENDOR/etc/vintf/manifest.xml

caution: filename not matched: SYSTEM/etc/vintf/manifest

caution: filename not matched: VENDOR/etc/vintf/manifest

caution: filename not matched: ODM/etc/permissions

caution: filename not matched: ODM/etc/selinux

[drgreen@compile pe]$

My environment is AlmaLinux 8.5 with host gcc version 8.5.0 20210514 (Red Hat 8.5.0-4) (GCC)

unzip version is UnZip 6.00 of 20 April 2009

and zip version is Zip 3.0 (July 5th 2008)

I am confused. Fresh start sometimes helps (sometimes not.. and it takes few hours to compile to test it out..) to get one build done. Probably next gives this error.

My work is on encrypted xfs partition and selinux is disabled if that matters..