adb_dart 1.2.0 copy "adb_dart: ^1.2.0" to clipboard
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, voltage
    • getStorageInfo() - Storage usage for all mount points
    • getDisplayInfo() - Screen resolution and density
    • getNetworkInfo() - WiFi status, IP addresses, network interfaces
  • App Management: Control applications on the device
    • launchApp() - Launch an app by package name
    • startActivity() - Start a specific activity with extras, action, and data
    • forceStopApp() - Force stop a running application
    • clearAppData() - Clear all data for an application
    • uninstallApplication() - Uninstall an app with optional data preservation

New Models #

  • BatteryInfo - Battery status with level, health, temperature, charging state
  • BatteryStatus - Enumeration of battery states (charging, discharging, full, etc.)
  • BatteryHealth - Enumeration of battery health states
  • PlugType - Enumeration of power sources (ac, usb, wireless)
  • StorageInfo - Storage mount information with size and usage
  • DisplayInfo - Display resolution and density
  • NetworkInfo - Network status with WiFi and interfaces
  • WifiInfo - WiFi connection details
  • NetworkInterface - 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
  • Logging System: Customizable logging with AdbLogger interface
    • DefaultLogger implementation for console output
    • Custom logger support via constructor parameter
  • Architecture Refactoring: Service-based architecture for better maintainability
    • AdbDeviceService for device management
    • AdbPackageService for package operations
    • AdbPropertyService for system properties
    • AdbLogcatService for logcat operations
    • AdbFileSystemService for 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 errors
  • AdbPackageException: For package management errors
  • AdbPropertyException: For property retrieval errors
  • AdbLogcatException: For logcat operation errors
  • AdbInstallationException: 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
4
likes
160
points
108
downloads

Publisher

unverified uploader

Weekly Downloads

A lightweight Dart client for interacting with Android devices through ADB (Android Debug Bridge). List devices, install APKs, read logcat, and more.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

More

Packages that depend on adb_dart