modulepackage
0.0.0-20240311163717-82a4324dc42b
Repository: https://github.com/matt-e/go-adb.git
Documentation: pkg.go.dev
# README
#goadb
A Golang library for interacting with the Android Debug Bridge (adb).
See demo.go for usage.
For this project, a tool called stringer
is used to modify some files during go generate
step.
Codes will be generated in the following files:
devicedescriptortype_string.go
devicestate_string.go
internal/errors/errcode_string.go
Please make sure your environment variable GOBIN
is correctly set, so that stringer
can be successfully installed.
There is a Makefile at repo root. Just need to run:
make
It will download all dependencies, install stringer
locally, generate code, and run the tests.
# Functions
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ErrorWithCauseChain formats err and all its causes if it's an *errors.Err, else returns
err.Error().
HasErrCode returns true if err is an *errors.Err and err.Code == code.
New creates a new Adb client that uses the default ServerConfig.
No description provided by the author
# Constants
The server returned an error message, but we couldn't parse it.
No description provided by the author
Default port the adb server listens on.
No description provided by the author
The connection to the server was reset in the middle of an operation.
host:transport-any and host:<request>.
host:transport-local and host-local:<request>.
The server returned a "device not found" error.
host:transport:<serial> and host-serial:<serial>:<request>.
host:transport-usb and host-usb:<request>.
Tried to perform an operation on a path that doesn't exist on the device.
General network error communicating with the server.
No description provided by the author
The server was not available on the requested port.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
MtimeOfClose should be passed to OpenWrite to set the file modification time to the time the Close method is called.
# Structs
Adb communicates with host services on the adb server.
No description provided by the author
Device communicates with a specific Android device.
No description provided by the author
No description provided by the author
DeviceStateChangedEvent represents a device state transition.
DeviceWatcher publishes device status change events.
DirEntries iterates over directory entries.
DirEntry holds information about a directory entry on a device.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Interfaces
Dialer knows how to create connections to an adb server.
# Type aliases
DeviceState represents one of the 3 possible states adb will report devices.
No description provided by the author