aapt_dart 1.1.0 copy "aapt_dart: ^1.1.0" to clipboard
aapt_dart: ^1.1.0 copied to clipboard

A pure Dart library for extracting APK information using AAPT (Android Asset Packaging Tool). Extract package details, permissions, activities, and more from APK files.

1.1.0 #

New Features #

  • APK File Inspection: New methods for inspecting APK archive contents without aapt
    • listApkFiles() — lists all file paths inside an APK
    • extractApkEntry() — extracts a single entry as raw bytes
  • Resource Dumping: dumpResources() — wraps aapt dump resources and returns raw output
  • Signature Extraction: getApkSignature() — full certificate extraction pipeline
    • Detects signing scheme (v1 JAR, v1 + v2/v3)
    • Parses issuer, validity dates, algorithm, and key size via OpenSSL
    • Computes SHA-256 fingerprint
    • Returns null for unsigned APKs

New Model #

  • ApkSignatureInfo — signing certificate details (scheme, sha256, issuer, dates, algorithm, key size)

ApkInfo Extended #

  • compileSdkVersion — compile SDK version (nullable int)
  • receivers — list of broadcast receivers declared in the manifest
  • providers — list of content providers declared in the manifest
  • launchableActivities — all launcher activity names (existing launchableActivity kept for compatibility)

1.0.0 #

  • Initial release of aapt_dart package
  • AaptClient: Main client for interacting with AAPT executable
    • Support for custom AAPT executable path
    • Configurable logging with custom logger support
    • AAPT version retrieval
  • APK Information Extraction: Extract comprehensive APK metadata
    • Package name, version code, and version name
    • Application label and icon
    • SDK version and target SDK version
    • Permissions and features
    • Activities and services
    • Launchable activity
    • Native libraries
    • Supported locales and screen densities
    • Debuggable flag detection
  • Models:
    • ApkInfo: Comprehensive APK information model
  • Logging System:
    • AaptLogger: Abstract logger interface
    • DefaultAaptLogger: Default console logger implementation
    • Support for custom logger implementations
  • Exception Handling:
    • AaptException: Base exception for all AAPT-related errors
    • AaptNotFoundException: Thrown when AAPT executable is not found
    • ApkNotFoundException: Thrown when APK file is not found
    • ApkParsingException: Thrown when APK parsing fails
  • Examples: Comprehensive examples demonstrating all features
  • Documentation: Full API documentation and usage examples
2
likes
150
points
54
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A pure Dart library for extracting APK information using AAPT (Android Asset Packaging Tool). Extract package details, permissions, activities, and more from APK files.

Repository (GitHub)
View/report issues

Topics

#android #apk #aapt #analysis #parser

License

MIT (license)

More

Packages that depend on aapt_dart