Similar to Get Android .apk file VersionName or VersionCode WITHOUT installing apk, I want to get the versionCode and/or versionName with just an .aab file.
I've tried simply using the classic answer for .apk files, but substituting my .aab file instead, and it didn't work:
$ $ANDROID_HOME/sdk/build-tools/29.0.2/aapt dump badging my_aab.aab ERROR: dump failed because no AndroidManifest.xml found I also tried attempting to dump the xmltree directly:
$ $ANDROID_HOME/sdk/build-tools/29.0.2/aapt dump xmltree my_aab.aab base/manifest/AndroidManifest.xml W/ResourceType(39872): Bad XML block: header size 664 or total size 118110474 is larger than data size 35953 ERROR: Resource base/manifest/AndroidManifest.xml is corrupt I'd like to do this with the plain Android SDK, and not install any external tools.