按优先级由低到高,分为3类:
影响所有运营商的缺省配置
路径:framework/base/telephony/java/android/telephony/CarrierConfigManager.java
从android的提交理由看, 轻易不要动这一层,比如:
commit 5b001197d86e616405abd1578e97bb86d9cb55ee
Author: James.cf Lin <jamescflin@google.com>
Date: Wed Jun 30 02:03:15 2021 +0800[UCE] Set the default value of the list subscribe to false
Set the default value of the list subscribe to false because there are not many carriers support the list subscription
特定运营商xml配置
路径: packages/apps/CarrierConfig/assets
如carrier_config_carrierid_767_中國移動香港-China-Mobile-HK.xml:
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<carrier_config>
<string-array name="support_tdscdma_roaming_networks_string_array" num="4">
<item value="46000"/>
<item value="46002"/>
<item value="46007"/>
<item value="46008"/>
</string-array>
</carrier_config>
vendor级别的配置
参考device/generic/goldfish/overlay/packages/apps/CarrierConfig/res/xml/vendor.xml:
<!-- This is a place for vendor-specific config values. The format and
filtering rules are the same as those in carrier_config*.xml files. This
file is read after any specific config file from the assets folder, so it
must use explicit filters for MCC ad MNC if that is desired. -->