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:
- .NET 6.0 Runtime
- Java 8 (Add to system environment variables)
โ๏ธ Usage:
- Ensure your APK and output AAB paths have no spaces
- Set same values in
AndroidManifest.xml:minSdkVersiontargetSdkVersionversionNameversionCode
- Output AAB must be signed before uploading to Play Store
๐ฑ Android APK Tool
๐ Location: APK2AAB/Android-Tool/APK2AAb.apk
๐ Steps:
- Install the APK on your Android device
- Pick the APK file and choose output path
- AAB will be generated at selected location
- Sign it with your keystore before Play Store release
๐ง Manual Method (Fully Functional)
๐ฉ Required Tools:
| Tool | Link |
|---|---|
| Bundletool | Download |
| Apktool | Download |
| AAPT2 | Download |
| Android.jar | Provided in Android SDK |
| Java 8 | Download |
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
3. Link Resources
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