diff options
Diffstat (limited to 'scripts/update_device.py')
-rwxr-xr-x | scripts/update_device.py | 4 |
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: |