adb_dart 1.2.0
adb_dart: ^1.2.0 copied to clipboard
A lightweight Dart client for interacting with Android devices through ADB (Android Debug Bridge). List devices, install APKs, read logcat, and more.
1.2.0 #
New Features #
- System Information: Retrieve detailed device information
getBatteryInfo()- Battery level, status, health, temperature, voltagegetStorageInfo()- Storage usage for all mount pointsgetDisplayInfo()- Screen resolution and densitygetNetworkInfo()- WiFi status, IP addresses, network interfaces
- App Management: Control applications on the device
launchApp()- Launch an app by package namestartActivity()- Start a specific activity with extras, action, and dataforceStopApp()- Force stop a running applicationclearAppData()- Clear all data for an applicationuninstallApplication()- Uninstall an app with optional data preservation
New Models #
BatteryInfo- Battery status with level, health, temperature, charging stateBatteryStatus- Enumeration of battery states (charging, discharging, full, etc.)BatteryHealth- Enumeration of battery health statesPlugType- Enumeration of power sources (ac, usb, wireless)StorageInfo- Storage mount information with size and usageDisplayInfo- Display resolution and densityNetworkInfo- Network status with WiFi and interfacesWifiInfo- WiFi connection detailsNetworkInterface- Network interface with IP addresses
New Services #
AdbSystemService- Service for system information retrieval
Breaking Changes #
- None - All existing APIs remain backward compatible
1.1.0 #
New Features #
- File System Management: Complete file system operations support
- List files and directories with detailed information (
listFiles) - Upload files from local filesystem to device (
uploadFile) - Download files from device to local filesystem (
downloadFile) - Create directories on device (
createDirectory) - Delete files and directories (
deleteFile) - Support for app-specific private directories using
run-as
- List files and directories with detailed information (
- Logging System: Customizable logging with
AdbLoggerinterfaceDefaultLoggerimplementation for console output- Custom logger support via constructor parameter
- Architecture Refactoring: Service-based architecture for better maintainability
AdbDeviceServicefor device managementAdbPackageServicefor package operationsAdbPropertyServicefor system propertiesAdbLogcatServicefor logcat operationsAdbFileSystemServicefor file system operations
New Models #
FileEntry: Represents files and directories with metadata (name, type, size, permissions, date, etc.)FileType: Enumeration for file types (file, directory, symlink, unknown)
New Exceptions #
AdbDeviceException: For device-related errorsAdbPackageException: For package management errorsAdbPropertyException: For property retrieval errorsAdbLogcatException: For logcat operation errorsAdbInstallationException: For APK installation failures
Breaking Changes #
- None - All existing APIs remain backward compatible
1.0.0 #
- Initial release of adb_dart
- List connected Android devices with detailed information
- Install APK files on devices
- Retrieve all installed third-party packages
- Access device system properties
- Stream logcat output with filtering options (by level and process ID)
- Clear logcat buffer
- Comprehensive error handling with custom exceptions