Skip to content

Latest commit

 

History

History
48 lines (34 loc) · 1.2 KB

Convert AAB to APK.md

File metadata and controls

48 lines (34 loc) · 1.2 KB

Conver AAB to APK

  • AAB (Android App Bundle)
  • APK (Android Package)

Installation

MAC (OS X)

brew install bundletool
brew install android-platform-tools

Generate the APK Set

bundletool build-apks --bundle=/path/to/your_app.aab --output=/path/to/output.apks

Installation

bundletool install-apks --apks=

Get the device specification

Remember, to connect your phone via USB or start your emulator:

bundletool get-device-spec --output=device-spec.json

Extract the APK for this device configuration

bundletool extract-apks --apks=/path/to/output.apks --output-dir=/path/to/output-directory --device-spec=/path/to/device-spec.json
"C:\Program Files\Java\jdk-17\bin\keytool.exe" -genkey -v -keystore my-release-key.jks -keyalg RSA -keysize 2048 -validity 10000 -alias my-key-alias
"C:\Program Files\Java\jdk-17\bin\jarsigner.exe" -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.jks base-master.apk my-key-alias
"C:\Program Files\Java\jdk-17\bin\jarsigner.exe"  -verify -verbose -certs  base-master.apk
"C:\Users\admin\AppData\Local\Android\Sdk\build-tools\35.0.0\zipalign.exe" -v 4 base-master.apk base-master-aligned.apk