如何区分调用安全异常的权限和不调用安全异常的权限?
How to distinguish between permissions who invoke security Exception and the other who do not?
我必须将一个旧项目合并到棒棒糖版本,并在整个文件项目中添加运行时检查权限。它太硬!但我注意到并非所有权限都会调用安全异常。
我应该在运行时检查清单中的所有权限吗?否则如何区分调用安全异常的权限和其他不调用安全异常的权限?
如有任何帮助或信息,我们将不胜感激!
提前谢谢你
有两种主要类型的权限,普通权限和危险权限。
Normal permissions cover areas where your app needs to access data or
resources outside the app's sandbox, but where there's very little
risk to the user's privacy or the operation of other apps.
Dangerous permissions cover areas where the app wants data or resources that involve the user's private information, or could
potentially affect the user's stored data or the operation of other
apps.
所有危险权限都需要运行时权限模型。这是所有这些危险权限的列表 https://developer.android.com/guide/topics/permissions/requesting.html#perm-groups。
来自 marshmallow 的权限设置在 运行 时间在这里你得到所有你需要处理的危险权限 运行time
https://developer.android.com/guide/topics/permissions/requesting.html
我必须将一个旧项目合并到棒棒糖版本,并在整个文件项目中添加运行时检查权限。它太硬!但我注意到并非所有权限都会调用安全异常。 我应该在运行时检查清单中的所有权限吗?否则如何区分调用安全异常的权限和其他不调用安全异常的权限?
如有任何帮助或信息,我们将不胜感激! 提前谢谢你
有两种主要类型的权限,普通权限和危险权限。
Normal permissions cover areas where your app needs to access data or resources outside the app's sandbox, but where there's very little risk to the user's privacy or the operation of other apps.
Dangerous permissions cover areas where the app wants data or resources that involve the user's private information, or could potentially affect the user's stored data or the operation of other apps.
所有危险权限都需要运行时权限模型。这是所有这些危险权限的列表 https://developer.android.com/guide/topics/permissions/requesting.html#perm-groups。
来自 marshmallow 的权限设置在 运行 时间在这里你得到所有你需要处理的危险权限 运行time
https://developer.android.com/guide/topics/permissions/requesting.html