summaryrefslogtreecommitdiffstats
path: root/install/include
diff options
context:
space:
mode:
authorKelvin Zhang <zhangkelvin@google.com>2022-02-15 03:38:06 +0100
committerKelvin Zhang <zhangkelvin@google.com>2022-02-15 05:20:08 +0100
commita4208b5f90baf1326d372fd97ca39f06911d7165 (patch)
treec09fc07501c783790d68976ed15a6c824a8bc0a8 /install/include
parentMerge "minui: add hall sensor event" (diff)
downloadandroid_bootable_recovery-a4208b5f90baf1326d372fd97ca39f06911d7165.tar
android_bootable_recovery-a4208b5f90baf1326d372fd97ca39f06911d7165.tar.gz
android_bootable_recovery-a4208b5f90baf1326d372fd97ca39f06911d7165.tar.bz2
android_bootable_recovery-a4208b5f90baf1326d372fd97ca39f06911d7165.tar.lz
android_bootable_recovery-a4208b5f90baf1326d372fd97ca39f06911d7165.tar.xz
android_bootable_recovery-a4208b5f90baf1326d372fd97ca39f06911d7165.tar.zst
android_bootable_recovery-a4208b5f90baf1326d372fd97ca39f06911d7165.zip
Diffstat (limited to 'install/include')
-rw-r--r--install/include/install/fuse_install.h2
-rw-r--r--install/include/install/install.h4
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.