10

Extracted an Apk using APKTool getting the manifest.xml like this,

<manifest xmlns:"http://schemas.android.com/apk/res/android" 
android:versionCode="31" 
android:versionName="3.1" 
package="xxx.xxx.xxx" 
platformBuildVersionCode="22" 
platformBuildVersionName="5.1.1-1819727">
<uses-sdk android:minSdkVersion="9" android:targetSdkVersion="22" />

Need to know what's platformBuildVersionCode and platformBuildVersionName

Already Checked this,What is "platformBuildVersionCode" in AndroidManifest.xml?

Community
  • 1
  • 1
Mujammil Ahamed
  • 1,454
  • 4
  • 24
  • 50

3 Answers3

12

platformBuildVersionCode is added by a compiler, and means a version of targetSDK
platformBuildVersionName is a readable version name of targetSDK version.

Vladyslav Matviienko
  • 10,610
  • 4
  • 33
  • 52
11

After a long analysis, i got solution,platformBuildVersionCode is targetSDKVersion and platformBuildVersionName is version name of targetSDK(like Android 6.0) which are mentioned in build.gradle.

Mujammil Ahamed
  • 1,454
  • 4
  • 24
  • 50
11

platformBuildVersionCode overrides and takes precedence over android:targetSdkVersion in the merged AndroidManifest. This is evidenced in the following android git commit: https://android.googlesource.com/platform/frameworks/base/+/ad2d07d

IgorGanapolsky
  • 26,189
  • 23
  • 116
  • 147