我应该在运行时询问哪些权限,而在Android中不必询问哪些权限? [英] Which permissions should I ask at runtime and which I don't have to ask runtime in Android?

查看:109
本文介绍了我应该在运行时询问哪些权限,而在Android中不必询问哪些权限?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何确定在运行时应询问哪些权限,并且清单中已声明足够的权限?

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中不必询问哪些权限?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆