summaryrefslogtreecommitdiffstats
path: root/updater/include/private/commands.h
diff options
context:
space:
mode:
authorTianjie Xu <xunchang@google.com>2018-08-07 00:36:55 +0200
committerandroid-build-merger <android-build-merger@google.com>2018-08-07 00:36:55 +0200
commitb5bc978432135be958e0422bab88e7f335e4aea2 (patch)
tree1400bb11b184445ea709448e611db9ea5ca5ae1e /updater/include/private/commands.h
parentMerge "Dynamically load device-specific recovery UI lib." (diff)
parentMerge "Add an updater function to compute hash tree" (diff)
downloadandroid_bootable_recovery-b5bc978432135be958e0422bab88e7f335e4aea2.tar
android_bootable_recovery-b5bc978432135be958e0422bab88e7f335e4aea2.tar.gz
android_bootable_recovery-b5bc978432135be958e0422bab88e7f335e4aea2.tar.bz2
android_bootable_recovery-b5bc978432135be958e0422bab88e7f335e4aea2.tar.lz
android_bootable_recovery-b5bc978432135be958e0422bab88e7f335e4aea2.tar.xz
android_bootable_recovery-b5bc978432135be958e0422bab88e7f335e4aea2.tar.zst
android_bootable_recovery-b5bc978432135be958e0422bab88e7f335e4aea2.zip
Diffstat (limited to 'updater/include/private/commands.h')
-rw-r--r--updater/include/private/commands.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/updater/include/private/commands.h b/updater/include/private/commands.h
index 087d7cfbf..7f9dc79f4 100644
--- a/updater/include/private/commands.h
+++ b/updater/include/private/commands.h
@@ -213,6 +213,10 @@ class PatchInfo {
// - Free the given stash data.
// - Meaningful args: StashInfo
//
+// compute_hash_tree <hash_tree_ranges> <source_ranges> <hash_algorithm> <salt_hex> <root_hash>
+// - Computes the hash_tree bytes and writes the result to the specified range on the
+// block_device.
+//
// abort
// - Abort the current update. Allowed for testing code only.
//
@@ -221,6 +225,7 @@ class Command {
enum class Type {
ABORT,
BSDIFF,
+ COMPUTE_HASH_TREE,
ERASE,
FREE,
IMGDIFF,