Expand description
adbshell — a reusable Rust crate for interacting with Android devices via ADB.
Provides AdbShell, a concrete implementation of all common ADB operations:
device info queries, file transfers, JAR execution, and reverse-tunnel management.
§Quick start
use adbshell::{AdbResult, AdbShell};
// Verify adb is installed and in PATH
AdbShell::verify_adb_available().expect("adb not found");
// Get the first connected device serial
let serial = AdbShell::get_device_serial().expect("no device connected");
// Query a system property
let sdk = AdbShell::get_prop(&serial, "ro.build.version.sdk").unwrap();
println!("SDK: {sdk}");Structs§
- AdbShell
- A unit-struct that provides stateless ADB operations as associated functions.
Enums§
- AdbError
- Errors produced by ADB operations.
- Device
State - Connection state of an Android device as reported by
adb get-state.
Type Aliases§
- AdbResult
- Convenience result alias for ADB operations.