在android\packages\apps\CarrierConfig\assets\carrier_config_mccmnc.xml中添加<boolean name="hide_ims_apn_bool" value="true" />
其它CarrierConfig修改也在该目录下配置。
该变量初始化在framework/base/telephony/java/android/telephony/CarrierConfigManager.java 下
public static final String KEY_HIDE_IMS_APN_BOOL = "hide_ims_apn_bool";
sDefaults.putBoolean(KEY_HIDE_IMS_APN_BOOL, false);
应用于
package/app/Settings/src/com/android/settins/ApnSettings.java
mHideImsApn = b.getBoolean(CarrierConfigManager.KEY_HIDE_IMS_APN_BOOL);
fillList()
if (mHideImsApn) {
where.append(" AND NOT (type='ims')");
}