通过ADB Android应用程序的清单权限 [英] Listing permissions of Android application via adb
问题描述
利用亚行,我怎么能找出其权限的Android应用程序,需要?
Using adb, how can I find out the which permissions an Android application requires?
由于我想要显示的不同设备上的多个应用程序的权限,查看他们在谷歌播放
或设置
> 应用程序管理器
需要太多的体力劳动。
Because I want to display the permissions of multiple applications on different devices, viewing them in Google Play
or Settings
> Applications manager
requires too much manual work.
推荐答案
我只是想杰森和了Juuso的回答结合在了一起,并注意到这是前列出的权限的授予的,而后者则列出权限这是请求的(包括被理所当然地认为的)。
I just wanted to combine Jason's and Juuso's answers together and notice that the former lists permissions that were granted, while the latter lists permissions that were requested (including ones that were granted).
要看到的唯一被授予的权限的(但省略那些被请求但未授予)使用
To see only permissions that were granted (but omitting ones that were requested but not granted) use
adb shell dumpsys package packagename
和检查 grantedPermissions
部分在输出的底部。
and check grantedPermissions
section at the bottom of the output.
要列出的所有权限的(请求但未授予+请求和授予的):
To list all permissions (requested but not granted + requested and granted):
-
注意包的APK。您可以运行同一命令
Notice the APK of a package. You can run the same command
adb shell dumpsys package packagename
和得到其输出 codePATH
元素中的APK路径。
and get the APK path from codePath
element of its output.
包的列表中的所有权限
aapt d permissions /path/to/com.your.package.apk
这篇关于通过ADB Android应用程序的清单权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!