使用 aapt 获取 设备名称

使用 aapt 获取 设备名称_第1张图片
Paste_Image.png
安装aapt工具,执行如下命令即可
 
 

aapt.exe dump badging G:\weixin6322android820.apk
package: name='com.tencent.mm' versionCode='820' versionName='6.3.22' 
 
sdkVersion:'15'
targetSdkVersion:'23'
uses-permission:'com.tencent.mm.plugin.permission.READ'
uses-permission:'com.tencent.mm.plugin.permission.WRITE'
uses-permission:'com.tencent.mm.permission.MM_MESSAGE'
uses-permission:'com.huawei.authentication.HW_ACCESS_AUTH_SERVICE'
uses-feature-not-required:'android.hardware.camera'
uses-feature-not-required:'android.hardware.camera.autofocus'
...
uses-feature-not-required:'android.hardware.wifi'
uses-permission:'android.permission.ACCESS_NETWORK_STATE'
...
uses-permission:'android.permission.BROADCAST_STICKY'
uses-permission:'android.permission.SYSTEM_ALERT_WINDOW'

application: label='WeChat' icon='r/h/icon.png'
uses-library-not-required:'com.google.android.maps'
uses-library-not-required:'com.sec.android.app.multiwindow'
launchable activity name='com.tencent.mm.ui.LauncherUI'label='WeChat' icon=''
uses-library-not-required:'com.here.android'
main
other-activities
other-receivers
other-services
supports-screens: 'small' 'normal' 'large' 'xlarge'
supports-any-density: 'true'
locales: '--_--' 'en' 'zh_CN' 'zh_TW'
densities: '120' '160' '213' '240' '320' '480' '640'
native-code: 'armeabi' 'lib/'

  • package: 后面包含了包名,版本号,版本名称
  • sdkVersion:sdk版本
  • targetSdkVersion:为当前sdk版本
  • uses-permission:所使用的权限
  • application:后面包含了应用名称及应用图标路径
  • launchable activity 后面包含了默认启动的activity及名称和图标

你可能感兴趣的:(使用 aapt 获取 设备名称)