• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

system/core


Commit MetaInfo

Revision8ef22b102ce2eaa5668adc2631ad24017777d610 (tree)
Zeit2019-05-23 06:06:56
AutorJosh Gao <jmgao@goog...>
CommiterAndroid (Google) Code Review

Log Message

Merge "adbd: respond to device-to-host control transfers." into qt-dev

Ändern Zusammenfassung

Diff

--- a/adb/daemon/usb.cpp
+++ b/adb/daemon/usb.cpp
@@ -380,7 +380,12 @@ struct UsbFfsConnection : public Connection {
380380 << ", wLength = " << static_cast<int>(event.u.setup.wLength);
381381
382382 if ((event.u.setup.bRequestType & USB_DIR_IN)) {
383- LOG(WARNING) << "received a device-to-host control transfer, ignoring";
383+ LOG(INFO) << "acking device-to-host control transfer";
384+ ssize_t rc = adb_write(control_fd_.get(), "", 0);
385+ if (rc != 0) {
386+ PLOG(ERROR) << "failed to write empty packet to host";
387+ break;
388+ }
384389 } else {
385390 std::string buf;
386391 buf.resize(event.u.setup.wLength + 1);