gpt4 book ai didi

android - 如何区分调用安全异常的权限和不调用安全异常的权限?

转载 作者:行者123 更新时间:2023-11-29 16:58:15 25 4
gpt4 key购买 nike

我必须将一个旧项目合并到 Lollipop 版本,并在运行时在整个文件项目中添加检查权限。它太硬!但我注意到并非所有权限都会调用安全异常。我应该在运行时检查 list 中的所有权限吗?否则如何区分调用安全异常的权限和其他不调用安全异常的权限?

如有任何帮助或信息,我们将不胜感激!提前谢谢你

最佳答案

有两种主要类型的权限,普通权限和危险权限。

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 .

关于android - 如何区分调用安全异常的权限和不调用安全异常的权限?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43845084/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com