Linux command
bundletool-dump 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Dump the AndroidManifest.xml
bundletool dump manifest --bundle=[app.aab]
Get a specific manifest value
bundletool dump manifest --bundle=[app.aab] --xpath=/manifest/@versionCode
Dump all resources
bundletool dump resources --bundle=[app.aab]
Dump a specific resource
bundletool dump resources --bundle=[app.aab] --resource=[0x7f0e013a] --values
Dump bundle configuration
bundletool dump config --bundle=[app.aab]
Dump signature information
bundletool dump signatures --bundle=[app.aab]
说明
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.
参数
- --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.
- --module _name_
- Specify a module in the bundle to dump from.
- --output-file _path_
- Write output to a file instead of stdout.
FAQ
What is the bundletool-dump command used for?
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.
How do I run a basic bundletool-dump example?
Run `bundletool dump manifest --bundle=[app.aab]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --bundle _path_ do in bundletool-dump?
Path to the Android App Bundle (.aab) file.