Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cocool97 committed Nov 28, 2024
1 parent 92ed68f commit 14e7695
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions adb_client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,11 @@ device.push(&mut input, "/data/local/tmp");
### (TCP) Get a shell from device

```rust no_run
use adb_client::{ADBTCPDevice, ADBDeviceExt};
use std::net::{SocketAddr, IpAddr, Ipv4Addr};
use adb_client::{ADBTcpDevice, ADBDeviceExt};

let mut device = ADBTCPDevice::new("192.168.112.10:43210").expect("cannot find device");
device.shell();
let device_ip = IpAddr::V4(Ipv4Addr::new(192, 168, 0, 10));
let device_port = 43210;
let mut device = ADBTcpDevice::new(SocketAddr::new(device_ip, device_port)).expect("cannot find device");
device.shell(std::io::stdin(), std::io::stdout());
```

0 comments on commit 14e7695

Please sign in to comment.