diff --git a/adb_client/src/transports/usb_transport.rs b/adb_client/src/transports/usb_transport.rs index 9436eff..5b37f87 100644 --- a/adb_client/src/transports/usb_transport.rs +++ b/adb_client/src/transports/usb_transport.rs @@ -149,10 +149,6 @@ impl ADBMessageTransport for USBTransport { let endpoint = self.find_writable_endpoint()?; let handle = self.get_raw_connection()?; - if let Ok(true) = handle.kernel_driver_active(endpoint.iface) { - handle.detach_kernel_driver(endpoint.iface)?; - } - Self::configure_endpoint(&handle, &endpoint)?; let message_bytes = message.header().as_bytes()?; @@ -184,10 +180,6 @@ impl ADBMessageTransport for USBTransport { let endpoint = self.find_readable_endpoint()?; let handle = self.get_raw_connection()?; - if let Ok(true) = handle.kernel_driver_active(endpoint.iface) { - handle.detach_kernel_driver(endpoint.iface)?; - } - Self::configure_endpoint(&handle, &endpoint)?; let mut data = [0; 24];