bundletool Documentation

repository·master·Indexed 26 days ago

https://github.com/google/bundletool

A command-line tool for manipulating Android App Bundles (.aab) and Android SDK Bundles (.asb). It enables developers to build bundles, generate device-specific APK sets, install APKs to devices, manage code transparency, and create Android SDK archives (.asar).

Tokens
288
Snippets
0
Records
1
Agent score
38%

What's inside bundletool

  1. Overview of bundletool capabilities

    master

    bundletool 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 .apks archive 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 .apks archive containing SDK APKs for all devices.
    • Generate Android SDK archive: Create an .asar file, which is a Maven-friendly representation of an Android SDK Bundle.