aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKelvin Zhang <zhangkelvin@google.com>2021-07-24 00:25:03 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2021-07-24 00:25:03 +0000
commit76e3fb05975426ca410eea04fa4c1a3a3436c030 (patch)
treeb93478543541ed0697b987f588275069a98dc311
parentd29f7d546635e34eb06b62000621aecd399983bf (diff)
parentf66caeec58d7a84a8478cc46202ff4b37a5d7e6d (diff)
downloadplatform_build-76e3fb05975426ca410eea04fa4c1a3a3436c030.tar.gz
platform_build-76e3fb05975426ca410eea04fa4c1a3a3436c030.tar.bz2
platform_build-76e3fb05975426ca410eea04fa4c1a3a3436c030.zip
Merge "Add an option for VABC xor"
-rwxr-xr-xtools/releasetools/ota_from_target_files.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/releasetools/ota_from_target_files.py b/tools/releasetools/ota_from_target_files.py
index 8face66a2e..bcc10bd3f1 100755
--- a/tools/releasetools/ota_from_target_files.py
+++ b/tools/releasetools/ota_from_target_files.py
@@ -286,6 +286,7 @@ OPTIONS.custom_images = {}
OPTIONS.disable_vabc = False
OPTIONS.spl_downgrade = False
OPTIONS.vabc_downgrade = False
+OPTIONS.enable_vabc_xor = False
POSTINSTALL_CONFIG = 'META/postinstall_config.txt'
DYNAMIC_PARTITION_INFO = 'META/dynamic_partitions_info.txt'
@@ -1132,6 +1133,8 @@ def GenerateAbOtaPackage(target_file, output_file, source_file=None):
if OPTIONS.disable_vabc:
additional_args += ["--disable_vabc", "true"]
+ if OPTIONS.enable_vabc_xor:
+ additional_args += ["--enable_vabc_xor", "true"]
additional_args += ["--max_timestamp", max_timestamp]
if SupportsMainlineGkiUpdates(source_file):
@@ -1305,6 +1308,8 @@ def main(argv):
OPTIONS.wipe_user_data = True
elif o == "--vabc_downgrade":
OPTIONS.vabc_downgrade = True
+ elif o == "--enable_vabc_xor":
+ OPTIONS.enable_vabc_xor = True
else:
return False
return True
@@ -1349,6 +1354,7 @@ def main(argv):
"disable_vabc",
"spl_downgrade",
"vabc_downgrade",
+ "enable_vabc_xor",
], extra_option_handler=option_handler)
if len(args) != 2: