Protection Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 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 |
| Signature | 2 | System-level value for ProtectionLevel, corresponding
to the |
| SignatureOrSystem | 3 | This constant was deprecated in API level 23. Use PROTECTION_SIGNATURE|PROTECTION_FLAG_PRIVILEGED instead. Android reference for 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 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 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 |
| FlagDevelopment | 32 | Additional flag for ProtectionLevel, corresponding
to the |
| FlagAppop | 64 | Additional flag for protectionLevel, corresponding to the appop value of R.attr.protectionLevel. Android reference for 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 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 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 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 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 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 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 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.