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.

使用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'

更多相关文章

  1. Android 之 使用File类在SD卡中读取数据文件
  2. 【摘录】 Android中如何修改系统时间(应用程序获得系统权限)
  3. Android之如何安装(卸载)apk文件到模拟器
  4. Android开发案例,工具,教程合集
  5. 第二章 Android开发工具及技巧
  6. Android 日志工具(log)的使用方法

随机推荐

  1. Android(安卓)WebView 支持H5图片上传
  2. Http的15种请求
  3. Android(安卓)开机自启动应用
  4. Android视音频录制实现步骤(Android学习随
  5. android WindowManager可拖动悬浮按钮
  6. [Android] Handler源码解析 (Java层)
  7. Android开发之fedora13下编译Android源码
  8. Android(安卓)mac 真机调试
  9. Android(安卓)设备监听网络状态变化
  10. Android(安卓)查询字段