Settings.java
public static final String ENHANCED_4G_MODE_ENABLED =
Telephony.SimInfo.COLUMN_ENHANCED_4G_MODE_ENABLED;
public static final String VT_IMS_ENABLED = Telephony.SimInfo.COLUMN_VT_IMS_ENABLED;
public static final String WFC_IMS_ENABLED = Telephony.SimInfo.COLUMN_WFC_IMS_ENABLED;
public static final String WFC_IMS_MODE = Telephony.SimInfo.COLUMN_WFC_IMS_MODE;
public static final String WFC_IMS_ROAMING_MODE =
Telephony.SimInfo.COLUMN_WFC_IMS_ROAMING_MODE;
public static final String WFC_IMS_ROAMING_ENABLED =
Telephony.SimInfo.COLUMN_WFC_IMS_ROAMING_ENABLED;
方式一:DatabaseHelper.java
loadSetting(stmt, Settings.Global.ENHANCED_4G_MODE_ENABLED, ImsConfig.FeatureValueConstants.ON);(两处地方),将ImsConfig.FeatureValueConstants.ON 改为 OFF
方式二: device/mediatek/common/device.mk
#WFC feature(wifi calling)
ifeq ($(strip $(MTK_WFC_SUPPORT)),yes)
PRODUCT_PROPERTY_OVERRIDES += persist.vendor.mtk_wfc_support=1
PRODUCT_PACKAGES += ipsec_mon
endif
#VOLTE feature(电话功能)
ifeq ($(strip $(MTK_VOLTE_SUPPORT)), yes)
PRODUCT_PROPERTY_OVERRIDES += persist.vendor.volte_support=1
PRODUCT_PROPERTY_OVERRIDES += persist.vendor.mtk.volte.enable=1
endif
persist.vendor.mtk.volte.enable=0 默认关闭volte功能
SIM卡 VoLTE 菜单 开启/关闭状态默认值修改
在 frameworks/base/telephony/java/android/telephony/CarrierConfigManager.java 文件中修改以下参数即可:
sDefaults.putBoolean(KEY_ENHANCED_4G_LTE_ON_BY_DEFAULT_BOOL, true);
//true:默认开启volte;false:默认关闭volte
sDefaults.putBoolean(KEY_HIDE_ENHANCED_4G_LTE_BOOL, false);
//true:默认隐藏volte菜单;false:默认显示volte菜单
去掉VT视频通话功能及菜单,默认开启VoLTE电话功能和wifi calling功能及菜单
修改frameworks/base/core/res/res/values/config.xml
<!-- Flag specifying whether VoLTE, VT and WFC is available on device -->
<bool name="config_device_volte_available">true</bool>
<!-- remove vt function start {@ -->
<bool name="config_device_vt_available">false</bool><!-- meig:jicong.wang remove vt function end @} -->
<bool name="config_device_wfc_ims_available">true</bool>