android运营商相关配置

按优先级由低到高,分为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. -->
 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值