aapt:Android Asset Packaging Tool , 在SDK的tools/目錄下. 該工具能夠查看, 建立, 更新ZIP格式的文檔附件(zip, jar, apk). 也可將資源文件編譯成二進制文件. 同步軟件中獲得apk信息就是用的這麼一個android已經提供好的工具。 [html] view plaincopy aapt d[ump] [--values] WHAT file.{apk} [asset [asset ...]]
badging Print the label and icon for the app declared in APK.
permissions Print the permissions from the APK.
resources Print the resource table from the APK.
configurations Print the configurations in the APK.
xmltree Print the compiled xmls in the given assets.
xmlstrings Print the strings of the given compiled xml assets.html
使用aapt dump badging *.apk能夠查看這個apk文件的程序名、包名、所用的sdk,程序版本以及權限信息等等。以下: aapt dump bagging EngineeringTest.apk 獲得以下詳細信息 [html] view plaincopy package: name='com.archermind.engineeringtest' versionCode='1' versionName='1.0'
sdkVersion:'8'
application-label:'EngineeringTest'
application-icon-120:'res/drawable-ldpi/ic_launcher.png'
application-icon-160:'res/drawable-mdpi/ic_launcher.png'
application-icon-240:'res/drawable-hdpi/ic_launcher.png'
application: label='EngineeringTest' icon='res/drawable-mdpi/ic_launcher.png'
launchable-activity: name='com.archermind.engineeringtest.EngineeringTestActivity' label='EngineeringTest' icon=''
uses-permission:'android.permission.INTERNET'
uses-feature:'android.hardware.touchscreen'
main
other-activities
other-receivers
other-services
supports-screens: 'small' 'normal' 'large'
supports-any-density: 'true'
locales: '--_--'
densities: '120' '160' '240'android