通过sdk工具 aapt.exe 获取apk的信息

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了通过sdk工具 aapt.exe 获取apk的信息相关的知识,希望对你有一定的参考价值。

工具路径:D:\cocos\bundle\adt\sdk\build-tools\android-4.4.2\aapt.exe


在此路径执行 命令行 : aapt d --values badging xxx.apk


输出:

D:\cocos\bundle\adt\sdk\build-tools\android-4.4.2>aapt d --values badging com.im

l.sexicaonima.apk

package: name=‘com.iml.sexicaonima‘ versionCode=‘1‘ versionName=‘1.0‘

sdkVersion:‘8‘

uses-gl-es:‘0x20000‘

uses-permission:‘android.permission.INTERNET‘

uses-permission:‘android.permission.WRITE_EXTERNAL_STORAGE‘

uses-permission:‘android.permission.ACCESS_NETWORK_STATE‘

uses-permission:‘android.permission.INTERNET‘

uses-permission:‘android.permission.READ_PHONE_STATE‘

uses-permission:‘android.permission.ACCESS_WIFI_STATE‘

uses-permission:‘android.permission.INTERNET‘

uses-permission:‘android.permission.ACCESS_NETWORK_STATE‘

uses-permission:‘android.permission.ACCESS_WIFI_STATE‘

uses-permission:‘android.permission.READ_PHONE_STATE‘

uses-permission:‘android.permission.ACCESS_COARSE_LOCATION‘

uses-permission:‘android.permission.ACCESS_COARSE_UPDATES‘

uses-permission:‘android.permission.WRITE_EXTERNAL_STORAGE‘

application-label:‘鑹茬郴鑽夋偿椹?

application-label-en:‘鑹茬郴鑽夋偿椹?

application-icon-160:‘res/drawable/icon.png‘

application: label=‘鑹茬郴鑽夋偿椹? icon=‘res/drawable/icon.png‘

launchable-activity: name=‘com.iml.happynum.Happynum‘  label=‘鑹茬郴鑽夋偿椹? ic

on=‘‘

uses-permission:‘android.permission.READ_EXTERNAL_STORAGE‘

uses-implied-permission:‘android.permission.READ_EXTERNAL_STORAGE‘,‘requested WR

ITE_EXTERNAL_STORAGE‘

uses-feature:‘android.hardware.location‘

uses-implied-feature:‘android.hardware.location‘,‘requested a location access pe

rmission‘

uses-feature:‘android.hardware.location.network‘

uses-implied-feature:‘android.hardware.location.network‘,‘requested android.perm

ission.ACCESS_COARSE_LOCATION permission‘

uses-feature:‘android.hardware.wifi‘

uses-implied-feature:‘android.hardware.wifi‘,‘requested android.permission.ACCES

S_WIFI_STATE, android.permission.CHANGE_WIFI_STATE, or android.permission.CHANGE

_WIFI_MULTICAST_STATE permission‘

uses-feature:‘android.hardware.touchscreen‘

uses-implied-feature:‘android.hardware.touchscreen‘,‘assumed you require a touch

 screen unless explicitly made optional‘

uses-feature:‘android.hardware.screen.portrait‘

uses-implied-feature:‘android.hardware.screen.portrait‘,‘one or more activities

have specified a portrait orientation‘

main

other-activities

other-services

supports-screens: ‘small‘ ‘normal‘ ‘large‘

supports-any-density: ‘true‘

locales: ‘--_--‘ ‘en‘

densities: ‘160‘

native-code: ‘armeabi‘




本文出自 “陪你度过漫长岁月” 博客,请务必保留此出处http://4774721.blog.51cto.com/4764721/1792734

以上是关于通过sdk工具 aapt.exe 获取apk的信息的主要内容,如果未能解决你的问题,请参考以下文章

如何根据包名packageName获取程序启动的主Activity名称

Java环境解析apk文件信息

纯java从apk文件里获取包名版本号icon

Android 逆向使用 Python 编写 APK 批处理分析工具

Android 逆向使用 Python 编写 APK 批处理分析工具

Cannot find `aapt.exe`. Please install the Android SDK Build-tools package