summaryrefslogtreecommitdiffstats
path: root/install/fuse_sdcard_install.cpp
diff options
context:
space:
mode:
authorTianjie Xu <xunchang@google.com>2019-06-12 00:43:43 +0200
committerTianjie Xu <xunchang@google.com>2019-06-13 22:36:56 +0200
commit980f92ec008738b4d54208ed0fe9bd9cede4d7e1 (patch)
tree60386946c664bf958ec9ed2dc501e5eb68b6b6e7 /install/fuse_sdcard_install.cpp
parentMerge "minadbd: Support `adb rescue getprop`." (diff)
downloadandroid_bootable_recovery-980f92ec008738b4d54208ed0fe9bd9cede4d7e1.tar
android_bootable_recovery-980f92ec008738b4d54208ed0fe9bd9cede4d7e1.tar.gz
android_bootable_recovery-980f92ec008738b4d54208ed0fe9bd9cede4d7e1.tar.bz2
android_bootable_recovery-980f92ec008738b4d54208ed0fe9bd9cede4d7e1.tar.lz
android_bootable_recovery-980f92ec008738b4d54208ed0fe9bd9cede4d7e1.tar.xz
android_bootable_recovery-980f92ec008738b4d54208ed0fe9bd9cede4d7e1.tar.zst
android_bootable_recovery-980f92ec008738b4d54208ed0fe9bd9cede4d7e1.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;
}