0 purchases
adb monitor
Adb Monitor #
Flutter library to Monitor Adb devices connection using Rust
Getting Started #
Installation #
Install Rust via rustup
Add adb_monitor to pubspec.yaml:
dependencies:
adb_monitor: <version>
copied to clipboard
Platforms Setup #
on MacOS set sandbox to false in macos/Runner/*.entitlements
<key>com.apple.security.app-sandbox</key>
<false/>
copied to clipboard
Initialization #
import 'package:adb_monitor/adb_monitor.dart';
void main() async {
await AdbMonitor.init();
runApp(MyApp());
}
copied to clipboard
Usage #
Listen to Adb Devices
AdbMonitor.devices.listen((String device) {
// Handle devices
});
copied to clipboard
Start Monitoring
AdbMonitor.start();
copied to clipboard
Stop Monitoring
AdbMonitor.stop()
copied to clipboard
Note #
This package uses FFI with flutter_rust_bridge to call Rust code.
On Rust's side, the autoadb is used to detect adb devices.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.