Adb class

Provides Dart interface for common Android Debug Bridge features.

See also:

Constructors

Adb({AdbInternals adbInternals = const AdbInternals()})
Creates a new Adb instance.

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

devices() Future<List<String>>
Returns the list of currently attached devices.
forwardPorts({required int fromHost, required int toDevice, String? device, String protocol = 'tcp'}) Future<Future<void> Function()>
Sets up port forwarding on the attached device. Returns a function that stops the port forwarding when called.
init() Future<void>
Initializes this Adb instance.
install(String path, {String? device}) Future<ProcessResult>
Installs the APK file (which has to be on path) to the attached device.
instrument({required String packageName, required String intentClass, String? device, Map<String, String> arguments = const {}}) Future<Process>
Runs instrumentation test specified by packageName and intentClass on the attached device.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
uninstall(String packageName, {String? device}) Future<ProcessResult>
Uninstalls the app identified by packageName from the the attached device.

Operators

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