Partager via


UserManager.DisallowInstallUnknownSourcesGlobally Field

Definition

This restriction is a device-wide version of #DISALLOW_INSTALL_UNKNOWN_SOURCES.

[Android.Runtime.Register("DISALLOW_INSTALL_UNKNOWN_SOURCES_GLOBALLY", ApiSince=29)]
public const string DisallowInstallUnknownSourcesGlobally;
[<Android.Runtime.Register("DISALLOW_INSTALL_UNKNOWN_SOURCES_GLOBALLY", ApiSince=29)>]
val mutable DisallowInstallUnknownSourcesGlobally : string

Field Value

Attributes

Remarks

This restriction is a device-wide version of #DISALLOW_INSTALL_UNKNOWN_SOURCES.

Specifies if all users on the device are disallowed from enabling the "Unknown Sources" setting, that allows installation of apps from unknown sources.

This restriction can be enabled by the profile owner, in which case all accounts and profiles will be affected.

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

The default value is false.

Key for user restrictions.

Type: Boolean

Java documentation for android.os.UserManager.DISALLOW_INSTALL_UNKNOWN_SOURCES_GLOBALLY.

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