An Android App Bundle (AAB) is a file with the .aab extension that developers upload to Google Play. It is a signed archive that organizes the app's code and resources into modules. Users never install it: Google Play generates the APKs it serves to devices from the bundle.
Updated: 2026-11-24·2 min read
Why it matters for security
A release audit should look at the artifact that goes to the store, and for Google Play that artifact is the AAB. The bundle holds the same code, strings and keys as the APKs built from it. Leaked secrets and manifest flags therefore show up in it before the app reaches any user.
What is inside
The bundle is organized into modules, and the code and resources of each module look much like the contents of an APK:
base/: the base module, always present, with base/manifest/AndroidManifest.xml, base/dex/classes.dex, resources, assets and native libraries.
One top-level directory per feature module, named after that module.
Asset packs for large files such as game textures.
BundleConfig.pb: information about the bundle itself.
BUNDLE-METADATA/: files for tools and stores, which may include ProGuard mappings and the list of the app's DEX files.
Upload key and app signing key
With Play App Signing, Google holds the app signing key and the developer uploads the bundle with a separate upload key. Google recommends that the two keys be different. For an audit this means that the certificate of an APK installed from Play is the app signing certificate, and it does not match the developer's upload keystore.
How to inspect an AAB
The file is a ZIP archive, so the listing and decompilation commands from the APK page work the same way. jadx also accepts .aab as input:
unzip -l app.aab
jadx -d out app.aab
What the scan reports
APKSonar accepts an AAB directly, with no conversion to APK. The report lists manifest flags, leaked secrets and library versions with file:line evidence. The differences between the package formats are described in APK vs AAB vs XAPK vs split APKs.