flutter_adb
1.0.0, released 8 months ago by byme.dev
Pure Dart client for network ADB communication, including wireless pairing and shell access
What it does
Provides a Dart implementation of the Android Debug Bridge protocol over TCP, supporting wireless pairing, QR pairing, and shell streams. It can generate RSA keys for authentication and persist them if desired.
AI-written summary of version 1.0.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to control an Android device over the network from a Flutter or Dart app
- You want to avoid native ADB binaries and use pure Dart
- You need wireless debugging or QR pairing in your app
Skip it when
- You only need to run ADB commands locally on the same machine
- You prefer a higher-level backend SDK that hides ADB details
Strengths
- Pure Dart, no native dependencies
- Supports Android 11+ wireless and QR pairing
- Provides key generation and persistence helpers
- Works on all Flutter platforms
Weaknesses
- No built‑in UI components
- Requires manual key persistence for repeat use
- Limited to ADB protocol, not a full device management SDK
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 3
Add dependency, import package, create AdbCrypto, optionally persist keypair, then use AdbConnection or Adb.sendSingleCommand
final crypto = AdbCrypto(adbKeyName: 'my-app@dart');
final conn = AdbConnection('192.168.1.10', 5555, crypto, verbose: true);
await conn.connect();
final shell = await conn.openShell();
shell.onPayload.listen((p) => print(utf8.decode(p)));
await shell.writeString('pm list packages\n');
await shell.sendClose();
await conn.disconnect();Alternatives
Packages that do the same job and could replace flutter_adb.
- talker_dio_logger
A lightweight, customizable logger for Dio HTTP client built on Talker.
92Compare - native_dio_adapter
A Dio HTTP client adapter that uses native platform HTTP stacks via cupertino_http and cronet_http.
87Compare - dartssh2
SSH and SFTP client written in pure Dart
87Compare - http2
An HTTP/2 implementation in Dart for low-level transport and pooled HTTP/2 requests.
91Compare
Works with
Packages commonly used together with flutter_adb: ones it builds on, ones built on it, and its own family.