Skip to content

Commit

Permalink
feat: do not detach kernel driver (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
st1020 authored Dec 10, 2024
1 parent 5dfd30c commit 5a3ac68
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions adb_client/src/transports/usb_transport.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()?;
Expand Down Expand Up @@ -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];
Expand Down

0 comments on commit 5a3ac68

Please sign in to comment.