From 9fc62b81321a6bb1a646776596acc23cbbc9d399 Mon Sep 17 00:00:00 2001 From: Daniel Zheng Date: Fri, 24 Mar 2023 22:57:20 +0000 Subject: Added a field to set enable_vabc Test: tested OTA on cuttlefish Bug: 274511687 Change-Id: I55bee646f0b075b30a1fd533f8baa44eeaaac8f9 --- scripts/update_device.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'scripts/update_device.py') diff --git a/scripts/update_device.py b/scripts/update_device.py index 2985c38e..f94774b1 100755 --- a/scripts/update_device.py +++ b/scripts/update_device.py @@ -483,6 +483,8 @@ def main(): help='Wipe userdata after installing OTA') parser.add_argument('--vabc-none', action='store_true', help='Set Virtual AB Compression algorithm to none, but still use Android COW format') + parser.add_argument('--disable-vabc', action='store_true', + help='Option to enable or disable vabc. If set to false, will fall back on A/B') parser.add_argument('--enable-threading', action='store_true', help='Enable multi-threaded compression for VABC') parser.add_argument('--batched-writes', action='store_true', @@ -549,6 +551,8 @@ def main(): args.extra_headers += "\nPOWERWASH=1" if args.vabc_none: args.extra_headers += "\nVABC_NONE=1" + if args.disable_vabc: + args.extra_headers += "\nDISABLE_VABC=1" if args.enable_threading: args.extra_headers += "\nENABLE_THREADING=1" if args.batched_writes: -- cgit v1.2.3