summaryrefslogtreecommitdiffstats
path: root/install/include/install/install.h
diff options
context:
space:
mode:
authorTianjie Xu <xunchang@google.com>2019-06-14 02:24:49 +0200
committerGerrit Code Review <noreply-gerritcodereview@google.com>2019-06-14 02:24:49 +0200
commit87e22759704b58b41db224696362ebe10e140ea0 (patch)
treeff928d36e2e09d8ba9adf5af638de01423384c75 /install/include/install/install.h
parentMerge "Use the new ziparchive Next std::string_view overload." (diff)
parentInstallPackage now takes a package as parameter (diff)
downloadandroid_bootable_recovery-87e22759704b58b41db224696362ebe10e140ea0.tar
android_bootable_recovery-87e22759704b58b41db224696362ebe10e140ea0.tar.gz
android_bootable_recovery-87e22759704b58b41db224696362ebe10e140ea0.tar.bz2
android_bootable_recovery-87e22759704b58b41db224696362ebe10e140ea0.tar.lz
android_bootable_recovery-87e22759704b58b41db224696362ebe10e140ea0.tar.xz
android_bootable_recovery-87e22759704b58b41db224696362ebe10e140ea0.tar.zst
android_bootable_recovery-87e22759704b58b41db224696362ebe10e140ea0.zip
Diffstat (limited to 'install/include/install/install.h')
-rw-r--r--install/include/install/install.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/install/include/install/install.h b/install/include/install/install.h
index 44a5cde91..b4b3a9149 100644
--- a/install/include/install/install.h
+++ b/install/include/install/install.h
@@ -44,11 +44,12 @@ enum class OtaType {
BRICK,
};
-// Installs the given update package. This function should also wipe the cache partition after a
-// successful installation if |should_wipe_cache| is true or an updater command asks to wipe the
-// cache.
-InstallResult InstallPackage(const std::string& package, bool should_wipe_cache, bool needs_mount,
- int retry_count, RecoveryUI* ui);
+// Installs the given update package. The package_id is a string provided by the caller (e.g. the
+// package path) to identify the package and log to last_install. This function should also wipe the
+// cache partition after a successful installation if |should_wipe_cache| is true or an updater
+// command asks to wipe the cache.
+InstallResult InstallPackage(Package* package, const std::string_view package_id,
+ bool should_wipe_cache, int retry_count, RecoveryUI* ui);
// Verifies the package by ota keys. Returns true if the package is verified successfully,
// otherwise returns false.