summaryrefslogtreecommitdiff
path: root/scripts/update_device.py
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2023-04-30 18:21:28 -0700
committerLinux Build Service Account <lnxbuild@localhost>2023-04-30 18:21:28 -0700
commit7072a023f197cc9f1e8574df0a04d8ebfb29dc20 (patch)
treea1006df75bd9a57e2e6e3dcb36ea58e71a4a7c76 /scripts/update_device.py
parent6404d0a502cd8ab60ef306b368e023d6ef5f48b6 (diff)
parent6e1e2646851b278c55e39e480d51fc1434567dfd (diff)
Merge 6e1e2646851b278c55e39e480d51fc1434567dfd on remote branch
Change-Id: I033b6eb046f4ac571311303ef8658e0f7124fb33
Diffstat (limited to 'scripts/update_device.py')
-rwxr-xr-xscripts/update_device.py4
1 files changed, 4 insertions, 0 deletions
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: