Respect VABC Xor prop in ota_from_target_files

Test: generate ota on a non-vabc xor target, make sure it's not used
Change-Id: Ibdbcfe3775c96848c37c7f580121583d4bd57fce
This commit is contained in:
Kelvin Zhang
2021-08-12 16:19:09 -07:00
parent 5a28a2af48
commit ad427381b9
2 changed files with 10 additions and 0 deletions

View File

@@ -1091,6 +1091,9 @@ def GenerateAbOtaPackage(target_file, output_file, source_file=None):
if target_info.vendor_suppressed_vabc:
logger.info("Vendor suppressed VABC. Disabling")
OPTIONS.disable_vabc = True
if not target_info.is_vabc_xor or OPTIONS.disable_vabc:
logger.info("VABC XOR Not supported, disabling")
OPTIONS.enable_vabc_xor = False
additional_args = []
# Prepare custom images.