From 381842124e7e084ee00faa6631326d64304c30ae Mon Sep 17 00:00:00 2001 From: "Irene Siu (Apple)" Date: Tue, 15 Feb 2022 14:43:42 -0800 Subject: [PATCH] Issue #10592 [ota-provider-app] Make various values to ApplyUpdateResponse Command configurable (#15208) * Issue #10592 - [ota-provider-app] Make various values to ApplyUpdateResponse Command configurable #10592 - Added -a command line option to ota-provider-app so that the action field of ApplyUpdateResponse can be configurable. Tested various -a and -t command line options for ApplyUpdateResponse. * Update readme.md to add the comments for the new -a command line argument. * Add applyUpdateAction to the wordlist for spellchecker. --- .github/.wordlist.txt | 1 + examples/ota-provider-app/linux/README.md | 1 + examples/ota-provider-app/linux/main.cpp | 31 +++++++++++++++++++ .../OTAProviderExample.cpp | 4 +-- .../ota-provider-common/OTAProviderExample.h | 6 ++++ 5 files changed, 40 insertions(+), 3 deletions(-) diff --git a/.github/.wordlist.txt b/.github/.wordlist.txt index 0a930013cb9509..aac333fa389469 100644 --- a/.github/.wordlist.txt +++ b/.github/.wordlist.txt @@ -53,6 +53,7 @@ ApplicationBasic ApplicationId ApplicationIdentifier ApplicationLauncher +applyUpdateAction ApplyUpdateRequest ApplyUpdateResponse approver diff --git a/examples/ota-provider-app/linux/README.md b/examples/ota-provider-app/linux/README.md index b62f1b526552e9..dcbf4aa5a3464f 100644 --- a/examples/ota-provider-app/linux/README.md +++ b/examples/ota-provider-app/linux/README.md @@ -18,6 +18,7 @@ scripts/examples/gn_build_example.sh examples/ota-provider-app/linux out/debug c | -f/--filepath | Path to a file containing an OTA image | | -o/--otaImageList | Path to a file containing a list of OTA images | | -q/--queryImageStatus | Value for the Status field in the QueryImageResponse | +| -a/--applyUpdateAction | Value for the Action field in the ApplyUpdateResponse | | -t/--delayedActionTimeSec