Expand description

Rust ADB (Android Debug Bridge) client library

This crate is not affiliated with Android development core team.

It is still under active development, please report found bugs as issues !

Rust crate

Simply add this to your Cargo.toml:

[dependencies]
adb_client = "*"

To launch a command on host device :

use adb_client::AdbTcpConnexion;

let connexion = AdbTcpConnexion::new();
connexion.shell_command(None, vec!["df", "-h"]);

To get available ADB devices :

use adb_client::AdbTcpConnexion;

let connexion = AdbTcpConnexion::new();
connexion.devices();

Rust binary

You can install the lightweight adb binary by running the following command :

cargo install adb_client --features adbclient 

https://developer.android.com/studio/command-line/adb

https://github.com/cstyan/adbDocumentation

Structs

Represents an ADB-over-TCP connexion.

Represents the ADB server version.

Represents a device connected to the ADB server.

Represents a new device with more informations helded.

Enums

Represents the connection state of the device.

Represents all error types that can be thrown by the crate.

Type Definitions

Custom Result type thrown by this crate.