PackagePolicyMode 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.
public enum PackagePolicyMode
type PackagePolicyMode =
- Inheritance
-
PackagePolicyMode
Fields
| Name | Value | Description |
|---|---|---|
| Blocklist | 1 | PackagePolicy type indicator for PackagePolicy This constant indicates that all packages are allowed except for the packages returned by PackagePolicy.getPackageNames(), which acts as a denylist. 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. |
| AllowlistAndSystem | 2 | PackagePolicy type indicator for PackagePolicy This constant indicates system packages are allowed in addition to the packages returned by PackagePolicy.getPackageNames(), which acts as an allowlist. Functions that accept PackagePolicy will further clarify how this policy is interpreted. 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. |
| Allowlist | 3 | PackagePolicy type indicator for PackagePolicy This constant indicates that all packages are denied except for the packages returned by PackagePolicy.getPackageNames(), which acts as an allowlist. 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. |