README.md

July 31, 2025 ยท View on GitHub

๐Ÿ“ฆ APK2AAB Converter

Convert your APKs to AAB (Android App Bundles) with ease.
Use Windows, Android, or manual tools โ€” complete guide below.
โš ๏ธ Note: APK2AAB (exe & apk tools) are no longer maintained due to time limitations. Manual method still works.


๐Ÿ“ฅ Windows EXE Tool

๐Ÿ“ Location: APK2AAB/Windows-exe/APK2AAb.exe

๐Ÿ›  Requirements:

โš™๏ธ Usage:

  • Ensure your APK and output AAB paths have no spaces
  • Set same values in AndroidManifest.xml:
    • minSdkVersion
    • targetSdkVersion
    • versionName
    • versionCode
  • Output AAB must be signed before uploading to Play Store

๐Ÿ“ฑ Android APK Tool

๐Ÿ“ Location: APK2AAB/Android-Tool/APK2AAb.apk

๐Ÿš€ Steps:

  1. Install the APK on your Android device
  2. Pick the APK file and choose output path
  3. AAB will be generated at selected location
  4. Sign it with your keystore before Play Store release

๐Ÿ”ง Manual Method (Fully Functional)

๐Ÿ”ฉ Required Tools:

ToolLink
BundletoolDownload
ApktoolDownload
AAPT2Download
Android.jarProvided in Android SDK
Java 8Download

Add Java to system path: Help Guide


๐Ÿ“‚ Step-by-Step Instructions:

1. Unzip APK

java -jar apktool_2.5.0.jar d test.apk -s -o decompile_apk -f

2. Compile Resources

aapt2.exe compile --dir decompile_apk\res -o res.zip

Replace variables with your values:

aapt2.exe link --proto-format -o base.zip -I android.jar --manifest decompile_apk\AndroidManifest.xml \
--min-sdk-version 7 --target-sdk-version 30 --version-code 1 --version-name 1.0 \
-R res.zip --auto-add-overlay

4. Prepare Final AAB Structure

Unzip base.zip, and prepare directory as below:

base/
โ”œโ”€โ”€ assets/
โ”œโ”€โ”€ dex/
โ”œโ”€โ”€ lib/
โ”œโ”€โ”€ manifest/AndroidManifest.xml
โ”œโ”€โ”€ res/
โ”œโ”€โ”€ root/
โ”‚   โ””โ”€โ”€ kotlin/
โ””โ”€โ”€ resources.pb

5. Create base.zip

From inside /base folder:

jar cMf base.zip manifest dex res root lib assets resources.pb

6. Generate AAB

From your tools directory:

java -jar bundletool.jar build-bundle --modules=base.zip --output=base.aab

๐ŸŽ‰ Your .aab file is ready!
๐Ÿ“Œ Don't forget to sign it with your keystore before publishing to Play Store.


๐Ÿ’ก Final Notes

  • GUI tools (EXE/APK) are deprecated but still available
  • Manual method is tested and fully functional
  • Contributions, forks, or updates are welcome!

Made with โค๏ธ by Anmol-in-Verse