diff --git a/Cargo.toml b/Cargo.toml index f81b50f..85aa093 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,7 +6,7 @@ license = "MIT" name = "adb_client" readme = "README.md" repository = "https://github.com/cocool97/adb_client" -version = "0.6.0" +version = "0.7.0" [lib] name = "adb_client" diff --git a/README.md b/README.md index 823ee0f..9d38546 100644 --- a/README.md +++ b/README.md @@ -38,6 +38,17 @@ let mut connexion = AdbTcpConnexion::new(Ipv4Addr::from([127,0,0,1]), 5037).unwr connexion.devices(); ``` +### Push a file to the device + +```rust +use adb_client::AdbTcpConnexion; +use std::net::Ipv4Addr; + +let mut connexion = AdbTcpConnexion::new(Ipv4Addr::from([127,0,0,1]), 5037).unwrap(); +let mut input = File::open(Path::new(&filename)).unwrap(); +connexion.send(None, &mut input, &path)?; +``` + ## Rust binary This crate also provides a lightweight binary based on the `adb_client` crate. You can install it by running the following command :