xref: /aosp_15_r20/tools/carrier_settings/README (revision ff35212d322a3e892605b94fa777c67085d45efd)
1*ff35212dSceyThis tool converts carrier config and APNs from XML format to protobuf format.
2*ff35212dScey
3*ff35212dSceyAOSP default carrier configs can be found in packages/apps/CarrierConfig,
4*ff35212dSceyand APNs in device/sample/etc/apns-full-conf.xml.
5*ff35212dScey
6*ff35212dSceyUsage:
7*ff35212dScey
8*ff35212dScey$ source build/envsetup.sh
9*ff35212dScey$ lunch foo_bar
10*ff35212dScey$ croot
11*ff35212dScey$ source <path>/main.sh
12*ff35212dScey
13*ff35212dSceyThe commands above build the tool from source code and run them.
14*ff35212dScey
15*ff35212dSceyThis tool is best supported on Android 11 code base. See additional steps
16*ff35212dSceyin bin/README.md run it on Android 10.
17*ff35212dScey
18*ff35212dSceyUsually, if a MVNO has no APN defined in xml, the tool will use APNs of the corresponding MNO,
19*ff35212dSceybased on MCC/MNC values. However, a CarrierConfig carriersettingstool.no_apn_for_mvno_bool
20*ff35212dSceycan be set as true to avoid such copying in conversion tool.
21*ff35212dSceycarriersettingstool.no_apn_for_mvno_bool will also be removed from final config by the tool.
22