diff options
author | Linux Build Service Account <lnxbuild@localhost> | 2022-04-15 23:06:05 -0700 |
---|---|---|
committer | Linux Build Service Account <lnxbuild@localhost> | 2022-04-15 23:06:05 -0700 |
commit | cf899de56fe42aa8b18f68901607ffd232c316fb (patch) | |
tree | 07daca8180b162eaaa2ff1b4e74f26314716d77e /scripts/update_device.py | |
parent | 34ab3b9717505543f913c77f04de43fc5506057d (diff) | |
parent | c5dea6402ece46eb749c2e62a4738d67d46046ae (diff) |
Merge c5dea6402ece46eb749c2e62a4738d67d46046ae on remote branch
Change-Id: Ie730c4569cbebda3ed0c85001014e6087df4d786
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 db653dc3..72cee494 100755 --- a/scripts/update_device.py +++ b/scripts/update_device.py @@ -442,6 +442,8 @@ def main(): help='Perform slot switch for this OTA package') parser.add_argument('--perform-reset-slot-switch', action='store_true', help='Perform reset slot switch for this OTA package') + parser.add_argument('--wipe-user-data', action='store_true', + help='Wipe userdata after installing OTA') args = parser.parse_args() logging.basicConfig( level=logging.WARNING if args.no_verbose else logging.INFO) @@ -493,6 +495,8 @@ def main(): args.extra_headers += "\nSWITCH_SLOT_ON_REBOOT=0" if args.no_postinstall: args.extra_headers += "\nRUN_POST_INSTALL=0" + if args.wipe_user_data: + args.extra_headers += "\nPOWERWASH=1" with zipfile.ZipFile(args.otafile) as zfp: CARE_MAP_ENTRY_NAME = "care_map.pb" |