summaryrefslogtreecommitdiffstats
path: root/minadbd/minadbd_services.cpp
diff options
context:
space:
mode:
authorxunchang <xunchang@google.com>2019-03-16 00:04:32 +0100
committerxunchang <xunchang@google.com>2019-03-19 21:03:59 +0100
commit5e6832a24d39f15261be0cad19708274db57a126 (patch)
tree0e556c1f464c230f410028b8abf6378f0b45c92e /minadbd/minadbd_services.cpp
parentCreate a FuseDataProvider base class (diff)
downloadandroid_bootable_recovery-5e6832a24d39f15261be0cad19708274db57a126.tar
android_bootable_recovery-5e6832a24d39f15261be0cad19708274db57a126.tar.gz
android_bootable_recovery-5e6832a24d39f15261be0cad19708274db57a126.tar.bz2
android_bootable_recovery-5e6832a24d39f15261be0cad19708274db57a126.tar.lz
android_bootable_recovery-5e6832a24d39f15261be0cad19708274db57a126.tar.xz
android_bootable_recovery-5e6832a24d39f15261be0cad19708274db57a126.tar.zst
android_bootable_recovery-5e6832a24d39f15261be0cad19708274db57a126.zip
Diffstat (limited to '')
-rw-r--r--minadbd/minadbd_services.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/minadbd/minadbd_services.cpp b/minadbd/minadbd_services.cpp
index 3e1128546..6fe5c79bc 100644
--- a/minadbd/minadbd_services.cpp
+++ b/minadbd/minadbd_services.cpp
@@ -22,6 +22,7 @@
#include <unistd.h>
#include <functional>
+#include <memory>
#include <string>
#include <string_view>
#include <thread>
@@ -30,6 +31,7 @@
#include "adb_unique_fd.h"
#include "fdevent.h"
#include "fuse_adb_provider.h"
+#include "fuse_sideload.h"
#include "services.h"
#include "sysdeps.h"
@@ -44,7 +46,9 @@ static void sideload_host_service(unique_fd sfd, const std::string& args) {
printf("sideload-host file size %" PRId64 " block size %d\n", file_size, block_size);
- int result = run_adb_fuse(std::move(sfd), file_size, block_size);
+ auto adb_data_reader =
+ std::make_unique<FuseAdbDataProvider>(std::move(sfd), file_size, block_size);
+ int result = run_fuse_sideload(std::move(adb_data_reader));
printf("sideload_host finished\n");
exit(result == 0 ? 0 : 1);