summaryrefslogtreecommitdiffstats
path: root/updater/include/private/commands.h
diff options
context:
space:
mode:
authorTianjie Xu <xunchang@google.com>2018-08-07 00:19:04 +0200
committerGerrit Code Review <noreply-gerritcodereview@google.com>2018-08-07 00:19:04 +0200
commitdbe44203257917d2610a3fc3f0e9e84ec49e6b34 (patch)
tree2a3c4b55ada448fa197aca768032532160c25fbb /updater/include/private/commands.h
parentMerge "Dynamically load device-specific recovery UI lib." (diff)
parentAdd an updater function to compute hash tree (diff)
downloadandroid_bootable_recovery-dbe44203257917d2610a3fc3f0e9e84ec49e6b34.tar
android_bootable_recovery-dbe44203257917d2610a3fc3f0e9e84ec49e6b34.tar.gz
android_bootable_recovery-dbe44203257917d2610a3fc3f0e9e84ec49e6b34.tar.bz2
android_bootable_recovery-dbe44203257917d2610a3fc3f0e9e84ec49e6b34.tar.lz
android_bootable_recovery-dbe44203257917d2610a3fc3f0e9e84ec49e6b34.tar.xz
android_bootable_recovery-dbe44203257917d2610a3fc3f0e9e84ec49e6b34.tar.zst
android_bootable_recovery-dbe44203257917d2610a3fc3f0e9e84ec49e6b34.zip
Diffstat (limited to '')
-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,