美文网首页
查看apk的VersionCode、VersionName

查看apk的VersionCode、VersionName

作者: Frankeen | 来源:发表于2019-02-14 07:42 被阅读0次

    Android SDK提供了一个appt工具给我们查看apk的一些信息。

    appt工具位置

    在Android SDK文件夹下面的build-tools下面的任何版本里面,比如我的位于
    D:\android\adt-bundle-windows-x86_64-20131030\sdk\build-tools\28.0.0

    使用

    通过 aapt.exe dump badging D:\apktool\xx.apk命令查看,如

    D:\android\adt-bundle-windows-x86_64-20131030\sdk\build-tools\28.0.0>aapt.exe du
    mp badging D:\apktool\bee.apk
    package: name='cn.jufuns.jumobile.bee' versionCode='1073' versionName='1.0.7.3'
    platformBuildVersionName='6.0-2704002'
    sdkVersion:'15'
    targetSdkVersion:'18'
    uses-permission: name='android.permission.CALL_PHONE'
    uses-permission: name='android.permission.WRITE_SETTINGS'
    uses-permission: name='android.permission.RECEIVE_BOOT_COMPLETED'
    uses-permission: name='android.permission.ACCESS_COARSE_LOCATION'
    uses-permission: name='android.permission.ACCESS_FINE_LOCATION'
    uses-permission: name='android.permission.ACCESS_WIFI_STATE'
    uses-permission: name='android.permission.ACCESS_NETWORK_STATE'
    uses-permission: name='android.permission.CHANGE_WIFI_STATE'
    uses-permission: name='android.permission.READ_PHONE_STATE'
    uses-permission: name='android.permission.WRITE_EXTERNAL_STORAGE'
    uses-permission: name='android.permission.INTERNET'
    uses-permission: name='android.permission.MOUNT_UNMOUNT_FILESYSTEMS'
    uses-permission: name='android.permission.ACCESS_COARSE_LOCATION'
    uses-permission: name='android.permission.ACCESS_FINE_LOCATION'
    uses-permission: name='android.permission.ACCESS_NETWORK_STATE'
    uses-permission: name='android.permission.ACCESS_WIFI_STATE'
    uses-permission: name='android.permission.CHANGE_WIFI_STATE'
    uses-permission: name='android.permission.INTERNET'
    uses-permission: name='android.permission.READ_PHONE_STATE'
    uses-permission: name='android.permission.WRITE_EXTERNAL_STORAGE'
    uses-permission: name='android.permission.ACCESS_LOCATION_EXTRA_COMMANDS'
    uses-permission: name='android.permission.INTERNET'
    uses-permission: name='android.permission.WRITE_EXTERNAL_STORAGE'
    uses-permission: name='android.permission.ACCESS_NETWORK_STATE'
    uses-permission: name='android.permission.ACCESS_WIFI_STATE'
    uses-permission: name='android.permission.READ_PHONE_STATE'
    uses-permission: name='android.permission.ACCESS_COARSE_LOCATION'
    uses-permission: name='android.permission.RECEIVE_USER_PRESENT'
    uses-permission: name='android.permission.INTERNET'
    uses-permission: name='android.permission.WAKE_LOCK'
    uses-permission: name='android.permission.READ_PHONE_STATE'
    uses-permission: name='android.permission.WRITE_EXTERNAL_STORAGE'
    uses-permission: name='android.permission.READ_EXTERNAL_STORAGE'
    uses-permission: name='android.permission.WRITE_SETTINGS'
    uses-permission: name='android.permission.VIBRATE'
    uses-permission: name='android.permission.MOUNT_UNMOUNT_FILESYSTEMS'
    uses-permission: name='android.permission.ACCESS_NETWORK_STATE'
    uses-permission: name='android.permission.ACCESS_WIFI_STATE'
    uses-permission: name='cn.jufuns.jumobile.bee.permission.JPUSH_MESSAGE'
    application-label:'澶栨嫇灞曚笟绯荤粺'
    application-label-af:'澶栨嫇灞曚笟绯荤粺'
    application-label-am:'澶栨嫇灞曚笟绯荤粺'
    application-label-ar:'澶栨嫇灞曚笟绯荤粺'
    application-label-az-AZ:'澶栨嫇灞曚笟绯荤粺'
    application-label-be-BY:'澶栨嫇灞曚笟绯荤粺'
    application-label-bg:'澶栨嫇灞曚笟绯荤粺'
    application-label-bn-BD:'澶栨嫇灞曚笟绯荤粺'
    application-label-bs-BA:'澶栨嫇灞曚笟绯荤粺'
    application-label-ca:'澶栨嫇灞曚笟绯荤粺'
    application-label-cs:'澶栨嫇灞曚笟绯荤粺'
    application-label-da:'澶栨嫇灞曚笟绯荤粺'
    application-label-de:'澶栨嫇灞曚笟绯荤粺'
    application-label-el:'澶栨嫇灞曚笟绯荤粺'
    application-label-en-AU:'澶栨嫇灞曚笟绯荤粺'
    application-label-en-GB:'澶栨嫇灞曚笟绯荤粺'
    application-label-en-IN:'澶栨嫇灞曚笟绯荤粺'
    application-label-es:'澶栨嫇灞曚笟绯荤粺'
    application-label-es-US:'澶栨嫇灞曚笟绯荤粺'
    application-label-et-EE:'澶栨嫇灞曚笟绯荤粺'
    application-label-eu-ES:'澶栨嫇灞曚笟绯荤粺'
    application-label-fa:'澶栨嫇灞曚笟绯荤粺'
    application-label-fi:'澶栨嫇灞曚笟绯荤粺'
    application-label-fr:'澶栨嫇灞曚笟绯荤粺'
    application-label-fr-CA:'澶栨嫇灞曚笟绯荤粺'
    application-label-gl-ES:'澶栨嫇灞曚笟绯荤粺'
    application-label-gu-IN:'澶栨嫇灞曚笟绯荤粺'
    application-label-hi:'澶栨嫇灞曚笟绯荤粺'
    application-label-hr:'澶栨嫇灞曚笟绯荤粺'
    application-label-hu:'澶栨嫇灞曚笟绯荤粺'
    application-label-hy-AM:'澶栨嫇灞曚笟绯荤粺'
    application-label-in:'澶栨嫇灞曚笟绯荤粺'
    application-label-is-IS:'澶栨嫇灞曚笟绯荤粺'
    application-label-it:'澶栨嫇灞曚笟绯荤粺'
    application-label-iw:'澶栨嫇灞曚笟绯荤粺'
    application-label-ja:'澶栨嫇灞曚笟绯荤粺'
    application-label-ka-GE:'澶栨嫇灞曚笟绯荤粺'
    application-label-kk-KZ:'澶栨嫇灞曚笟绯荤粺'
    application-label-km-KH:'澶栨嫇灞曚笟绯荤粺'
    application-label-kn-IN:'澶栨嫇灞曚笟绯荤粺'
    application-label-ko:'澶栨嫇灞曚笟绯荤粺'
    application-label-ky-KG:'澶栨嫇灞曚笟绯荤粺'
    application-label-lo-LA:'澶栨嫇灞曚笟绯荤粺'
    application-label-lt:'澶栨嫇灞曚笟绯荤粺'
    application-label-lv:'澶栨嫇灞曚笟绯荤粺'
    application-label-mk-MK:'澶栨嫇灞曚笟绯荤粺'
    application-label-ml-IN:'澶栨嫇灞曚笟绯荤粺'
    application-label-mn-MN:'澶栨嫇灞曚笟绯荤粺'
    application-label-mr-IN:'澶栨嫇灞曚笟绯荤粺'
    application-label-ms-MY:'澶栨嫇灞曚笟绯荤粺'
    application-label-my-MM:'澶栨嫇灞曚笟绯荤粺'
    application-label-nb:'澶栨嫇灞曚笟绯荤粺'
    application-label-ne-NP:'澶栨嫇灞曚笟绯荤粺'
    application-label-nl:'澶栨嫇灞曚笟绯荤粺'
    application-label-pa-IN:'澶栨嫇灞曚笟绯荤粺'
    application-label-pl:'澶栨嫇灞曚笟绯荤粺'
    application-label-pt:'澶栨嫇灞曚笟绯荤粺'
    application-label-pt-BR:'澶栨嫇灞曚笟绯荤粺'
    application-label-pt-PT:'澶栨嫇灞曚笟绯荤粺'
    application-label-ro:'澶栨嫇灞曚笟绯荤粺'
    application-label-ru:'澶栨嫇灞曚笟绯荤粺'
    application-label-si-LK:'澶栨嫇灞曚笟绯荤粺'
    application-label-sk:'澶栨嫇灞曚笟绯荤粺'
    application-label-sl:'澶栨嫇灞曚笟绯荤粺'
    application-label-sq-AL:'澶栨嫇灞曚笟绯荤粺'
    application-label-sr:'澶栨嫇灞曚笟绯荤粺'
    application-label-sr-Latn:'澶栨嫇灞曚笟绯荤粺'
    application-label-sv:'澶栨嫇灞曚笟绯荤粺'
    application-label-sw:'澶栨嫇灞曚笟绯荤粺'
    application-label-ta-IN:'澶栨嫇灞曚笟绯荤粺'
    application-label-te-IN:'澶栨嫇灞曚笟绯荤粺'
    application-label-th:'澶栨嫇灞曚笟绯荤粺'
    application-label-tl:'澶栨嫇灞曚笟绯荤粺'
    application-label-tr:'澶栨嫇灞曚笟绯荤粺'
    application-label-uk:'澶栨嫇灞曚笟绯荤粺'
    application-label-ur-PK:'澶栨嫇灞曚笟绯荤粺'
    application-label-uz-UZ:'澶栨嫇灞曚笟绯荤粺'
    application-label-vi:'澶栨嫇灞曚笟绯荤粺'
    application-label-zh-CN:'澶栨嫇灞曚笟绯荤粺'
    application-label-zh-HK:'澶栨嫇灞曚笟绯荤粺'
    application-label-zh-TW:'澶栨嫇灞曚笟绯荤粺'
    application-label-zu:'澶栨嫇灞曚笟绯荤粺'
    application-icon-160:'res/drawable-xhdpi-v4/icon.png'
    application-icon-240:'res/drawable-xhdpi-v4/icon.png'
    application-icon-320:'res/drawable-xhdpi-v4/icon.png'
    application-icon-480:'res/drawable-xhdpi-v4/icon.png'
    application-icon-640:'res/drawable-xhdpi-v4/icon.png'
    application: label='澶栨嫇灞曚笟绯荤粺' icon='res/drawable-xhdpi-v4/icon.png'
    launchable-activity: name='cn.jufuns.jumobile.bee.activity.ActivitySplash'  labe
    l='澶栨嫇灞曚笟绯荤粺' icon=''
    feature-group: label=''
      uses-feature: name='android.hardware.faketouch'
      uses-implied-feature: name='android.hardware.faketouch' reason='default featur
    e for all apps'
      uses-feature: name='android.hardware.location'
      uses-implied-feature: name='android.hardware.location' reason='requested andro
    id.permission.ACCESS_COARSE_LOCATION permission, requested android.permission.AC
    CESS_FINE_LOCATION permission, and requested android.permission.ACCESS_LOCATION_
    EXTRA_COMMANDS permission'
      uses-feature: name='android.hardware.location.gps'
      uses-implied-feature: name='android.hardware.location.gps' reason='requested a
    ndroid.permission.ACCESS_FINE_LOCATION permission, and targetSdkVersion < 21'
      uses-feature: name='android.hardware.location.network'
      uses-implied-feature: name='android.hardware.location.network' reason='request
    ed android.permission.ACCESS_COARSE_LOCATION permission, and targetSdkVersion <
    21'
      uses-feature: name='android.hardware.screen.portrait'
      uses-implied-feature: name='android.hardware.screen.portrait' reason='one or m
    ore activities have specified a portrait orientation'
      uses-feature: name='android.hardware.telephony'
      uses-implied-feature: name='android.hardware.telephony' reason='requested a te
    lephony permission'
      uses-feature: name='android.hardware.wifi'
      uses-implied-feature: name='android.hardware.wifi' reason='requested android.p
    ermission.ACCESS_WIFI_STATE permission, and requested android.permission.CHANGE_
    WIFI_STATE permission'
    provides-component:'app-widget'
    main
    other-activities
    other-receivers
    other-services
    supports-screens: 'small' 'normal' 'large' 'xlarge'
    supports-any-density: 'true'
    locales: '--_--' 'af' 'am' 'ar' 'az-AZ' 'be-BY' 'bg' 'bn-BD' 'bs-BA' 'ca' 'cs' '
    da' 'de' 'el' 'en-AU' 'en-GB' 'en-IN' 'es' 'es-US' 'et-EE' 'eu-ES' 'fa' 'fi' 'fr
    ' 'fr-CA' 'gl-ES' 'gu-IN' 'hi' 'hr' 'hu' 'hy-AM' 'in' 'is-IS' 'it' 'iw' 'ja' 'ka
    -GE' 'kk-KZ' 'km-KH' 'kn-IN' 'ko' 'ky-KG' 'lo-LA' 'lt' 'lv' 'mk-MK' 'ml-IN' 'mn-
    MN' 'mr-IN' 'ms-MY' 'my-MM' 'nb' 'ne-NP' 'nl' 'pa-IN' 'pl' 'pt' 'pt-BR' 'pt-PT'
    'ro' 'ru' 'si-LK' 'sk' 'sl' 'sq-AL' 'sr' 'sr-Latn' 'sv' 'sw' 'ta-IN' 'te-IN' 'th
    ' 'tl' 'tr' 'uk' 'ur-PK' 'uz-UZ' 'vi' 'zh-CN' 'zh-HK' 'zh-TW' 'zu'
    densities: '160' '240' '320' '480' '640'
    native-code: 'arm64-v8a' 'armeabi' 'armeabi-v7a' 'mips' 'mips64' 'x86' 'x86_64'
    

    在顶部存在可以看到package: name='cn.jufuns.jumobile.bee' versionCode='1073' versionName='1.0.7.3'
    platformBuildVersionName='6.0-2704002'这一串。
    其中 versionCode='1073' versionName='1.0.7.3'就是我们要查看的版本信息。

    相关文章

      网友评论

          本文标题:查看apk的VersionCode、VersionName

          本文链接:https://www.haomeiwen.com/subject/phzreqtx.html