- settings.xml: add conditional telephony block (mobile data, VoLTE, roaming, network mode) - res/xml/apns.xml: simple single-file APN fallback with full attribute documentation - assets/apns/global.xml: multi-file APN template compatible with LineageOS/android_vendor_apn - build.gradle: add assets srcDir, Gradle copy tasks to pull only *.xml from APN submodules
94 lines
2.8 KiB
XML
94 lines
2.8 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
||
<!--
|
||
Fallback APN definitions (simple / single-file mode).
|
||
|
||
If assets/apns/ contains any .xml files, ConfigProvisioner uses those
|
||
instead and ignores this file entirely. Use assets/apns/ for multi-file
|
||
region/carrier organisation (compatible with LineageOS apns-conf.xml format).
|
||
|
||
This file is only read when assets/apns/ is absent or empty.
|
||
|
||
Existing APNs with the same numeric+apn pair are skipped (no duplicates).
|
||
|
||
Required attributes:
|
||
name Display name shown in APN settings
|
||
numeric MCCMNC string, e.g. "310260" (T-Mobile US)
|
||
mcc Mobile country code (3 digits)
|
||
mnc Mobile network code (2–3 digits)
|
||
apn APN string, e.g. "internet"
|
||
|
||
Optional attributes:
|
||
type Comma-separated: default, supl, mms, fota, ims, cbs, ia, emergency
|
||
Omit for "default,supl" (internet + location)
|
||
protocol IP | IPV6 | IPV4V6 (default: IPV4V6)
|
||
roaming_protocol same as protocol (default: IPV4V6)
|
||
mmsc MMS centre URL (required for MMS type)
|
||
mmsproxy MMS proxy host
|
||
mmsport MMS proxy port
|
||
user APN username (if required by carrier)
|
||
password APN password (if required by carrier)
|
||
carrier_enabled 1 | 0 (default: 1)
|
||
bearer comma-separated RATs: LTE,HSPA,UMTS,EDGE,GPRS,EHRPD,EVDO_B,…
|
||
Omit to allow all bearers.
|
||
|
||
Example — Generic internet APN (replace mcc/mnc/apn with real values):
|
||
|
||
<apn
|
||
name="My Carrier Internet"
|
||
numeric="00000"
|
||
mcc="000"
|
||
mnc="00"
|
||
apn="internet"
|
||
type="default,supl"
|
||
protocol="IPV4V6"
|
||
roaming_protocol="IPV4V6"
|
||
carrier_enabled="1" />
|
||
|
||
Example — MMS APN:
|
||
|
||
<apn
|
||
name="My Carrier MMS"
|
||
numeric="00000"
|
||
mcc="000"
|
||
mnc="00"
|
||
apn="mms"
|
||
type="mms"
|
||
mmsc="http://mmsc.example.com"
|
||
mmsproxy="192.168.1.1"
|
||
mmsport="8080"
|
||
protocol="IPV4V6"
|
||
roaming_protocol="IPV4V6"
|
||
carrier_enabled="1" />
|
||
|
||
Example — IMS (VoLTE) APN:
|
||
|
||
<apn
|
||
name="My Carrier IMS"
|
||
numeric="00000"
|
||
mcc="000"
|
||
mnc="00"
|
||
apn="ims"
|
||
type="ims"
|
||
protocol="IPV4V6"
|
||
roaming_protocol="IPV4V6"
|
||
carrier_enabled="1" />
|
||
-->
|
||
<apns>
|
||
|
||
<!-- Add real APN entries here. All examples are commented out. -->
|
||
|
||
<!--
|
||
<apn
|
||
name="Example Internet"
|
||
numeric="00000"
|
||
mcc="000"
|
||
mnc="00"
|
||
apn="internet"
|
||
type="default,supl"
|
||
protocol="IPV4V6"
|
||
roaming_protocol="IPV4V6"
|
||
carrier_enabled="1" />
|
||
-->
|
||
|
||
</apns>
|