Find versionnumber and versioncode of apk generated by android studio -
I know that .apk files are zip files and when we remove them, find some information about the app Can pars the MANIFEST file insertion for This is very useful for someone like me who is going to make an app store, at least I can get the name and version code of the version of the app.
But when we make a signed APK, the version name and version code in the Android-Studio is not defined in the MANIFEST file. We should define them in the build.gradle
file. So now when users upload files in my app-store, how can I find the version code and the name of the version and find out that this is not the case with the older versions?
Just click the AAPT in / from / your / Android-sdk / build-tools / your- Api-version-available /...
Use an example command execution:
aapt dump badging theuserapp.apk
And it will respond with something like this:
Package: name = 'com.blabla.theuserapp' versionCode = '2000' versionname = '2.0.0'
< / Pre>Of course, the tool is an executable that produces raw text output, You can and can parse your favorite scripting from languaje.
Comments
Post a Comment