'Generate Android App Bundle aab from apk file
I'm using Xamarin to develop android app. As I know, it hasn't supported android app bundle. So I would like to know if there is any way to generate an Android App Bundle - aab file from the apk via terminal? Or any other good way to process ?
Solution 1:[1]
No, the APK itself doesn't have enough information for the bundletool to create a bundle (AAB). It can work the other way round - to create an APK from a bundle.
If you want to create a bundle by hand, you will need to do a lot of stuff by hand, including resource handling, code compilation etc. You can find more information about how to do that in the official documentation.
Solution 2:[2]
its possible 100% to make aab from apk i have compiled 3 4 apps
1.Decompile apk and copy res[folder] and Androidmanifest.xml into folder
2.Compile each resource into .flat file with aapt2 compile [path] -o outputfolder/
3.Use aapt2 link command to generate apk thats contains resouces.pb and manifest in protobuf format
Create base.zip put search for how to put files in it on Google
Use bundletool Build-bundle command to Create aab
or upload apk to apktoaabconverter.com you will receive aab of your apk within few hours
Solution 3:[3]
answer given by Deeep Dip is right, but he might not be able to explain it properly (step-by-step). Also the tool "apktoaabconverter.com" he mentioned below was paid (at the time I'm answering the question).
I followed his manual steps and came out with a simplest solution which is using the telegram platform.
Actually I found some bots there simply by searching for "APK to AAB" in the Global search bar. This bots on their side are using the same procedure @deeep-div was trying to explain (Found out via logs attached with .aab).
Direct links to the telegram bots:
- http://t.me/apktoaabbot (Used to be busy a lot)
- http://t.me/apktoaab_bot (This one I used to convert my .apk to .aab)
NOTE: You may need wait around 30 minutes after sending your .apk file. Time could vary as per the load on bot servers.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Izabela Orlowska |
| Solution 2 | Deeep Dip |
| Solution 3 |
