如何在APK中找到用途功能?

时间:2016-10-12 18:58:17

标签: android apk

我知道我可以使用

aapt d permissions foo.apk

找出某个APK需要哪些权限。但是,如何查看使用了哪些<uses-feature>代码?

1 个答案:

答案 0 :(得分:4)

aapt dump badging会将<uses-feature>列为其输出的一部分:

feature-group: label=''
  uses-feature: name='android.hardware.camera'
  uses-feature-not-required: name='android.hardware.camera.autofocus'
  uses-feature-not-required: name='android.hardware.camera.front'
  uses-feature-not-required: name='android.hardware.microphone'
  uses-feature: name='android.hardware.faketouch'
  uses-implied-feature: name='android.hardware.faketouch' reason='default feature for all apps'