AdbProtocol class

Constructors

AdbProtocol()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

CONNECT_PAYLOAD Uint8List
The payload sent with the connect message
getter/setter pair

Static Methods

generateAuth(int authType, Uint8List payload) Uint8List
generateClose(int localId, int remoteId) Uint8List
generateConnect() Uint8List
generateMessage(int command, int arg0, int arg1, Uint8List? payload) Uint8List
generateOpen(int localId, String destination) Uint8List
generatePayloadChecksum(Uint8List payload) int
generateReady(int localId, int remoteId) Uint8List
generateWrite(int localId, int remoteId, Uint8List payload) Uint8List
validateAdbMessage(AdbMessage message) bool

Constants

ADB_HEADER_LENGTH → const int
The length of the ADB message header
AUTH_TYPE_RSA_PUBLIC → const int
This authentication type represents a RSA public key
AUTH_TYPE_SIGNATURE → const int
This authentication type represents the signed SHA1 hash
AUTH_TYPE_TOKEN → const int
This authentication type represents a SHA1 hash to sign
CMD_AUTH → const int
AUTH is the authentication message. It is part of the RSA public key authentication added in Android 4.2.2.
CMD_CLSE → const int
CLSE is the close stream message. It it sent to close an existing stream on the target device.
CMD_CNXN → const int
CNXN is the connect message. No messages (except AUTH) are valid before this message is received.
CMD_OKAY → const int
OKAY is a success message. It is sent when a write is processed successfully.
CMD_OPEN → const int
OPEN is the open stream message. It is sent to open a new stream on the target device.
CMD_WRTE → const int
WRTE is the write stream message. It is sent with a payload that is the data to write to the stream.
CONNECT_MAXDATA → const int
The maximum data payload supported by the ADB implementation
CONNECT_VERSION → const int
The current version of the ADB protocol