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/fuse_sdcard_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/fuse_sdcard_install.cpp')
-rw-r--r-- | install/fuse_sdcard_install.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/install/fuse_sdcard_install.cpp b/install/fuse_sdcard_install.cpp index a5caa6e75..9fdb2f341 100644 --- a/install/fuse_sdcard_install.cpp +++ b/install/fuse_sdcard_install.cpp @@ -182,8 +182,11 @@ InstallResult ApplyFromSdcard(Device* device, RecoveryUI* ui) { break; } } - - result = InstallPackage(FUSE_SIDELOAD_HOST_PATHNAME, false, false, 0 /* retry_count */, 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 /* retry_count */, ui); break; } |