diff options
author | Tianjie Xu <xunchang@google.com> | 2019-06-14 02:24:49 +0200 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2019-06-14 02:24:49 +0200 |
commit | 87e22759704b58b41db224696362ebe10e140ea0 (patch) | |
tree | ff928d36e2e09d8ba9adf5af638de01423384c75 /install/include/install/install.h | |
parent | Merge "Use the new ziparchive Next std::string_view overload." (diff) | |
parent | InstallPackage now takes a package as parameter (diff) | |
download | android_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.h | 11 |
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. |