Merge "Add Security and Connectivity Implications to DISALLOW_CELLULAR_2G Docs" into udc-qpr-dev am: 499bf293ea

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23766506

Change-Id: I9a360c3b805e68dedddd50398c493cfc2c04fa0f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Gil Cukierman
2023-06-21 18:27:59 +00:00
committed by Automerger Merge Worker

View File

@@ -1764,10 +1764,19 @@ public class UserManager {
/**
* Specifies if a user is not allowed to use 2g networks.
*
* <p> 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.
*
* <p>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 and will prevent the device from
* scanning for or connecting to 2g networks, except in the case of an emergency.
* In all cases, the setting applies globally on the device.
*
* <p> 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.
*
* <p>Holders of the permission
* {@link android.Manifest.permission#MANAGE_DEVICE_POLICY_MOBILE_NETWORK}