summaryrefslogtreecommitdiffstats
path: root/applypatch/include
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2018-07-13 22:11:09 +0200
committerTao Bao <tbao@google.com>2018-07-20 20:26:17 +0200
commitd34e6bc44b0e58a3261cd7070a1525099932f205 (patch)
treeff7098efd4f91f323189d3a0fdf248df724bcfc1 /applypatch/include
parentMerge "Fix the arguments passed to getopt_long(3)." (diff)
downloadandroid_bootable_recovery-d34e6bc44b0e58a3261cd7070a1525099932f205.tar
android_bootable_recovery-d34e6bc44b0e58a3261cd7070a1525099932f205.tar.gz
android_bootable_recovery-d34e6bc44b0e58a3261cd7070a1525099932f205.tar.bz2
android_bootable_recovery-d34e6bc44b0e58a3261cd7070a1525099932f205.tar.lz
android_bootable_recovery-d34e6bc44b0e58a3261cd7070a1525099932f205.tar.xz
android_bootable_recovery-d34e6bc44b0e58a3261cd7070a1525099932f205.tar.zst
android_bootable_recovery-d34e6bc44b0e58a3261cd7070a1525099932f205.zip
Diffstat (limited to 'applypatch/include')
-rw-r--r--applypatch/include/applypatch/applypatch.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/applypatch/include/applypatch/applypatch.h b/applypatch/include/applypatch/applypatch.h
index 28dba7e68..cf65f3f22 100644
--- a/applypatch/include/applypatch/applypatch.h
+++ b/applypatch/include/applypatch/applypatch.h
@@ -75,10 +75,11 @@ int applypatch(const char* source_filename, const char* target_filename,
// 'sha1s' to find a match on /cache if the hashes embedded in the filename fail to match.
int applypatch_check(const std::string& filename, const std::vector<std::string>& sha1s);
-// Flashes a given image to the target partition. It verifies the target cheksum first, and will
-// return if target already has the desired hash. Otherwise it checks the checksum of the given
-// source image before flashing, and verifies the target partition afterwards. The function is
-// idempotent. Returns zero on success.
+// Flashes a given image to the eMMC target partition. It verifies the target cheksum first, and
+// will return if target already has the desired hash. Otherwise it checks the checksum of the
+// given source image before flashing, and verifies the target partition afterwards.
+// 'target_filename' must refer to an eMMC partition, of the form "EMMC:<device>:<size>:<hash>".
+// The function is idempotent. Returns zero on success.
int applypatch_flash(const char* source_filename, const char* target_filename,
const char* target_sha1_str, size_t target_size);