diff options
author | android-build-team Robot <android-build-team-robot@google.com> | 2021-04-03 03:09:08 +0000 |
---|---|---|
committer | android-build-team Robot <android-build-team-robot@google.com> | 2021-04-03 03:09:08 +0000 |
commit | a63f505b07171298a6d3a9b8f6693c4d3d8d22a2 (patch) | |
tree | 8c26ca98b9e4e5bd1535df8a66df3371ec646080 /scripts/update_device.py | |
parent | 7a6932bb479f289efb373d836f86bbb45c024b69 (diff) | |
parent | db9dbdecd3ab1a0e7780458e2e45c26d4a048ea4 (diff) |
Snap for 7256110 from db9dbdecd3ab1a0e7780458e2e45c26d4a048ea4 to sc-release
Change-Id: Ic81921d4d27592e2441c406fc961df51059bbc55
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 074b91d6..b784b1bc 100755 --- a/scripts/update_device.py +++ b/scripts/update_device.py @@ -428,6 +428,8 @@ def main(): help='Update with the secondary payload in the package.') parser.add_argument('--no-slot-switch', action='store_true', help='Do not perform slot switch after the update.') + parser.add_argument('--no-postinstall', action='store_true', + help='Do not execute postinstall scripts after the update.') parser.add_argument('--allocate_only', action='store_true', help='Allocate space for this OTA, instead of actually \ applying the OTA.') @@ -472,6 +474,8 @@ def main(): if args.no_slot_switch: args.extra_headers += "\nSWITCH_SLOT_ON_REBOOT=0" + if args.no_postinstall: + args.extra_headers += "\nRUN_POST_INSTALL=0" with zipfile.ZipFile(args.otafile) as zfp: CARE_MAP_ENTRY_NAME = "care_map.pb" |