Skip to content

Instantly share code, notes, and snippets.

@ErikDeBruijn
Last active March 12, 2020 07:24
Show Gist options
  • Save ErikDeBruijn/7d900d42b3731ec8e0c1b4722c03d218 to your computer and use it in GitHub Desktop.
Save ErikDeBruijn/7d900d42b3731ec8e0c1b4722c03d218 to your computer and use it in GitHub Desktop.
HOWTO Install an .aab file
echo "This utility will install an app based on an .aab to your Android device"
echo "Plug in your Android device and enable dev mode USB debugging."
ls /usr/local/Cellar/bundletool/*/bin/bundletool 1>/dev/null || brew install bundletool
bt=$(ls /usr/local/Cellar/bundletool/*/bin/bundletool |head -n1)
mkdir /tmp/apks
cd /tmp/apks
$bt build-apks --bundle $1 --output build.apks
echo "Waiting for your device to be connected and authorized..."
adb wait-for-usb-any && \
$bt install-apks --apks build.apks --adb /Users/erik/Library/Android/sdk/platform-tools/adb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment