Telephony.Carriers
  public
  static
  final
  
  class
  Telephony.Carriers
  
    extends Object
  
  
  
  
  
      implements
      
        BaseColumns
      
  
  
| java.lang.Object | |
| ↳ | android.provider.Telephony.Carriers | 
Carriers class contains information about APNs, including MMSC information.
Summary
| Constants | |
|---|---|
| String | ALWAYS_ONSets whether the PDU session brought up by this APN should always be on. | 
| String | APNAPN name. | 
| String | AUTH_TYPEAuthentication type. | 
| String | BEARER
      This constant was deprecated
      in API level 28.
    this column is no longer supported, use  | 
| String | CARRIER_ENABLEDIs this APN enabled? Type: INTEGER (boolean) | 
| String | CARRIER_IDA unique carrier id associated with this APN  | 
| String | CURRENTIs this the current APN? Type: INTEGER (boolean) | 
| String | DEFAULT_SORT_ORDERThe default sort order for this table. | 
| String | MCC
      This constant was deprecated
      in API level 29.
    Use  | 
| String | MMSCMMSC URL. | 
| String | MMSPORTMMS proxy port. | 
| String | MMSPROXYMMS proxy address. | 
| String | MNC
      This constant was deprecated
      in API level 29.
    Use  | 
| String | MTU_V4The MTU (maximum transmit unit) size of the mobile interface for IPv4 to which the APN is connected, in bytes. | 
| String | MTU_V6The MTU (maximum transmit unit) size of the mobile interface for IPv6 to which the APN is connected, in bytes. | 
| String | MVNO_MATCH_DATA
      This constant was deprecated
      in API level 29.
    Use  | 
| String | MVNO_TYPE
      This constant was deprecated
      in API level 29.
    Use  | 
| String | NAMEEntry name. | 
| String | NETWORK_TYPE_BITMASKRadio technology (network type) bitmask. | 
| String | NUMERIC
      This constant was deprecated
      in API level 29.
    Use  | 
| String | PASSWORDAPN password. | 
| String | PORTProxy port. | 
| String | PROTOCOLThe protocol to use to connect to this APN. | 
| String | PROXYProxy address. | 
| String | ROAMING_PROTOCOLThe protocol to use to connect to this APN when roaming. | 
| String | SERVERServer address. | 
| String | SUBSCRIPTION_IDThe subscription to which the APN belongs to Type: INTEGER (long) | 
| String | TYPEComma-delimited list of APN types. | 
| String | USERAPN username. | 
| String | USER_EDITABLE
 | 
| String | USER_VISIBLE
 | 
| Inherited constants | 
|---|
| Fields | |
|---|---|
| 
    public
    static
    final
    Uri | CONTENT_URIThe  | 
| 
    public
    static
    final
    Uri | SIM_APN_URIThe  | 
| Inherited methods | |
|---|---|
Constants
ALWAYS_ON
public static final String ALWAYS_ON
Sets whether the PDU session brought up by this APN should always be on. See 3GPP TS 23.501 section 5.6.13
Type: INTEGER
Constant Value: "always_on"
AUTH_TYPE
public static final String AUTH_TYPE
Authentication type.
Type: INTEGER
Constant Value: "authtype"
BEARER
public static final String BEARER
      This constant was deprecated
      in API level 28.
    this column is no longer supported, use NETWORK_TYPE_BITMASK instead
  
Radio Access Technology info.
 To check what values are allowed, refer to ServiceState.
 This should be spread to other technologies,
 but is currently only used for LTE (14) and eHRPD (13).
 
Type: INTEGER
Constant Value: "bearer"
CARRIER_ENABLED
public static final String CARRIER_ENABLED
Is this APN enabled?
Type: INTEGER (boolean)
Constant Value: "carrier_enabled"
CARRIER_ID
public static final String CARRIER_ID
A unique carrier id associated with this APN TelephonyManager.getSimCarrierId()
 In case of matching carrier information, this should be used by default instead of
 those fields of MCC, MNC, NUMERIC, MVNO_TYPE,
 MVNO_MATCH_DATA, etc.
 
Type: STRING
Constant Value: "carrier_id"
CURRENT
public static final String CURRENT
Is this the current APN?
Type: INTEGER (boolean)
Constant Value: "current"
DEFAULT_SORT_ORDER
public static final String DEFAULT_SORT_ORDER
The default sort order for this table.
Constant Value: "name ASC"
MCC
public static final String MCC
      This constant was deprecated
      in API level 29.
    Use SIM_APN_URI to query APN instead, this API will return
 matching APNs based on current subscription carrier, thus no need to specify MCC and
 other carrier matching information. In the future, Android will not support MCC for
 APN query.
  
Mobile Country Code (MCC).
Type: TEXT
Constant Value: "mcc"
MMSC
public static final String MMSC
MMSC URL.
Type: TEXT
Constant Value: "mmsc"
MMSPORT
public static final String MMSPORT
MMS proxy port.
Type: TEXT
Constant Value: "mmsport"
MMSPROXY
public static final String MMSPROXY
MMS proxy address.
Type: TEXT
Constant Value: "mmsproxy"
MNC
public static final String MNC
      This constant was deprecated
      in API level 29.
    Use SIM_APN_URI to query APN instead, this API will return
 matching APNs based on current subscription carrier, thus no need to specify MNC and
 other carrier matching information. In the future, Android will not support MNC for
 APN query.
  
Mobile Network Code (MNC).
Type: TEXT
Constant Value: "mnc"
MTU_V4
public static final String MTU_V4
The MTU (maximum transmit unit) size of the mobile interface for IPv4 to which the APN is connected, in bytes.
Type: INTEGER
Constant Value: "mtu_v4"
MTU_V6
public static final String MTU_V6
The MTU (maximum transmit unit) size of the mobile interface for IPv6 to which the APN is connected, in bytes.
Type: INTEGER
Constant Value: "mtu_v6"
MVNO_MATCH_DATA
public static final String MVNO_MATCH_DATA
      This constant was deprecated
      in API level 29.
    Use SIM_APN_URI to query APN instead, this API will return
 matching APNs based on current subscription carrier, thus no need to specify
 MVNO_MATCH_DATA and other carrier matching information. In the future, Android will not
 support MVNO_MATCH_DATA for APN query.
  
MVNO data. Use the following examples.
- SPN: A MOBILE, BEN NL, ...
- IMSI: 302720x94, 2060188, ...
- GID: 4E, 33, ...
Type: TEXT
Constant Value: "mvno_match_data"
MVNO_TYPE
public static final String MVNO_TYPE
      This constant was deprecated
      in API level 29.
    Use SIM_APN_URI to query APN instead, this API will return
 matching APNs based on current subscription carrier, thus no need to specify MVNO_TYPE
 and other carrier matching information. In the future, Android will not support MVNO_TYPE
 for APN query.
  
MVNO type:
 SPN (Service Provider Name), IMSI, GID (Group Identifier Level 1).
 
Type: TEXT
Constant Value: "mvno_type"
NAME
public static final String NAME
Entry name.
Type: TEXT
Constant Value: "name"
NETWORK_TYPE_BITMASK
public static final String NETWORK_TYPE_BITMASK
Radio technology (network type) bitmask.
 To check what values can be contained, refer to the NETWORK_TYPE_ constants in
 TelephonyManager.
 Bitmask for a radio tech R is (1 << (R - 1))
 
Type: INTEGER
Constant Value: "network_type_bitmask"
NUMERIC
public static final String NUMERIC
      This constant was deprecated
      in API level 29.
    Use SIM_APN_URI to query APN instead, this API will return
 matching APNs based on current subscription carrier, thus no need to specify Numeric
 and other carrier matching information. In the future, Android will not support Numeric
 for APN query.
  
Numeric operator ID (as String). Usually MCC + MNC.
 
Type: TEXT
Constant Value: "numeric"
PASSWORD
public static final String PASSWORD
APN password.
Type: TEXT
Constant Value: "password"
PORT
public static final String PORT
Proxy port.
Type: TEXT
Constant Value: "port"
PROTOCOL
public static final String PROTOCOL
The protocol to use to connect to this APN.
 One of the PDP_type values in TS 27.007 section 10.1.1.
 For example: IP, IPV6, IPV4V6, or PPP.
 
Type: TEXT
Constant Value: "protocol"
PROXY
public static final String PROXY
Proxy address.
Type: TEXT
Constant Value: "proxy"
ROAMING_PROTOCOL
public static final String ROAMING_PROTOCOL
The protocol to use to connect to this APN when roaming. The syntax is the same as protocol.
Type: TEXT
Constant Value: "roaming_protocol"
SERVER
public static final String SERVER
Server address.
Type: TEXT
Constant Value: "server"
SUBSCRIPTION_ID
public static final String SUBSCRIPTION_ID
The subscription to which the APN belongs to
Type: INTEGER (long)
Constant Value: "sub_id"
TYPE
public static final String TYPE
Comma-delimited list of APN types.
Type: TEXT
Constant Value: "type"
USER
public static final String USER
APN username.
Type: TEXT
Constant Value: "user"
USER_EDITABLE
public static final String USER_EDITABLE
true if the user allowed to edit this APN, false otherwise.
 
Type: INTEGER (boolean)
Constant Value: "user_editable"
USER_VISIBLE
public static final String USER_VISIBLE
true if this APN visible to the user, false otherwise.
 
Type: INTEGER (boolean)
Constant Value: "user_visible"
Fields
CONTENT_URI
public static final Uri CONTENT_URI
The content:// style URL for this table.
 For MSIM, this will return APNs for the default subscription
 SubscriptionManager.getDefaultSubscriptionId(). To specify subId for MSIM,
 use Uri.withAppendedPath(Uri, String) to append with subscription id.
SIM_APN_URI
public static final Uri SIM_APN_URI
The content:// style URL for this table. Used for APN query based on current
 subscription. Instead of specifying carrier matching information in the selection,
 this API will return all matching APNs from current subscription carrier and queries
 will be applied on top of that. If there is no match for MVNO (Mobile Virtual Network
 Operator) APNs, return APNs from its MNO (based on mccmnc) instead. For MSIM, this will
 return APNs for the default subscription
 SubscriptionManager.getDefaultSubscriptionId(). To specify subId for MSIM,
 use Uri.withAppendedPath(Uri, String) to append with subscription id.
