Is it possible given a released APK file to know the Android build tools version used, especially with utilities like zipalign
and apksigner
that has been applied to the APK file?
Asked
Active
Viewed 568 times
1

Nederealm
- 447
- 4
- 15
1 Answers
2
You should run different commands to get some information:
1: <sdk_path>\build-tools\version\aapt dump badging your_app.apk
this command gives you some information about sdkVersion, versionCode compileSdkVersion and etc.
2: <sdk_path>\build-tools\version\zipalign -c -v 4 your_app.apk
this command at the end of outputs verifies that your_app is zipaligned or not.
3: <jdk_path>\bin\jarsinger -verify -verbose -certs your_app.apk
In the output of this command you'll find CN tag. It shows that your apk is signed with your keysign or it is debug version.

com_run
- 103
- 1
- 2
- 10
-
Ok. But can we determine the build tools version used to build the apk file. For example 29.0.2? – Nederealm Mar 18 '21 at 18:06
-
@Nederealm yes, the first command will show you which build tools were used. You could also decompile the APK using apktool and look at the AndroidManifest.xml yourself. – Leo Lamas Apr 12 '21 at 02:27