Skip to main content

Crate smix_adb

Crate smix_adb 

Source
Expand description

smix-adb — Android Debug Bridge (adb) child_process wrapper.

Counterpart of smix_simctl::SimctlClient for Android. Used by smix_sdk::AndroidDeviceControl (v6.0 c2) to implement the DeviceControl trait on Android.

Per docs/plan-cold/v6-android-master.md §1 v6.0 c2 — skeleton with parser unit tests + command dispatch + error envelope. Real-device invocations need a booted emulator (acceptance gated by ignore attribute on tests requiring live adb).

§Wire model

Each AdbClient method spawns adb -s <serial> <subcommand> ... via tokio process, captures stdout+stderr, surfaces non-zero exit / spawn failure as AdbError variants. No retries — caller-side concern.

Structs§

AdbClient
Client wrapping adb invocations.
AdbDevice
One Android device known to adb devices -l.

Enums§

AdbError
Failure variants for any adb invocation.

Functions§

parse_devices_stdout
Parse adb devices -l stdout into AdbDevice entries.