Adb class

Provides Dart interface for common Android Debug Bridge features.

See also:


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


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


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.
toString() String
A string representation of this object.
uninstall(String packageName, {String? device}) Future<ProcessResult>
Uninstalls the app identified by packageName from the the attached device.


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