使用android中的aapt查看安卓apk包信息

使用android中的aapt查看安卓apk包信息

aapt 工具位置 (在你电脑android sdk的安装目录中)


使用android中的aapt查看安卓apk包信息
 

执行命令:

./aapt dump badging /Users/xxx/Documents/demo.apk

命令执行后显示这个demo.apk的包信息:

package: name='com.example.robotiumdemo' versionCode='1' versionName='1.0'
sdkVersion:'8'
targetSdkVersion:'18'
application-label:'RobotiumDemo'
application-icon-160:'res/drawable-mdpi/ic_launcher.png'
application-icon-240:'res/drawable-hdpi/ic_launcher.png'
application-icon-320:'res/drawable-xhdpi/ic_launcher.png'
application-icon-480:'res/drawable-xxhdpi/ic_launcher.png'
application: label='RobotiumDemo' icon='res/drawable-mdpi/ic_launcher.png'
application-debuggable
launchable-activity: name='com.example.robotiumdemo.MainActivity'  label='RobotiumDemo' icon=''
uses-feature:'android.hardware.touchscreen'
uses-implied-feature:'android.hardware.touchscreen','assumed you require a touch screen unless explicitly made optional'
main
supports-screens: 'small' 'normal' 'large' 'xlarge'
supports-any-density: 'true'
locales: '--_--'
densities: '160' '240' '320' '480'

当然,aapt还有很多别的查看apk的方式,有兴趣的朋友可以自己研究。