Lingua

Protection Enum

Definition

Enumerates values returned by several types.

This enumeration supports a bitwise combination of its member values.

[System.Flags]
public enum Protection
[<System.Flags>]
type Protection = 
Inheritance
Protection
Attributes

Fields

Name Value Description
Normal 0

A normal application value for protectionLevel, corresponding to the normal value of R.attr.protectionLevel.

Android reference for android.content.pm.PermissionInfo.PROTECTION_NORMAL.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Dangerous 1

Dangerous value for ProtectionLevel, corresponding to the dangerous value of ProtectionLevel.

Signature 2

System-level value for ProtectionLevel, corresponding to the signature value of ProtectionLevel.

SignatureOrSystem 3

This constant was deprecated in API level 23. Use PROTECTION_SIGNATURE|PROTECTION_FLAG_PRIVILEGED instead.

Android reference for android.content.pm.PermissionInfo.PROTECTION_SIGNATURE_OR_SYSTEM.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Internal 4

System-level value for protectionLevel, corresponding to the internal value of R.attr.protectionLevel.

Android reference for android.content.pm.PermissionInfo.PROTECTION_INTERNAL.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

MaskBase 15

Mask for ProtectionLevel: the basic protection type.

FlagPrivileged 16

Additional flag for protectionLevel, corresponding to the privileged value of R.attr.protectionLevel.

Android reference for android.content.pm.PermissionInfo.PROTECTION_FLAG_PRIVILEGED.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

FlagSystem 16

Additional flag for ProtectionLevel, corresponding to the system value of ProtectionLevel.

FlagDevelopment 32

Additional flag for ProtectionLevel, corresponding to the development value of ProtectionLevel.

FlagAppop 64

Additional flag for protectionLevel, corresponding to the appop value of R.attr.protectionLevel.

Android reference for android.content.pm.PermissionInfo.PROTECTION_FLAG_APPOP.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

FlagPre23 128

Additional flag for protectionLevel, corresponding to the pre23 value of R.attr.protectionLevel.

Android reference for android.content.pm.PermissionInfo.PROTECTION_FLAG_PRE23.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

FlagInstaller 256

Additional flag for protectionLevel, corresponding to the installer value of R.attr.protectionLevel.

Android reference for android.content.pm.PermissionInfo.PROTECTION_FLAG_INSTALLER.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

FlagVerifier 512

Additional flag for protectionLevel, corresponding to the verifier value of R.attr.protectionLevel.

Android reference for android.content.pm.PermissionInfo.PROTECTION_FLAG_VERIFIER.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

FlagPreinstalled 1024

Additional flag for protectionLevel, corresponding to the preinstalled value of R.attr.protectionLevel.

Android reference for android.content.pm.PermissionInfo.PROTECTION_FLAG_PREINSTALLED.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

FlagSetup 2048

Additional flag for protectionLevel, corresponding to the setup value of R.attr.protectionLevel.

Android reference for android.content.pm.PermissionInfo.PROTECTION_FLAG_SETUP.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

FlagInstant 4096

Additional flag for protectionLevel, corresponding to the instant value of R.attr.protectionLevel.

Android reference for android.content.pm.PermissionInfo.PROTECTION_FLAG_INSTANT.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

FlagRuntimeOnly 8192

Additional flag for protectionLevel, corresponding to the runtime value of R.attr.protectionLevel.

Android reference for android.content.pm.PermissionInfo.PROTECTION_FLAG_RUNTIME_ONLY.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

MaskFlags 65520

Mask for ProtectionLevel: additional flag bits.

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to