From 3192ab066b8d4ba0000ea17fe56127763c4e12d9 Mon Sep 17 00:00:00 2001 From: Axel Navarro Date: Fri, 12 Mar 2021 21:04:37 -0300 Subject: [PATCH] bundletool, bundletool-validate: add page (#5263) --- pages/common/bundletool-validate.md | 8 +++++++ pages/common/bundletool.md | 36 +++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 pages/common/bundletool-validate.md create mode 100644 pages/common/bundletool.md diff --git a/pages/common/bundletool-validate.md b/pages/common/bundletool-validate.md new file mode 100644 index 0000000000..ae5eedb49a --- /dev/null +++ b/pages/common/bundletool-validate.md @@ -0,0 +1,8 @@ +# bundletool validate + +> Command-line tool to manipulate Android Application Bundles. +> More information: . + +- Verify a bundle and display detailed information about it: + +`bundletool validate --bundle={{path/to/bundle.aab}}` diff --git a/pages/common/bundletool.md b/pages/common/bundletool.md new file mode 100644 index 0000000000..9ff8bce98e --- /dev/null +++ b/pages/common/bundletool.md @@ -0,0 +1,36 @@ +# bundletool + +> Command-line tool to manipulate Android Application Bundles. +> More information: . + +- Display help for a subcommand: + +`bundletool help {{subcommand}}` + +- Generate APKs from an application bundle (prompts for keystore password): + +`bundletool build-apks --bundle={{path/to/bundle.aab}} --ks={{path/to/key.keystore}} --ks-key-alias={{key_alias}} --output={{path/to/file.apks}}` + +- Generate APKs from an application bundle giving the keystore password: + +`bundletool build-apks --bundle={{path/to/bundle.aab}} --ks={{path/to/key.keystore}} --ks-key-alias={{key_alias}} –ks-pass={{pass:the_password}} --output={{path/to/file.apks}}` + +- Generate APKs including only one single APK for universal usage: + +`bundletool build-apks --bundle={{path/to/bundle.aab}} --mode={{universal}} --ks={{path/to/key.keystore}} --ks-key-alias={{key_alias}} --output={{path/to/file.apks}}` + +- Install the right combination of APKs to an emulator or device: + +`bundletool install-apks --apks={{path/to/file.apks}}` + +- Estimate the download size of an application: + +`bundletool get-size total --apks={{path/to/file.apks}}` + +- Generate a device specification JSON file for an emulator or device: + +`bundletool get-device-spec --output={{path/to/file.json}}` + +- Verify a bundle and display detailed information about it: + +`bundletool validate --bundle={{path/to/bundle.aab}}`