Originally I use build variants to build two apks: myapp-armv7.apk and myapp-arm64.apk, for the 32bit and 64bit architectures, respectively. For example, the 32bit apk only contains native .so files for 32bit, while the 64bit apk only contains those for 64bit.
However, now I not only want these two apk files, but also want a myapp.aab bundle. The question is, how to build the 32bit and 64bit apk from this aab bundle?
I have tried Generate Apk file from aab file (android app bundle) . However, if I use --mode=universal, though I get an installable apk file, it contains both 32bit and 64bit .so files inside it, so it is really huge and we should not use it. If I do not use that flag, I get a bunch of apk files (i.e. an .apks file), but of course a user should only download one .apk file and click "install", so that is also not feasible.