This crate is not affiliated with Android development core team.
It is still under active development, please report found bugs as issues !
Simply add this to your Cargo.toml
:
toml
[dependencies]
adb_client = "*"
To launch a command on host device :
rust
let connexion = AdbTcpConnexion::new();
connexion.shell_command("df -h");
To get available ADB devices :
rust
let connexion = AdbTcpConnexion::new();
connexion.devices();
You can install the lightweight adb binary by running the following command :
cargo install adb_client --features adbclient