Android Normal and Dangerous Permissions

  • 内容
  • 评论
  • 相关

只是备注一下。

原文地址:http://developer.android.com/intl/zh-cn/guide/topics/security/permissions.html

System permissions are divided into several protection levels. The two most important protection levels to know about are normal and dangerous permissions:

  • 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. For example, permission to set the time zone is a normal permission. If an app declares that it needs a normal permission, the system automatically grants the permission to the app. For a full listing of the current normal permissions, see Normal permissions.
  • 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. For example, the ability to read the user’s contacts is a dangerous permission. If an app declares that it needs a dangerous permission, the user has to explicitly grant the permission to the app.

If the device is running Android 5.1 (API level 22) or lower, or the app’s targetSdkVersion is 22 or lower, the system asks the user to grant the permissions at install time. Once again, the system just tells the user what permission groups the app needs, not the individual permissions.

Table 1. Dangerous permissions and permission groups.

Permission Group Permissions
CALENDAR
CAMERA
CONTACTS
LOCATION
MICROPHONE
PHONE
SENSORS
SMS
STORAGE

 

评论

1条评论
  1. Gravatar 头像

    manicure

    Hi, I do think this is a great site. I stumbledupon it 😉 I will revisit once again since I book
    marked it. Money and freedom is the greatest way to change, may
    you be rich and continue to help other people.

发表评论