Share via


PackagePolicy.PackagePolicyAllowlistAndSystem Field

Definition

Caution

This constant will be removed in the future version. Use Android.App.Admin.PackagePolicyMode enum directly instead of this field.

PackagePolicy type indicator for PackagePolicy

[Android.Runtime.Register("PACKAGE_POLICY_ALLOWLIST_AND_SYSTEM", ApiSince=34)]
[System.Obsolete("This constant will be removed in the future version. Use Android.App.Admin.PackagePolicyMode enum directly instead of this field.", true)]
public const Android.App.Admin.PackagePolicyMode PackagePolicyAllowlistAndSystem = 2;
[<Android.Runtime.Register("PACKAGE_POLICY_ALLOWLIST_AND_SYSTEM", ApiSince=34)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.App.Admin.PackagePolicyMode enum directly instead of this field.", true)>]
val mutable PackagePolicyAllowlistAndSystem : Android.App.Admin.PackagePolicyMode

Field Value

Value = 2

Implements

Attributes

Remarks

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.

Java documentation for android.app.admin.PackagePolicy.PACKAGE_POLICY_ALLOWLIST_AND_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.

Applies to