Overview of bundletool capabilities
masterbundletool is a command-line utility used to manipulate Android App Bundles (.aab) and Android SDK Bundles (.asb). It is primarily used for managing app distribution formats and interacting with device-specific APKs.
Key capabilities include:
Android App Bundle (.aab) tasks
- Build: Create an Android App Bundle from pre-compiled modules.
- Generate APK Set: Create an
.apksarchive containing APKs for all possible device configurations. - Extract APKs: Pull APKs from an APK Set that are compatible with a specific device.
- Install APKs: Install APKs from an APK Set onto a connected device.
- Device Spec: Extract a device's specifications as a JSON file.
- Code Transparency: Add or verify code transparency (an optional code signing mechanism) within bundles, APKs, or installed applications.
Android SDK Bundle (.asb) tasks
- Build: Create an Android SDK Bundle from pre-compiled modules.
- Generate APK Set: Create an
.apksarchive containing SDK APKs for all devices. - Generate Android SDK archive: Create an
.asarfile, which is a Maven-friendly representation of an Android SDK Bundle.