From ec031378c660fee6650c61c10da3ff0388244e47 Mon Sep 17 00:00:00 2001 From: Carol Yang Date: Mon, 23 Jan 2023 13:15:11 -0800 Subject: [PATCH] [OTA] Add a command line option to disable sending of NotifyUpdateApplied command (#24575) --- .github/.wordlist.txt | 1 + examples/ota-requestor-app/linux/README.md | 4 +++- examples/ota-requestor-app/linux/main.cpp | 12 ++++++++++++ .../ota-requestor/DefaultOTARequestorDriver.cpp | 5 ++++- .../ota-requestor/DefaultOTARequestorDriver.h | 5 +++++ 5 files changed, 25 insertions(+), 2 deletions(-) diff --git a/.github/.wordlist.txt b/.github/.wordlist.txt index b1f04c1a849bf4..f7d6f3995dc039 100644 --- a/.github/.wordlist.txt +++ b/.github/.wordlist.txt @@ -416,6 +416,7 @@ diffsyms dimmable dirname dirs +disableNotifyUpdateApplied disambiguated discoverable DispatchEvent diff --git a/examples/ota-requestor-app/linux/README.md b/examples/ota-requestor-app/linux/README.md index f14d5fa7cdf094..9cb47171aae555 100644 --- a/examples/ota-requestor-app/linux/README.md +++ b/examples/ota-requestor-app/linux/README.md @@ -16,11 +16,13 @@ scripts/examples/gn_build_example.sh examples/ota-requestor-app/linux out/debug In addition to the general options available to all Linux applications, the following command line options are available for the OTA Requestor application. +Note that these options are for testing purposes. | Command Line Option | Description | | -------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | -a, --autoApplyImage | If supplied, apply the image immediately after download. Otherwise, the OTA update is complete after image download. | | -c, --requestorCanConsent \ | Value for the RequestorCanConsent field in the QueryImage command. If not supplied, the value is determined by the driver. | +| -d, --disableNotifyUpdateApplied | If supplied, disable sending of the NotifyUpdateApplied command. Otherwise, after successfully loading into the updated image, send the NotifyUpdateApplied command. | | -f, --otaDownloadPath \ | If supplied, the OTA image is downloaded to the given fully-qualified file-path. Otherwise, the default location for the downloaded image is at /tmp/test.bin | | -p, --periodicQueryTimeout \