问题描述
我如何确定在运行时应询问哪些权限,并且清单中已声明足够的权限?
How does I determine which permissions should I ask at runtime and which one is 'enough' to have declared in the manifest?
推荐答案
来自文档:
-
普通权限不会直接危害用户的隐私.如果您的应用在清单中列出了正常权限,则系统会自动授予该权限.
Normal permissions do not directly risk the user's privacy. If your app lists a normal permission in its manifest, the system grants the permission automatically.
危险权限可以使该应用访问用户的机密数据.如果您的应用在清单中列出了正常权限,则系统会自动授予该权限.如果您列出了危险许可,则用户必须明确批准您的应用.
Dangerous permissions can give the app access to the user's confidential data. If your app lists a normal permission in its manifest, the system grants the permission automatically. If you list a dangerous permission, the user has to explicitly give approval to your app.
请参阅正常权限和危险权限.
这篇关于我应该在运行时询问哪些权限,而在Android中不必询问哪些权限?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!