summaryrefslogtreecommitdiffstats
path: root/private/install.h
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2018-06-19 22:08:37 +0200
committerandroid-build-merger <android-build-merger@google.com>2018-06-19 22:08:37 +0200
commit63cc0a7ff91792bd6c4f8614b9c9bf32f2071cd5 (patch)
tree562820112eae7899ef602699d7f118874fbfabc2 /private/install.h
parentMerge "updater_sample: run as a systemp app" am: 6b788b1848 (diff)
parentMerge "Drop the dependency on AB_OTA_UPDATER flag." (diff)
downloadandroid_bootable_recovery-63cc0a7ff91792bd6c4f8614b9c9bf32f2071cd5.tar
android_bootable_recovery-63cc0a7ff91792bd6c4f8614b9c9bf32f2071cd5.tar.gz
android_bootable_recovery-63cc0a7ff91792bd6c4f8614b9c9bf32f2071cd5.tar.bz2
android_bootable_recovery-63cc0a7ff91792bd6c4f8614b9c9bf32f2071cd5.tar.lz
android_bootable_recovery-63cc0a7ff91792bd6c4f8614b9c9bf32f2071cd5.tar.xz
android_bootable_recovery-63cc0a7ff91792bd6c4f8614b9c9bf32f2071cd5.tar.zst
android_bootable_recovery-63cc0a7ff91792bd6c4f8614b9c9bf32f2071cd5.zip
Diffstat (limited to 'private/install.h')
-rw-r--r--private/install.h18
1 files changed, 13 insertions, 5 deletions
diff --git a/private/install.h b/private/install.h
index ef64bd41d..7fdc741d6 100644
--- a/private/install.h
+++ b/private/install.h
@@ -23,9 +23,17 @@
#include <ziparchive/zip_archive.h>
-// Extract the update binary from the open zip archive |zip| located at |package| to |binary_path|.
-// Store the command line that should be called into |cmd|. The |status_fd| is the file descriptor
-// the child process should use to report back the progress of the update.
-int update_binary_command(const std::string& package, ZipArchiveHandle zip,
- const std::string& binary_path, int retry_count, int status_fd,
+// Sets up the commands for a non-A/B update. Extracts the updater binary from the open zip archive
+// |zip| located at |package|. Stores the command line that should be called into |cmd|. The
+// |status_fd| is the file descriptor the child process should use to report back the progress of
+// the update.
+int SetUpNonAbUpdateCommands(const std::string& package, ZipArchiveHandle zip, int retry_count,
+ int status_fd, std::vector<std::string>* cmd);
+
+// Sets up the commands for an A/B update. Extracts the needed entries from the open zip archive
+// |zip| located at |package|. Stores the command line that should be called into |cmd|. The
+// |status_fd| is the file descriptor the child process should use to report back the progress of
+// the update. Note that since this applies to the sideloading flow only, it takes one less
+// parameter |retry_count| than the non-A/B version.
+int SetUpAbUpdateCommands(const std::string& package, ZipArchiveHandle zip, int status_fd,
std::vector<std::string>* cmd);