标签:
aapt命令是android SDK 中的一个工具,功能强大,比如在windows平台获取apk包的信息。
使用该工具准备条件,也即获取aapt.exe文件的方式(2选1即可):
为确保运行,可添加到环境变量或者在cmd窗口中中cd到对应路径执行。
在cmd中执行命令:
aapt【主命令】 d【参数1】 badging【参数值】 C:\QuickSearchBox.apk【目标apk文件】>C:\info.txt【信息文件存放位置】
aapt d badging C:\QuickSearchBox.apk>C:\info.txt
在cmd窗口执行后,打开C:\info.txt如下
package: name=’com.android.quicksearchbox’ versionCode=’110′ versionName=’1.1′ original-package:’com.android.quicksearchbox’ sdkVersion:’8′ targetSdkVersion:’10′ uses-permission:’android.permission.GLOBAL_SEARCH’ uses-permission:’android.permission.READ_CONTACTS’ uses-permission:’com.android.browser.permission.READ_HISTORY_BOOKMARKS’ uses-permission:’android.permission.ACCESS_NETWORK_STATE’ uses-permission:’android.permission.INTERNET’ uses-permission:’android.permission.WRITE_SETTINGS’ application: label=’Search’ icon=’res/drawable-mdpi/search_app_icon.png’ launchable activity name=’com.android.quicksearchbox.SearchActivity’label=’Search’ icon=” uses-feature:’android.hardware.touchscreen’ main app-widget other-activities other-receivers supports-screens: ‘small’ ‘normal’ ‘large’ ‘xlarge’ supports-any-density: ‘true’ locales: ‘–_–’ ‘ca’ ‘da’ ‘ja’ ‘nb’ ‘de’ ‘bg’ ‘th’ ‘fi’ ‘vi’ ‘sk’ ‘uk’ ‘el’ ‘nl’ ‘pl’ ‘sl’ ‘tl’ ‘ko’ ‘ro’ ‘ar’ ‘fr’ ‘hr’ ‘sr’ ‘tr’ ‘cs’ ‘es’ ‘it’ ‘lt’ ‘pt’ ‘hu’ ‘ru’ ‘lv’ ‘sv’ ‘en_GB’ ‘zh_CN’ ‘es_US’ ‘pt_PT’ ‘zh_TW’ densities: ’120′ ’160′ ’240′ |
更多aapt命令参看:http://song3304.blog.163.com/blog/static/28262506201293194435582/
关于Eclipse签名APK打包,错误解决方法:http://blog.csdn.net/wtbee/article/details/38230461
标签:
原文地址:http://www.cnblogs.com/androidsj/p/4241455.html