go-adb

module
v0.0.0-...-ccd476d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 4, 2025 License: MIT

README

go-adb

Go ADB library.

  • Full control over timeouts and cancellation.
  • High-level idiomatic Go wrappers around common functionality.
  • Access to low-level protocol details where required.
  • All errors are checked.
  • Focused on modern APIs; legacy ADB behaviour is not a priority.
  • Highly extensible.

[!WARNING] This library is a work-in-progress. Only parts of it have been fully tested, and the API is experimental and subject to change.

To keep this library maintainable and reduce the risk of breakage across versions, features not part of the core adb protocol are out of scope for this library. This includes interacting with on-device commands like am, pm, input, and so in, including through abb. These features could be implemented as part of another library if needed.

Directories

Path Synopsis
adb
Package adb interacts with ADB servers.
Package adb interacts with ADB servers.
adbhost
Package adbhost connects to an ADB host server.
Package adbhost connects to an ADB host server.
adbproto
Package adbproto implements the core ADB protocol.
Package adbproto implements the core ADB protocol.
adbproto/adbpb
Package adbppb contains adb protobuf definitions.
Package adbppb contains adb protobuf definitions.
adbproto/aproto
Package aproto implements the lower level transport protocol used by ADB.
Package aproto implements the lower level transport protocol used by ADB.
adbproto/jdwp
Package jdwp implements types to communicate using the the Java Debug Wire Protocol.
Package jdwp implements types to communicate using the the Java Debug Wire Protocol.
adbproto/shellproto2
Package shellproto2 implements the shell v2 protocol.
Package shellproto2 implements the shell v2 protocol.
adbtcpip
Package adbtcpip authenticates with and connects to an ADB server over TCP/IP.
Package adbtcpip authenticates with and connects to an ADB server over TCP/IP.
adbusb
Package adbusb authenticates with and connects to an ADB device over USB.
Package adbusb authenticates with and connects to an ADB device over USB.
Package adblib provides high-level ADB functionality.
Package adblib provides high-level ADB functionality.
adbexec
Package adbexec implements a high-level interface around the legacy shell and exec protocols.
Package adbexec implements a high-level interface around the legacy shell and exec protocols.
adbexec/v2
Package adbexec implements a high-level interface around the shell v2 protocol.
Package adbexec implements a high-level interface around the shell v2 protocol.
adbfs
Package adbfs provides access to files on the device.
Package adbfs provides access to files on the device.
adbnet
Package adbnet implements helpers for making connections throughand listening on the target device.
Package adbnet implements helpers for making connections throughand listening on the target device.
adbsync
Package adbsync wraps the sync protocol.
Package adbsync wraps the sync protocol.
internal
bionic
Package bionic contains stuff for working with bionic libc types.
Package bionic contains stuff for working with bionic libc types.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL