Android权限:如何了解哪些是危险与正常?权限、危险、正常、Android

2023-09-05 09:07:54 作者:很暖的 一看就暖心的

Android的定义一组权限的第三方应用程序可以请求。 权限由敏感性分类;大多数的权限是常规或危险。普通权限自动授予,不提示用户;危险的权限psented用户$ P $时,应用程序安装,用户被要求同意给予他们。

问:对于任何特定的Andr​​oid许可,我心目中,我怎么能告诉它是否是一个正常的许可或危险的权限?是否有危险的权限列表和普通权限的列表?

(我知道,第三方应用程序可以声明自己的权限。我只问有关标准的权限。我知道这可能无法获得100%的-complete名单。我只是在寻找best-努力;事情是聊胜于无)

对于一个相关但不同的问题,也见我在哪里可以得到Android权限(但名单,这是一个不同的问题;它不会在正常VS危险的区别,我不一定需要完整的列表)

解决方案   

普通权限自动授予,不提示用户

AFAIK,该文件是错在这里。

  

危险的权限psented用户$ P $时,应用程序安装,用户被要求同意给予他们

AFAIK,所有权限都有这种行为。

这是什么可能演变成是危险的权限始终显示正常的权限是那些可能是低于倍,如果有足够多的危险的。

  

对于任何特定的Andr​​oid许可,我心目中,我怎么能告诉它是否是一个正常的许可或危险的权限?是否有危险的权限列表和普通权限的列表?

您可以看一下源$ C ​​$ C

Android defines a set of permissions that third-party apps can request. Permissions are categorized by sensitivity; most permissions are either "normal" or "dangerous". Normal permissions are granted automatically, without prompting the user; dangerous permissions are presented to the user when the app is installed and the user is asked to consent to granting them.

安卓获权获取的技术原理

Question: For any particular Android permission I have in mind, how can I tell whether it is a normal permission or a dangerous permission? Is there a list of dangerous permissions and a list of normal permissions?

(I know that third-party apps can declare their own permissions. I'm only asking about standard permissions. I know it may not be possible to get a 100%-complete list. I'm only looking for best-effort; something is better than nothing.)

For a related but different question, see also Where can I get a list of Android permissions (however, that's a different question; it doesn't at the normal vs dangerous distinction, and I don't necessarily need a complete list).

解决方案

Normal permissions are granted automatically, without prompting the user

AFAIK, the documentation is wrong here.

dangerous permissions are presented to the user when the app is installed and the user is asked to consent to granting them

AFAIK, all permissions have this behavior.

What this may have morphed into is that dangerous permissions are always displayed and normal permissions are ones that might be "below the fold" if there are enough dangerous ones.

For any particular Android permission I have in mind, how can I tell whether it is a normal permission or a dangerous permission? Is there a list of dangerous permissions and a list of normal permissions?

You can look at the source code.