DISCLAIMER, in Google Play Console you can download Universal APK directly. No need to use this extracting from AAB to APK method
Please make sure to run this script with your .aab
file in the same folder.
The script has the following placeholders, which should be replaced for your specific environment/application:
$PASSWORD
,$KEYSTORE_FILE
,$ALIAS
are the details used to sign the .aab in Android Studio$PATH_TO_BUNDLE_TOOL
is the path of the bundletool e.g.~/Downloads/bundletool-all-0.8.0.jar
- Download bundletool using homebrew:
brew install bundletool
, then check for the bundletool jar brew info bundletool
, see e.g:cd /usr/local/Cellar/bundletool/0.11.0
ls -al libexec/bundletool-all-0.11.0.jar
*please make sure to check the correct path
Fixed + Updated version from this the original version doesn't supported on zsh terminal (i guess) due to using {ENV_VARIABLE_NAME}
enclosing tag, without dollar-sign ${ENV_VARIABLE_NAME}
This script able to run to device (optional 2nd argument) or just want to extract from AAB to APK/APKs
Run this curl -s -L https://git.io/JedUF | bash -s [e.g: release-name]