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/adb_install.cpp | |
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/adb_install.cpp')
-rw-r--r-- | install/adb_install.cpp | 6 |
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; } |