adb-client-tokio 0.0.2

A Rust library for communicating with Android devices via the Android Debug Bridge (ADB) protocol.
Documentation

Build

Rust Android Debug Bridge (ADB) Client Library

A pure rust implementation to send commands and forwards traffic to an android device using a adb server.

Examples

Run a shell command on an device:

        let adb_client = AdbClient::connect_tcp("127.0.0.1:5037").await?;
        let manufaturer: String = adb_client
            .shell("MY_SERIAL", "getprop ro.product.manufacturer")
            .await?;

Protocol Details

Checkout Android Source for Details about the used protocols

Development

To inspect adb traffic you can e.g. use SOCAT like this: socat -x -v TCP-LISTEN:8080,fork TCP:127.0.0.1:5037