Dela via


UserManager.EnsureVerifyApps Field

Definition

Specifies if a user is disallowed from disabling application verification.

[Android.Runtime.Register("ENSURE_VERIFY_APPS")]
public const string EnsureVerifyApps;
[<Android.Runtime.Register("ENSURE_VERIFY_APPS")>]
val mutable EnsureVerifyApps : string

Field Value

Attributes

Remarks

Specifies if a user is disallowed from disabling application verification. The default value is false.

In Android 8.0 (android.os.Build.VERSION_CODES#O API level 26) and higher, this is a global user restriction. If a device owner or profile owner sets this restriction, the system enforces app verification across all users on the device. Running in earlier Android versions, this restriction affects only the profile that sets it.

Holders of the permission android.Manifest.permission#MANAGE_DEVICE_POLICY_INSTALL_UNKNOWN_SOURCES can set this restriction using the DevicePolicyManager APIs mentioned below.

Key for user restrictions.

Type: Boolean

Java documentation for android.os.UserManager.ENSURE_VERIFY_APPS.

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

See also