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

Commit b3f264f9 authored by Yabin Cui's avatar Yabin Cui Committed by android-build-merger
Browse files

Merge "adb: don't reset usb when connecting it." am: 4b8087ae am: 0c1bad30 am: e7affdc4

am: 7ecf6c0e

Change-Id: If47a46c05eda4f59b5221d33c2940de8c8ba4c12
parents 5c1460f0 7ecf6c0e
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -306,14 +306,6 @@ static void poll_for_devices() {
            }
            device_serial.resize(rc);

            // Try to reset the device.
            rc = libusb_reset_device(handle_raw);
            if (rc != 0) {
                LOG(WARNING) << "failed to reset opened device '" << device_serial
                             << "': " << libusb_error_name(rc);
                continue;
            }

            // WARNING: this isn't released via RAII.
            rc = libusb_claim_interface(handle.get(), interface_num);
            if (rc != 0) {