<permission>

syntax:
<permission android:description="string resource"
            android:icon="drawable resource"
            android:label="string resource"
            android:name="string"
            android:permissionGroup="string"
            android:protectionLevel=["normal" | "dangerous" | 
                                     "signature" | "signatureOrSystem"] />
contained in:
<manifest>
description:
Declares a security permission that can be used to limit access to specific components or features of this or other applications. See the Permissions section in the introduction, and the Security and Permissions document for more information on how permissions work.
이것 또는 다른 애플리케이션의 특정 컴포넌트 또는 기능에 대한 접근을 제한하기 위해 사용될 수 있는 보안 퍼미션을 선언한다. 퍼미션의 동작 방식에 대한 더 많은 정보에 대해서는 앞에 나왔던 퍼미션 섹션과 8장. ”보안과 퍼미션”을 보라.
attributes:
android:description
A user-readable description of the permission, longer and more informative than the label. It may be displayed to explain the permission to the user for example, when the user is asked whether to grant the permission to another application.

This attribute must be set as a reference to a string resource; unlike the label attribute, it cannot be a raw string.

라벨보다 더 길고 더 많은 정보인 퍼미션에 대해 사용자가 읽을 수 있는 설명. 그것은 사용자에게 퍼미션을 설명하기 위해 표시될 수도 있다 ? 예를 들어 다른 애플리케이션에게 퍼미션을 부여할 지 여부를 사용자에게 요청할 때.

이 애트리뷰트는 문자열 리소스에 대한 레퍼런스로 설정되어야 한다; label 애트리뷰트와는 달리 그것은 원시 문자열이 될 수 없다.

android:icon
A reference to a drawable resource for an icon that represents the permission.
퍼미션을 의미하는 아이콘에 대한 드로어블(drawable) 리소스에 대한 레퍼런스.
android:label
A name for the permission, one that can be displayed to users.

As a convenience, the label can be directly set as a raw string while you're developing the application. However, when the application is ready to be published, it should be set as a reference to a string resource, so that it can be localized like other strings in the user interface.

사용자에게 보여질 수 있는 것으로 퍼미션에 대한 이름.

편의상, 여러분이 애플리케이션을 개발하는 동안은 라벨이 원시 문자열로 직접 설정될 수 있다. 하지만 애플리케이션이 배포될 준비가 되어 있을 때, 그것은 사용자 인터페이스의 다른 문자열과 같이 로컬라이즈될 수 있도록 문자열 리소스에 대한 레퍼런스로 설정되어야 한다.

android:name
The name of the permission. This is the name that will be used in code to refer to the permission for example, in a <uses-permission> element and the permission attributes of application components.

The name must be unique, so it should use Java-style scoping for example, "com.example.project.PERMITTED_ACTION".

퍼미션의 이름. 이것은 퍼미션에 대한 참조를 위해 코드에서 사용되는 이름이다 - 예를 들어 <uses-permission> 엘리먼트와 애플리케이션 컴포넌트의 permission 애트리뷰트에서 사용된다.

이름은 고유해야 한다. 그래서 그것은 Java 스타일 범위 지정을 사용해야 한다 - 예를 들어 “com.example.project.PERMITTED_ACTION”이다.

android:permissionGroup
Assigns this permission to a group. The value of this attribute is the name of the group, which must be declared with the <permission-group> element in this or another application. If this attribute is not set, the permission does not belong to a group.
하나의 그룹에 퍼미션을 할당한다. 이 애트리뷰트의 값은, 이것 또는 다른 애플리케이션의 <permission-group> 엘리먼트를 사용해서 선언되어야 하는 그룹의 이름이다. 만약 이 애트리뷰트가 설정되지 않으면, 퍼미션은 그룹에 속하지 않는다.
android:protectionLevel
Characterizes the potential risk implied in the permission and indicates the procedure the system should follow when determining whether or not to grant the permission to an application requesting it. The value can be set to one of the following strings:
Value Meaning
"normal" The default value. A lower-risk permission that gives requesting applications access to isolated application-level features, with minimal risk to other applications, the system, or the user. The system automatically grants this type of permission to a requesting application at installation, without asking for the user's explicit approval (though the user always has the option to review these permissions before installing).
"dangerous" A higher-risk permission that would give a requesting application access to private user data or control over the device that can negatively impact the user. Because this type of permission introduces potential risk, the system may not automatically grant it to the requesting application. For example, any dangerous permissions requested by an application may be displayed to the user and require confirmation before proceeding, or some other approach may be taken to avoid the user automatically allowing the use of such facilities.
"signature" A permission that the system grants only if the requesting application is signed with the same certificate as the application that declared the permission. If the certificates match, the system automatically grants the permission without notifying the user or asking for the user's explicit approval.
"signatureOrSystem" A permission that the system grants only to applications that are in the Android system image or that are signed with the same certificates as those in the system image. Please avoid using this option, as the signature protection level should be sufficient for most needs and works regardless of exactly where applications are installed. The "signatureOrSystem" permission is used for certain special situations where multiple vendors have applications built into a system image and need to share specific features explicitly because they are being built together.
퍼미션에 내재된 잠재적 위험을 나타내며, 퍼미션을 요청하는 애플리케이션에게 퍼미션 부여 여부를 결정할 때 시스템이 따라야 할 절차를 가리킨다. 이 값은 다음 문자열 중의 하나로 설정되어야 한다.
의미하는 바
"normal" 디폴트 값임. 낮은 수위의 위험을 가지는 퍼미션으로, 이것은 다른 애플리케이션, 시스템, 또는 사용자에게 최소한의 위험 요소를 가진 상태에서 퍼미션을 요청하는 애플리케이션이 그것과 분리된 애플리케이션 레벨(application-level)의 기능들에 대해 접근하는 것을 부여한다. 시스템은 설치시점에서 사용자에게 명시적인 승인을 요청하지 않고 그 퍼미션을 요청하는 애플리케이션에게 해당 유형의 퍼미션을 자동으로 부여한다(비록 사용자는 항상 설치하기 전에 이런 퍼미션들을 검토하는 옵션을 가질 수 있다 할지라도).
"dangerous" 높은 수위의 위험을 가지는 퍼미션으로, 이것은 퍼미션을 요청하는 애플리케이션이 사용자의 사적 데이터에 접근하게 하거나 또는 사용자에게 부정적 영향을 미칠 수 있는 디바이스에 대한 제어를 허용할 수 있다. 해당 유형의 퍼미션은 잠재적인 위험을 초래하기 때문에, 시스템은 해당 퍼미션을 요청하는 애플리케이션에게 자동으로 퍼미션을 부여하지 않는다. 예를 들어 애플리케이션에 의해 요청된 임의의 “dangerous” 퍼미션들은 사용자에게 보여질 것이며, 처리에 앞서 사용자의 확인을 요구하거나 또는 해당 기능에 대한 사용을 사용자에게 자동으로 허용하는 것을 피하기 위한 약간의 다른 접근법들이 부여될 수도 있다.
"signature" 이 퍼미션은 퍼미션을 요청하는 애플리케이션이 해당 퍼미션을 정의한 애플리케이션과 같은 인증서를 가지고 사인되었을 때에 한하여 시스템이 퍼미션을 부여한다. 만약 인증서가 일치한다면, 시스템은 사용자에게 알리는 과정없이 또는 사용자에게 명시적인 승인을 요청하지 않고 해당 퍼미션을 자동으로 부여한다.
"signatureOrSystem" 이 퍼미션은, 시스템이 안드로이드 시스템 이미지 안에 있거나, 또는 시스템 이미지 안에 있는 것들과 같은 인증서로 사인된 애플리케이션에 한하여 부여하는 것이다. 정확하게 애플리케이션이 어디에 설치되는 지 관계없이 대부분의 필요와 작업을 위해 “signature” 보호(protection) 레벨로 충분하기 때문에, 이 옵션을 사용하는 것은 피하기 바란다. "signatureOrSystem" 퍼미션은, 여러 업체들이 하나의 시스템 이미지내에 애플리케이션들을 내장시키고, 그 애플리케이션들이 함께 만들어졌기 때문에 명시적으로 특정 기능들을 공유해야 할 필요가 있는 어떤 특별 상황을 위해 사용된다.
introduced in:
API Level 1
see also:
<uses-permission>
<permission-tree>
<permission-group>
↑ Go to top