aapt_dart 1.1.0
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 APKextractApkEntry()— extracts a single entry as raw bytes
- Resource Dumping:
dumpResources()— wrapsaapt dump resourcesand 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
nullfor 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 manifestproviders— list of content providers declared in the manifestlaunchableActivities— all launcher activity names (existinglaunchableActivitykept 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 interfaceDefaultAaptLogger: Default console logger implementation- Support for custom logger implementations
- Exception Handling:
AaptException: Base exception for all AAPT-related errorsAaptNotFoundException: Thrown when AAPT executable is not foundApkNotFoundException: Thrown when APK file is not foundApkParsingException: Thrown when APK parsing fails
- Examples: Comprehensive examples demonstrating all features
- Documentation: Full API documentation and usage examples