<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"] />
<manifest>android:description
This attribute must be set as a reference to a string resource;
unlike the label attribute, it cannot be a raw string.
이 애트리뷰트는 문자열 리소스에 대한 레퍼런스로 설정되어야 한다; label 애트리뷰트와는 달리 그것은 원시 문자열이 될 수 없다.
android:iconandroid:labelAs 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<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".
이름은 고유해야 한다. 그래서 그것은 Java 스타일 범위 지정을 사용해야 한다 - 예를 들어 “com.example.project.PERMITTED_ACTION”이다.
android:permissionGroup<permission-group> element in this
or another application. If this attribute is not set, the permission
does not belong to a group.android:protectionLevel| 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" 퍼미션은, 여러 업체들이 하나의 시스템 이미지내에 애플리케이션들을 내장시키고, 그 애플리케이션들이 함께 만들어졌기 때문에 명시적으로 특정 기능들을 공유해야 할 필요가 있는 어떤 특별 상황을 위해 사용된다. |
<uses-permission>
<permission-tree>
<permission-group>