Documentation
¶
Overview ¶
Package adb runs bounded shell-v2 commands through an already paired local adbd.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrProtocol = errors.New("unsupported or invalid ADB protocol") ErrAuthentication = errors.New("ADB authentication failed; check wireless debugging and pairing") )
Protocol and authentication errors let callers distinguish permanent failures from socket errors.
Example: a revoked pairing is exposed as ErrAuthentication rather than retried indefinitely.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client holds one immutable, already paired RSA identity.
Example: NewClient reads a dedicated SDK-generated adbkey.
type ExitError ¶
type ExitError struct{ Code int }
ExitError reports a completed command with a nonzero exit code.
Example: unsupported fixed-performance hardware may return exit 255.
Click to show internal directories.
Click to hide internal directories.