Merge "ota_from_target_files: Disable XOR on <T vendor."

This commit is contained in:
David Anderson
2023-04-15 04:52:46 +00:00
committed by Gerrit Code Review
2 changed files with 32 additions and 0 deletions

View File

@@ -909,6 +909,19 @@ def GenerateAbOtaPackage(target_file, output_file, source_file=None):
logger.info(
"VABC Compression algorithm is set to 'none', disabling VABC xor")
OPTIONS.enable_vabc_xor = False
if OPTIONS.enable_vabc_xor:
api_level = -1
if source_info is not None:
api_level = source_info.vendor_api_level
if api_level == -1:
api_level = target_info.vendor_api_level
# XOR is only supported on T and higher.
if api_level < 33:
logger.error("VABC XOR not supported on this vendor, disabling")
OPTIONS.enable_vabc_xor = False
additional_args = []
# Prepare custom images.