summaryrefslogtreecommitdiffstats
path: root/install/fuse_sdcard_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/fuse_sdcard_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/fuse_sdcard_install.cpp')
-rw-r--r--install/fuse_sdcard_install.cpp7
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;
}