What's platformBuildVersionCode and platformBuildVersionName in Extracted Apk's

Mujammil Ahamed picture Mujammil Ahamed · Sep 2, 2016 · Viewed 14.3k times · Source

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?

Answer

IgorGanapolsky picture IgorGanapolsky · Jul 17, 2017

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