LinuxCommandLibrary

bundletool-dump

Inspect Android App Bundle contents

TLDR

Dump the AndroidManifest.xml from an app bundle

$ bundletool dump manifest --bundle=[app.aab]
copy
Get a specific manifest value using XPath
$ bundletool dump manifest --bundle=[app.aab] --xpath=/manifest/@versionCode
copy
Dump all resources from an app bundle
$ bundletool dump resources --bundle=[app.aab]
copy
Dump a specific resource by ID
$ bundletool dump resources --bundle=[app.aab] --resource=[0x7f0e013a] --values
copy
Dump bundle configuration
$ bundletool dump config --bundle=[app.aab]
copy
Dump signature information
$ bundletool dump signatures --bundle=[app.aab]
copy

SYNOPSIS

bundletool dump subcommand --bundle=path [options]

DESCRIPTION

bundletool dump analyzes the internal structure and metadata of Android App Bundles (.aab) and APK files. It's part of Google's bundletool, the underlying tool used by Android Studio and Google Play to build and process App Bundles.
Use cases include build verification, security analysis of signing certificates, resource management inspection, and debugging manifest issues.

PARAMETERS

--bundle path

Path to the Android App Bundle (.aab) file.
--xpath expression
XPath expression to extract specific manifest values.
--resource id
Specific resource ID to dump.
--values
Include resource values in output.

SUBCOMMANDS

manifest

Dump the parsed AndroidManifest.xml content.
resources
Dump detailed information about the app's resources.
config
Dump bundle configuration (SDK versions, ABIs, screen densities).
signatures
Dump digital signature information.

CAVEATS

Requires Java Runtime Environment (JRE) version 11 or higher. Not typically pre-installed on Linux systems.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community