summaryrefslogtreecommitdiffstats
path: root/bootloader_message/include/bootloader_message/bootloader_message.h
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2016-12-16 00:32:24 +0100
committerandroid-build-merger <android-build-merger@google.com>2016-12-16 00:32:24 +0100
commit5c13ade64c99d4483e088c8f3aa9bfed63ef6d64 (patch)
treef56eb552981b58a2931abee021bf5c48e62adbfa /bootloader_message/include/bootloader_message/bootloader_message.h
parentMerge "tests: Add tests for bootloader_message." am: 07d985b75b am: 7f3ada54ec (diff)
parentMerge "Add update_bootloader_message() to fix two-step OTAs." am: 26d972c9d2 (diff)
downloadandroid_bootable_recovery-5c13ade64c99d4483e088c8f3aa9bfed63ef6d64.tar
android_bootable_recovery-5c13ade64c99d4483e088c8f3aa9bfed63ef6d64.tar.gz
android_bootable_recovery-5c13ade64c99d4483e088c8f3aa9bfed63ef6d64.tar.bz2
android_bootable_recovery-5c13ade64c99d4483e088c8f3aa9bfed63ef6d64.tar.lz
android_bootable_recovery-5c13ade64c99d4483e088c8f3aa9bfed63ef6d64.tar.xz
android_bootable_recovery-5c13ade64c99d4483e088c8f3aa9bfed63ef6d64.tar.zst
android_bootable_recovery-5c13ade64c99d4483e088c8f3aa9bfed63ef6d64.zip
Diffstat (limited to 'bootloader_message/include/bootloader_message/bootloader_message.h')
-rw-r--r--bootloader_message/include/bootloader_message/bootloader_message.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/bootloader_message/include/bootloader_message/bootloader_message.h b/bootloader_message/include/bootloader_message/bootloader_message.h
index ec47facf6..bc5104ddf 100644
--- a/bootloader_message/include/bootloader_message/bootloader_message.h
+++ b/bootloader_message/include/bootloader_message/bootloader_message.h
@@ -194,9 +194,14 @@ bool write_bootloader_message(const bootloader_message& boot, std::string* err);
bool write_bootloader_message_to(const bootloader_message& boot,
const std::string& misc_blk_device, std::string* err);
-// Write bootloader message (boots into recovery with the options) to BCB.
+// Write bootloader message (boots into recovery with the options) to BCB. Will
+// set the command and recovery fields, and reset the rest.
bool write_bootloader_message(const std::vector<std::string>& options, std::string* err);
+// Update bootloader message (boots into recovery with the options) to BCB. Will
+// only update the command and recovery fields.
+bool update_bootloader_message(const std::vector<std::string>& options, std::string* err);
+
// Clear BCB.
bool clear_bootloader_message(std::string* err);