Merge "Revert "Reland "adb: daemon: Assign valid fd to usb_handle ep0 file descriptor""" am: 20f079ec66 am: 36e15dd5c3

Change-Id: I92352cfbcacc3122bd67098aa3c016879a31541d
This commit is contained in:
Josh Gao 2020-04-07 11:33:28 +00:00 committed by Automerger Merge Worker
commit 914d642551

View file

@ -300,7 +300,6 @@ bool open_functionfs(android::base::unique_fd* out_control, android::base::uniqu
}
// Signal only when writing the descriptors to ffs
android::base::SetProperty("sys.usb.ffs.ready", "1");
*out_control = std::move(control);
}
bulk_out.reset(adb_open(USB_FFS_ADB_OUT, O_RDONLY));
@ -315,6 +314,7 @@ bool open_functionfs(android::base::unique_fd* out_control, android::base::uniqu
return false;
}
*out_control = std::move(control);
*out_bulk_in = std::move(bulk_in);
*out_bulk_out = std::move(bulk_out);
return true;