summaryrefslogtreecommitdiffstats
path: root/install/adb_install.cpp
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/adb_install.cpp
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/adb_install.cpp')
-rw-r--r--install/adb_install.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/install/adb_install.cpp b/install/adb_install.cpp
index 2de1075d2..37280a34c 100644
--- a/install/adb_install.cpp
+++ b/install/adb_install.cpp
@@ -110,7 +110,11 @@ static auto AdbInstallPackageHandler(RecoveryUI* ui, InstallResult* result) {
break;
}
}
- *result = InstallPackage(FUSE_SIDELOAD_HOST_PATHNAME, false, false, 0, ui);
+
+ auto package =
+ Package::CreateFilePackage(FUSE_SIDELOAD_HOST_PATHNAME,
+ std::bind(&RecoveryUI::SetProgress, ui, std::placeholders::_1));
+ *result = InstallPackage(package.get(), FUSE_SIDELOAD_HOST_PATHNAME, false, 0, ui);
break;
}