# Telephony.Carriers

Added in[API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Summary:[Constants](https://developer.android.com/reference/android/provider/Telephony.Carriers#constants)\|[Inherited Constants](https://developer.android.com/reference/android/provider/Telephony.Carriers#inhconstants)\|[Fields](https://developer.android.com/reference/android/provider/Telephony.Carriers#lfields)\|[Inherited Methods](https://developer.android.com/reference/android/provider/Telephony.Carriers#inhmethods)  

# Telephony.Carriers

*** ** * ** ***

[Kotlin](https://developer.android.com/reference/kotlin/android/provider/Telephony.Carriers "View this page in Kotlin")\|Java

`
public
static
final

class
Telephony.Carriers
`  
`

extends `[Object](https://developer.android.com/reference/java/lang/Object)`


``


implements

`[BaseColumns](https://developer.android.com/reference/android/provider/BaseColumns)`


`

|---|-------------------------------------|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | android.provider.Telephony.Carriers |

<br />

*** ** * ** ***

Carriers class contains information about APNs, including MMSC information.

## Summary

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ### Constants                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ||
|--------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [String](https://developer.android.com/reference/java/lang/String) | [ALWAYS_ON](https://developer.android.com/reference/android/provider/Telephony.Carriers#ALWAYS_ON) Sets whether the PDU session brought up by this APN should always be on.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| [String](https://developer.android.com/reference/java/lang/String) | [APN](https://developer.android.com/reference/android/provider/Telephony.Carriers#APN) APN name.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| [String](https://developer.android.com/reference/java/lang/String) | [AUTH_TYPE](https://developer.android.com/reference/android/provider/Telephony.Carriers#AUTH_TYPE) Authentication type.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| [String](https://developer.android.com/reference/java/lang/String) | [BEARER](https://developer.android.com/reference/android/provider/Telephony.Carriers#BEARER) *This constant was deprecated in API level 28. this column is no longer supported, use[NETWORK_TYPE_BITMASK](https://developer.android.com/reference/android/provider/Telephony.Carriers#NETWORK_TYPE_BITMASK)instead*                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| [String](https://developer.android.com/reference/java/lang/String) | [CARRIER_ENABLED](https://developer.android.com/reference/android/provider/Telephony.Carriers#CARRIER_ENABLED) Is this APN enabled? Type: INTEGER (boolean) <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| [String](https://developer.android.com/reference/java/lang/String) | [CARRIER_ID](https://developer.android.com/reference/android/provider/Telephony.Carriers#CARRIER_ID) A unique carrier id associated with this APN[TelephonyManager.getSimCarrierId()](https://developer.android.com/reference/android/telephony/TelephonyManager#getSimCarrierId())In case of matching carrier information, this should be used by default instead of those fields of[MCC](https://developer.android.com/reference/android/provider/Telephony.Carriers#MCC),[MNC](https://developer.android.com/reference/android/provider/Telephony.Carriers#MNC),[NUMERIC](https://developer.android.com/reference/android/provider/Telephony.Carriers#NUMERIC),[MVNO_TYPE](https://developer.android.com/reference/android/provider/Telephony.Carriers#MVNO_TYPE),[MVNO_MATCH_DATA](https://developer.android.com/reference/android/provider/Telephony.Carriers#MVNO_MATCH_DATA), etc. |
| [String](https://developer.android.com/reference/java/lang/String) | [CURRENT](https://developer.android.com/reference/android/provider/Telephony.Carriers#CURRENT) Is this the current APN? Type: INTEGER (boolean) <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| [String](https://developer.android.com/reference/java/lang/String) | [DEFAULT_SORT_ORDER](https://developer.android.com/reference/android/provider/Telephony.Carriers#DEFAULT_SORT_ORDER) The default sort order for this table.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| [String](https://developer.android.com/reference/java/lang/String) | [MCC](https://developer.android.com/reference/android/provider/Telephony.Carriers#MCC) *This constant was deprecated in API level 29. Use[SIM_APN_URI](https://developer.android.com/reference/android/provider/Telephony.Carriers#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.*                                                                                                                                                                                                                                                                                                                                                                                                            |
| [String](https://developer.android.com/reference/java/lang/String) | [MMSC](https://developer.android.com/reference/android/provider/Telephony.Carriers#MMSC) MMSC URL.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| [String](https://developer.android.com/reference/java/lang/String) | [MMSPORT](https://developer.android.com/reference/android/provider/Telephony.Carriers#MMSPORT) MMS proxy port.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| [String](https://developer.android.com/reference/java/lang/String) | [MMSPROXY](https://developer.android.com/reference/android/provider/Telephony.Carriers#MMSPROXY) MMS proxy address.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| [String](https://developer.android.com/reference/java/lang/String) | [MNC](https://developer.android.com/reference/android/provider/Telephony.Carriers#MNC) *This constant was deprecated in API level 29. Use[SIM_APN_URI](https://developer.android.com/reference/android/provider/Telephony.Carriers#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.*                                                                                                                                                                                                                                                                                                                                                                                                            |
| [String](https://developer.android.com/reference/java/lang/String) | [MTU_V4](https://developer.android.com/reference/android/provider/Telephony.Carriers#MTU_V4) The MTU (maximum transmit unit) size of the mobile interface for IPv4 to which the APN is connected, in bytes.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| [String](https://developer.android.com/reference/java/lang/String) | [MTU_V6](https://developer.android.com/reference/android/provider/Telephony.Carriers#MTU_V6) The MTU (maximum transmit unit) size of the mobile interface for IPv6 to which the APN is connected, in bytes.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| [String](https://developer.android.com/reference/java/lang/String) | [MVNO_MATCH_DATA](https://developer.android.com/reference/android/provider/Telephony.Carriers#MVNO_MATCH_DATA) *This constant was deprecated in API level 29. Use[SIM_APN_URI](https://developer.android.com/reference/android/provider/Telephony.Carriers#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.*                                                                                                                                                                                                                                                                                                                                                            |
| [String](https://developer.android.com/reference/java/lang/String) | [MVNO_TYPE](https://developer.android.com/reference/android/provider/Telephony.Carriers#MVNO_TYPE) *This constant was deprecated in API level 29. Use[SIM_APN_URI](https://developer.android.com/reference/android/provider/Telephony.Carriers#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.*                                                                                                                                                                                                                                                                                                                                                                                    |
| [String](https://developer.android.com/reference/java/lang/String) | [NAME](https://developer.android.com/reference/android/provider/Telephony.Carriers#NAME) Entry name.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| [String](https://developer.android.com/reference/java/lang/String) | [NETWORK_TYPE_BITMASK](https://developer.android.com/reference/android/provider/Telephony.Carriers#NETWORK_TYPE_BITMASK) Radio technology (network type) bitmask.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| [String](https://developer.android.com/reference/java/lang/String) | [NUMERIC](https://developer.android.com/reference/android/provider/Telephony.Carriers#NUMERIC) *This constant was deprecated in API level 29. Use[SIM_APN_URI](https://developer.android.com/reference/android/provider/Telephony.Carriers#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.*                                                                                                                                                                                                                                                                                                                                                                                            |
| [String](https://developer.android.com/reference/java/lang/String) | [PASSWORD](https://developer.android.com/reference/android/provider/Telephony.Carriers#PASSWORD) APN password.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| [String](https://developer.android.com/reference/java/lang/String) | [PORT](https://developer.android.com/reference/android/provider/Telephony.Carriers#PORT) Proxy port.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| [String](https://developer.android.com/reference/java/lang/String) | [PROTOCOL](https://developer.android.com/reference/android/provider/Telephony.Carriers#PROTOCOL) The protocol to use to connect to this APN.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| [String](https://developer.android.com/reference/java/lang/String) | [PROXY](https://developer.android.com/reference/android/provider/Telephony.Carriers#PROXY) Proxy address.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| [String](https://developer.android.com/reference/java/lang/String) | [ROAMING_PROTOCOL](https://developer.android.com/reference/android/provider/Telephony.Carriers#ROAMING_PROTOCOL) The protocol to use to connect to this APN when roaming.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| [String](https://developer.android.com/reference/java/lang/String) | [SERVER](https://developer.android.com/reference/android/provider/Telephony.Carriers#SERVER) Server address.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| [String](https://developer.android.com/reference/java/lang/String) | [SUBSCRIPTION_ID](https://developer.android.com/reference/android/provider/Telephony.Carriers#SUBSCRIPTION_ID) The subscription to which the APN belongs to Type: INTEGER (long) <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| [String](https://developer.android.com/reference/java/lang/String) | [TYPE](https://developer.android.com/reference/android/provider/Telephony.Carriers#TYPE) Comma-delimited list of APN types.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| [String](https://developer.android.com/reference/java/lang/String) | [USER](https://developer.android.com/reference/android/provider/Telephony.Carriers#USER) APN username.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| [String](https://developer.android.com/reference/java/lang/String) | [USER_EDITABLE](https://developer.android.com/reference/android/provider/Telephony.Carriers#USER_EDITABLE) `true`if the user allowed to edit this APN,`false`otherwise.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| [String](https://developer.android.com/reference/java/lang/String) | [USER_VISIBLE](https://developer.android.com/reference/android/provider/Telephony.Carriers#USER_VISIBLE) `true`if this APN visible to the user,`false`otherwise.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |

|                                                                                                                                                                                                                                                                                                                                                ### Inherited constants                                                                                                                                                                                                                                                                                                                                                |
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| From interface[android.provider.BaseColumns](https://developer.android.com/reference/android/provider/BaseColumns) |--------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------| | [String](https://developer.android.com/reference/java/lang/String) | [_COUNT](https://developer.android.com/reference/android/provider/BaseColumns#_COUNT) The count of rows in a directory. | | [String](https://developer.android.com/reference/java/lang/String) | [_ID](https://developer.android.com/reference/android/provider/BaseColumns#_ID) The unique ID for a row.                | |

|                                                                                                               ### Fields                                                                                                               ||
|---------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------|
| ` public static final `[Uri](https://developer.android.com/reference/android/net/Uri) | [CONTENT_URI](https://developer.android.com/reference/android/provider/Telephony.Carriers#CONTENT_URI) The`content://`style URL for this table. |
| ` public static final `[Uri](https://developer.android.com/reference/android/net/Uri) | [SIM_APN_URI](https://developer.android.com/reference/android/provider/Telephony.Carriers#SIM_APN_URI) The`content://`style URL for this table. |

| ### Inherited methods |
|-----------------------|---|
| From class` `[java.lang.Object](https://developer.android.com/reference/java/lang/Object)` ` |--------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` `[Object](https://developer.android.com/reference/java/lang/Object)          | ` `[clone](https://developer.android.com/reference/java/lang/Object#clone())`() ` Creates and returns a copy of this object.                                                                                                                                                      | | ` boolean`                                                                     | ` `[equals](https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object))`(`[Object](https://developer.android.com/reference/java/lang/Object)` obj) ` Indicates whether some other object is "equal to" this one.                                           | | ` void`                                                                        | ` `[finalize](https://developer.android.com/reference/java/lang/Object#finalize())`() ` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.                                                          | | ` final `[Class](https://developer.android.com/reference/java/lang/Class)`<?>` | ` `[getClass](https://developer.android.com/reference/java/lang/Object#getClass())`() ` Returns the runtime class of this`Object`.                                                                                                                                                | | ` int`                                                                         | ` `[hashCode](https://developer.android.com/reference/java/lang/Object#hashCode())`() ` Returns a hash code value for the object.                                                                                                                                                 | | ` final void`                                                                  | ` `[notify](https://developer.android.com/reference/java/lang/Object#notify())`() ` Wakes up a single thread that is waiting on this object's monitor.                                                                                                                            | | ` final void`                                                                  | ` `[notifyAll](https://developer.android.com/reference/java/lang/Object#notifyAll())`() ` Wakes up all threads that are waiting on this object's monitor.                                                                                                                         | | ` `[String](https://developer.android.com/reference/java/lang/String)          | ` `[toString](https://developer.android.com/reference/java/lang/Object#toString())`() ` Returns a string representation of the object.                                                                                                                                            | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait(long,%20int))`(long timeoutMillis, int nanos) ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*, or until a certain amount of real time has elapsed. | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait(long))`(long timeoutMillis) ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*, or until a certain amount of real time has elapsed.                   | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait())`() ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*.                                                                                             | ||

## Constants

### ALWAYS_ON

Added in[API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
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

<br />

<br />

Constant Value: "always_on"  

### APN

Added in[API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final String APN
```

APN name.

Type: TEXT

<br />

<br />

Constant Value: "apn"  

### AUTH_TYPE

Added in[API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final String AUTH_TYPE
```

Authentication type.

Type: INTEGER

<br />

<br />

Constant Value: "authtype"  

### BEARER

Added in[API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Deprecated in[API level 28](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final String BEARER
```

<br />

**This constant was deprecated in API level 28.**   
this column is no longer supported, use[NETWORK_TYPE_BITMASK](https://developer.android.com/reference/android/provider/Telephony.Carriers#NETWORK_TYPE_BITMASK)instead

Radio Access Technology info. To check what values are allowed, refer to[ServiceState](https://developer.android.com/reference/android/telephony/ServiceState). This should be spread to other technologies, but is currently only used for LTE (14) and eHRPD (13).

Type: INTEGER

<br />

<br />

Constant Value: "bearer"  

### CARRIER_ENABLED

Added in[API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final String CARRIER_ENABLED
```

Is this APN enabled?

Type: INTEGER (boolean)

<br />

<br />

Constant Value: "carrier_enabled"  

### CARRIER_ID

Added in[API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final String CARRIER_ID
```

A unique carrier id associated with this APN[TelephonyManager.getSimCarrierId()](https://developer.android.com/reference/android/telephony/TelephonyManager#getSimCarrierId())In case of matching carrier information, this should be used by default instead of those fields of[MCC](https://developer.android.com/reference/android/provider/Telephony.Carriers#MCC),[MNC](https://developer.android.com/reference/android/provider/Telephony.Carriers#MNC),[NUMERIC](https://developer.android.com/reference/android/provider/Telephony.Carriers#NUMERIC),[MVNO_TYPE](https://developer.android.com/reference/android/provider/Telephony.Carriers#MVNO_TYPE),[MVNO_MATCH_DATA](https://developer.android.com/reference/android/provider/Telephony.Carriers#MVNO_MATCH_DATA), etc.

Type: STRING

<br />

<br />

Constant Value: "carrier_id"  

### CURRENT

Added in[API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final String CURRENT
```

Is this the current APN?

Type: INTEGER (boolean)

<br />

<br />

Constant Value: "current"  

### DEFAULT_SORT_ORDER

Added in[API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final String DEFAULT_SORT_ORDER
```

The default sort order for this table.

<br />

Constant Value: "name ASC"  

### MCC

Added in[API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Deprecated in[API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final String MCC
```

<br />

**This constant was deprecated in API level 29.**   
Use[SIM_APN_URI](https://developer.android.com/reference/android/provider/Telephony.Carriers#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

<br />

<br />

Constant Value: "mcc"  

### MMSC

Added in[API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final String MMSC
```

MMSC URL.

Type: TEXT

<br />

<br />

Constant Value: "mmsc"  

### MMSPORT

Added in[API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final String MMSPORT
```

MMS proxy port.

Type: TEXT

<br />

<br />

Constant Value: "mmsport"  

### MMSPROXY

Added in[API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final String MMSPROXY
```

MMS proxy address.

Type: TEXT

<br />

<br />

Constant Value: "mmsproxy"  

### MNC

Added in[API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Deprecated in[API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final String MNC
```

<br />

**This constant was deprecated in API level 29.**   
Use[SIM_APN_URI](https://developer.android.com/reference/android/provider/Telephony.Carriers#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

<br />

<br />

Constant Value: "mnc"  

### MTU_V4

Added in[API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
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

<br />

<br />

Constant Value: "mtu_v4"  

### MTU_V6

Added in[API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
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

<br />

<br />

Constant Value: "mtu_v6"  

### MVNO_MATCH_DATA

Added in[API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Deprecated in[API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final String MVNO_MATCH_DATA
```

<br />

**This constant was deprecated in API level 29.**   
Use[SIM_APN_URI](https://developer.android.com/reference/android/provider/Telephony.Carriers#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

<br />

<br />

Constant Value: "mvno_match_data"  

### MVNO_TYPE

Added in[API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Deprecated in[API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final String MVNO_TYPE
```

<br />

**This constant was deprecated in API level 29.**   
Use[SIM_APN_URI](https://developer.android.com/reference/android/provider/Telephony.Carriers#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

<br />

<br />

Constant Value: "mvno_type"  

### NAME

Added in[API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final String NAME
```

Entry name.

Type: TEXT

<br />

<br />

Constant Value: "name"  

### NETWORK_TYPE_BITMASK

Added in[API level 28](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
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](https://developer.android.com/reference/android/telephony/TelephonyManager). Bitmask for a radio tech R is (1 \<\< (R - 1))

Type: INTEGER

<br />

<br />

Constant Value: "network_type_bitmask"  

### NUMERIC

Added in[API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Deprecated in[API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final String NUMERIC
```

<br />

**This constant was deprecated in API level 29.**   
Use[SIM_APN_URI](https://developer.android.com/reference/android/provider/Telephony.Carriers#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

<br />

<br />

Constant Value: "numeric"  

### PASSWORD

Added in[API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final String PASSWORD
```

APN password.

Type: TEXT

<br />

<br />

Constant Value: "password"  

### PORT

Added in[API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final String PORT
```

Proxy port.

Type: TEXT

<br />

<br />

Constant Value: "port"  

### PROTOCOL

Added in[API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
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

<br />

<br />

Constant Value: "protocol"  

### PROXY

Added in[API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final String PROXY
```

Proxy address.

Type: TEXT

<br />

<br />

Constant Value: "proxy"  

### ROAMING_PROTOCOL

Added in[API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
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

<br />

<br />

Constant Value: "roaming_protocol"  

### SERVER

Added in[API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final String SERVER
```

Server address.

Type: TEXT

<br />

<br />

Constant Value: "server"  

### SUBSCRIPTION_ID

Added in[API level 22](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final String SUBSCRIPTION_ID
```

The subscription to which the APN belongs to

Type: INTEGER (long)

<br />

<br />

Constant Value: "sub_id"  

### TYPE

Added in[API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final String TYPE
```

Comma-delimited list of APN types.

Type: TEXT

<br />

<br />

Constant Value: "type"  

### USER

Added in[API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final String USER
```

APN username.

Type: TEXT

<br />

<br />

Constant Value: "user"  

### USER_EDITABLE

Added in[API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final String USER_EDITABLE
```

`true`if the user allowed to edit this APN,`false`otherwise.

Type: INTEGER (boolean)

<br />

<br />

Constant Value: "user_editable"  

### USER_VISIBLE

Added in[API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final String USER_VISIBLE
```

`true`if this APN visible to the user,`false`otherwise.

Type: INTEGER (boolean)

<br />

<br />

Constant Value: "user_visible"

## Fields

### CONTENT_URI

Added in[API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
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()](https://developer.android.com/reference/android/telephony/SubscriptionManager#getDefaultSubscriptionId()). To specify subId for MSIM, use[Uri.withAppendedPath(Uri, String)](https://developer.android.com/reference/android/net/Uri#withAppendedPath(android.net.Uri,%20java.lang.String))to append with subscription id.

<br />

### SIM_APN_URI

Added in[API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
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()](https://developer.android.com/reference/android/telephony/SubscriptionManager#getDefaultSubscriptionId()). To specify subId for MSIM, use[Uri.withAppendedPath(Uri, String)](https://developer.android.com/reference/android/net/Uri#withAppendedPath(android.net.Uri,%20java.lang.String))to append with subscription id.

<br />