What's platformBuildVersionCode and platformBuildVersionName in Extracted Apk's

99封情书 提交于 2019-12-03 09:59:11

问题


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?


回答1:


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.




回答2:


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




回答3:


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



来源:https://stackoverflow.com/questions/39291397/whats-platformbuildversioncode-and-platformbuildversionname-in-extracted-apks

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!