from http://developer.android.com/guide/topics/manifest/uses-feature-element.html
You can use the aapt tool, included in the Android SDK, to determine how Android Market will filter your application, based on its declared features and permissions. To do so, run aapt with the dump badging command. This causes aapt to parse your application's manifest and apply the same rules as used by Android Market to determine the features that your application requires.
To use the tool, follow these steps:
- First, build and export your application as an unsigned
.apk. If you are developing in Eclipse with ADT, right-click the project and select Android Tools > Export Unsigned Application Package. Select a destination filename and path and click OK. - Next, locate the
aapttool, if it is not already in your PATH. If you are using SDK Tools r8 or higher, you can findaaptin the<SDK>/platform-tools/directory.Note: You must use the version of
aaptthat is provided for the latest Platform-Tools component available. If you do not have the latest Platform-Tools component, download it using the Android SDK and AVD Manager. - Run
aaptusing this syntax:
Here's an example of the command output

本文介绍了如何使用aapt工具确定Android应用的过滤规则,基于其声明的特征和权限。通过运行aapt的dump badging命令,可以解析应用的manifest文件,并应用与Android Market相同的标准来确定应用所需的特性。详细步骤包括构建并导出未签名的APK文件,定位aapt工具,以及执行命令来获取关键信息。
1614

被折叠的 条评论
为什么被折叠?



