adb
0.6.1, released 3 months ago by leancode.co
A Dart wrapper for interacting with the Android Debug Bridge (adb).
What it does
Provides a Dart API to run adb commands, manage devices, forward ports, install apps, and read logcat output. It abstracts adb invocation and error handling for easier use in Dart/Flutter projects.
AI-written summary of version 0.6.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to automate Android device tasks from Dart code
- You want to integrate adb operations into CI/CD pipelines or Flutter tooling
Skip it when
- Your app runs on iOS only
- You require a cross‑platform device management solution beyond Android
Strengths
- Simple, focused API for adb
- No external Dart dependencies
- Supports common adb actions like install, uninstall, forward ports
Weaknesses
- Only works on Android devices
- Relies on adb being available in the system PATH
- Limited to command‑line features, no high‑level abstractions
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
import 'package:adb/adb.dart';
void main() async {
final adb = Adb();
final devices = await adb.devices();
print('Connected devices: $devices');
await adb.install('path/to/app.apk');
}Alternatives
Packages that do the same job and could replace adb.
- universal_web
Wrapper that allows importing web APIs in non-web environments
76Compare - libsignal
Dart wrapper for libsignal providing Signal Protocol end-to-end encryption.
67Compare - serial
Wrapper for the Web Serial API to use serial ports in Flutter web.
48Compare - actors
Thin wrapper around Dart Isolates implementing the Actor Model
44Compare
Works with
Packages commonly used together with adb: ones it builds on, ones built on it, and its own family.