diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2022-02-16 07:53:28 +0100 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2022-02-16 07:53:28 +0100 |
commit | 266a01b79989ede69d9412991ddde00448e87318 (patch) | |
tree | 30f79316659123994c70a497febba468e862b4ae /install/include | |
parent | Merge "Enable different interface for fastboot for cf" (diff) | |
parent | Perform data wipe in recovery if ota package has powerwash set (diff) | |
download | android_bootable_recovery-266a01b79989ede69d9412991ddde00448e87318.tar android_bootable_recovery-266a01b79989ede69d9412991ddde00448e87318.tar.gz android_bootable_recovery-266a01b79989ede69d9412991ddde00448e87318.tar.bz2 android_bootable_recovery-266a01b79989ede69d9412991ddde00448e87318.tar.lz android_bootable_recovery-266a01b79989ede69d9412991ddde00448e87318.tar.xz android_bootable_recovery-266a01b79989ede69d9412991ddde00448e87318.tar.zst android_bootable_recovery-266a01b79989ede69d9412991ddde00448e87318.zip |
Diffstat (limited to 'install/include')
-rw-r--r-- | install/include/install/fuse_install.h | 2 | ||||
-rw-r--r-- | install/include/install/install.h | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/install/include/install/fuse_install.h b/install/include/install/fuse_install.h index 63b116aeb..29c283f40 100644 --- a/install/include/install/fuse_install.h +++ b/install/include/install/fuse_install.h @@ -25,6 +25,6 @@ // Starts FUSE with the package from |path| as the data source. And installs the package from // |FUSE_SIDELOAD_HOST_PATHNAME|. The |path| can point to the location of a package zip file or a // block map file with the prefix '@'; e.g. /sdcard/package.zip, @/cache/recovery/block.map. -InstallResult InstallWithFuseFromPath(std::string_view path, RecoveryUI* ui); +InstallResult InstallWithFuseFromPath(std::string_view path, Device* device); InstallResult ApplyFromSdcard(Device* device); diff --git a/install/include/install/install.h b/install/include/install/install.h index 704841f8e..0f5102f82 100644 --- a/install/include/install/install.h +++ b/install/include/install/install.h @@ -25,6 +25,7 @@ #include <ziparchive/zip_archive.h> #include "otautil/package.h" +#include "recovery_ui/device.h" #include "recovery_ui/ui.h" enum InstallResult { @@ -49,7 +50,8 @@ enum class OtaType { // 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); + bool should_wipe_cache, int retry_count, + Device* ui); // Verifies the package by ota keys. Returns true if the package is verified successfully, // otherwise returns false. |