Dela via


UserManager.DisallowConfigTethering Field

Definition

Specifies if a user is disallowed from using and configuring Tethering and portable hotspots via Settings.

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

Field Value

Attributes

Remarks

Specifies if a user is disallowed from using and configuring Tethering and portable hotspots via Settings.

This restriction can only be set by a device owner, a profile owner on the primary user or a profile owner of an organization-owned managed profile on the parent profile. When it is set by a device owner, it applies globally. When it is set by a profile owner on the primary user or by a profile owner of an organization-owned managed profile on the parent profile, it disables the primary user from using Tethering and hotspots and disables all configuring of Tethering and hotspots in Settings.

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

The default value is false.

In Android 9.0 or higher, if tethering is enabled when this restriction is set, tethering will be automatically turned off.

Key for user restrictions.

Type: Boolean

Java documentation for android.os.UserManager.DISALLOW_CONFIG_TETHERING.

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