UserManager.DisallowInstallUnknownSources Field

Definition

Specifies if a user is disallowed from enabling the "Unknown Sources" setting, that allows installation of apps from unknown sources.

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

Field Value

Attributes

Remarks

Specifies if a user is disallowed from enabling the "Unknown Sources" setting, that allows installation of apps from unknown sources. Unknown sources exclude adb and special apps such as trusted app stores. The default value is false.

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.DISALLOW_INSTALL_UNKNOWN_SOURCES.

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