Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cd855561 authored by Josh Gao's avatar Josh Gao
Browse files

adb: libusb: don't set interface alternate setting.

Match behavior with the legacy implementation.

Test: ADB_TRACE=1 adb server nodaemon
Change-Id: If1451871f252ef4499b3bb887e947169f8d2432f
parent 42b38900
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -332,13 +332,6 @@ static void process_device(libusb_device* device) {
            return;
        }

        rc = libusb_set_interface_alt_setting(handle.get(), interface_num, 0);
        if (rc != 0) {
            LOG(WARNING) << "failed to set interface alt setting for device '" << device_serial
                         << "'" << libusb_error_name(rc);
            return;
        }

        for (uint8_t endpoint : {bulk_in, bulk_out}) {
            rc = libusb_clear_halt(handle.get(), endpoint);
            if (rc != 0) {