android:versioncode——整数值,代表应用程序代码的相对版本,也就是版本更新过多少次。
android:versionname——字符串值,代表应用程序的版本信息,需要显示给用户。
eg:
android:versioncode="2"android:versionname="1.1"
aapt dump badging /home/c_chyuan/桌面/temp/release-app/app-release.apk
package: name='com.qualcomm.qti.datapack' versionCode='' versionName='' platformBuildVersionName='7.1.1'
sdkVersion:'20'
targetSdkVersion:'20'
uses-permission: name='android.permission.REBOOT'
uses-permission: name='android.permission.RECOVERY'
uses-permission: name='android.permission.WAKE_LOCK'
uses-permission: name='android.permission.DISABLE_KEYGUARD'
uses-permission: name='com.qualcomm.permission.USE_QCRIL_MSG_TUNNEL'
uses-permission: name='android.permission.RECEIVE_BOOT_COMPLETED'
uses-permission: name='android.permission.SYSTEM_ALERT_WINDOW'
uses-permission: name='android.permission.ACCESS_CACHE_FILESYSTEM'
uses-permission: name='android.permission.CLEAR_APP_USER_DATA'
application-icon-160:'res/drawable/ic_launcher.png'
application: label='' icon='res/drawable/ic_launcher.png'
launchable-activity: name='com.qualcomm.qti.datapack.DataPackActivity' label='' icon=''
feature-group: label=''
uses-feature: name='android.hardware.faketouch'
uses-implied-feature: name='android.hardware.faketouch' reason='default feature for all apps'
main
supports-screens: 'small' 'normal' 'large' 'xlarge'
supports-any-density: 'true'
locales:
densities: '160'
package: name='com.qualcomm.qti.datapack' versionCode='' versionName='' platformBuildVersionName='7.1.1'
sdkVersion:'20'
targetSdkVersion:'20'
uses-permission: name='android.permission.REBOOT'
uses-permission: name='android.permission.RECOVERY'
uses-permission: name='android.permission.WAKE_LOCK'
uses-permission: name='android.permission.DISABLE_KEYGUARD'
uses-permission: name='com.qualcomm.permission.USE_QCRIL_MSG_TUNNEL'
uses-permission: name='android.permission.RECEIVE_BOOT_COMPLETED'
uses-permission: name='android.permission.SYSTEM_ALERT_WINDOW'
uses-permission: name='android.permission.ACCESS_CACHE_FILESYSTEM'
uses-permission: name='android.permission.CLEAR_APP_USER_DATA'
application-icon-160:'res/drawable/ic_launcher.png'
application: label='' icon='res/drawable/ic_launcher.png'
launchable-activity: name='com.qualcomm.qti.datapack.DataPackActivity' label='' icon=''
feature-group: label=''
uses-feature: name='android.hardware.faketouch'
uses-implied-feature: name='android.hardware.faketouch' reason='default feature for all apps'
main
supports-screens: 'small' 'normal' 'large' 'xlarge'
supports-any-density: 'true'
locales:
densities: '160'