UserManager.DisallowCellular2g Field
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specifies if a user is not allowed to use 2g networks.
[Android.Runtime.Register("DISALLOW_CELLULAR_2G", ApiSince=34)]
public const string DisallowCellular2g;
[<Android.Runtime.Register("DISALLOW_CELLULAR_2G", ApiSince=34)>]
val mutable DisallowCellular2g : string
Field Value
- Attributes
Remarks
Specifies if a user is not allowed to use 2g networks.
This is a security feature. 2g has no mutual authentication between a device and cellular base station and downgrading a device's connection to 2g is a common tactic for several types of privacy and security compromising attacks that could allow an adversary to intercept, inject, or modify cellular communications.
This restriction can only be set by a device owner or a profile owner of an organization-owned managed profile on the parent profile. In all cases, the setting applies globally on the device.
Cellular connectivity loss (where a device would have otherwise successfully connected to a 2g network) occurs if the device is in an area where only 2g networks are available. Emergency calls are an exception and are never impacted. The device will still scan for and connect to a 2g network for emergency calls.
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
.
Java documentation for android.os.UserManager.DISALLOW_CELLULAR_2G
.
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.