diff options
author | Android Build Role Account android-build-prod <android-build-team-robot@google.com> | 2021-04-10 10:07:47 +0000 |
---|---|---|
committer | Android Build Role Account android-build-prod <android-build-team-robot@google.com> | 2021-04-10 10:07:47 +0000 |
commit | 8ff9e865836a6d307aa5c37f08318c5938a0bcc6 (patch) | |
tree | 8c26ca98b9e4e5bd1535df8a66df3371ec646080 /scripts/update_device.py | |
parent | aae41a1bf81c4141ebd5c61d1295d165bdc897a3 (diff) | |
parent | 3a4cdf5b5bee8d156df159f79b3effb36704a9c2 (diff) |
Snap for 7273026 from 3a4cdf5b5bee8d156df159f79b3effb36704a9c2 to s-keystone-qcom-release
Change-Id: Icff2659f55944be0d878a59e26e3bc77a5c16e51
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" |