-
如何打開VoLTE,ViLTE,VoWifi Feature (How to enable VoLTE,ViLTE,VoWifi feature option)
(1)VoLTE谒撼,ViLTE Feature
Selection Feature option
打開VoLTE(Enable VoLTE)
MTK_IMS_SUPPORT=yes
MTK_VOLTE_SUPPORT=yes
打開ViLTE(Enable ViLTE)
MTK_VILTE_SUPPORT = yes
如果要支持ViLTE,必須也要支持VoLTE雾狈。
(2)VoWifi Feature
Selection Feature option
打開WFC (Enable WFC)
MTK_IMS_SUPPORT=yes
MTK_VOLTE_SUPPORT=yes
MTK_WFC_SUPPORT=yes
MTK_EPDG_SUPPORT=yes
MTK_FLIGHT_MODE_POWER_OFF_MD=no(No need after Android-M1)
關(guān)閉WFC (Disable WFC)
MTK_WFC_SUPPORT=no
VoWifi有些module屬于binary release廓潜,如果基線版本不支持VoWifi, 請(qǐng)使用[Patch Release]模板提交eservice給CPM申請(qǐng)open VoWifi release patch.(VoWifi feature has binary release module, if basic version does not support VoWifi, please submit eservice to CPM according to [patch release template] for VoWifi patch release.)
所有提到的WFC名稱,等同于VoWifi。如果要支持VoWiFi辩蛋,必須支持VoLTE呻畸。(VoWifi=WFC,if enableVoWifi feature, must enable VoLTE firstly.)
(3) Dual VoLTE (93 platform)
雙VoLTE是否開啟悼院,是由AP project configuation控制的伤为。(Single/Dual VoLTE is Switched by AP Project Configuration.)
L+W/Single VoLTE project L+L/Dual VoLTE project
MTK_MULTI_PS_SUPPORT = yes MTK_MULTI_PS_SUPPORT = yes
MTK_MULTIPLE_IMS_SUPPORT =1
MTK_MULTIPLE_IMS_SUPPORT = 2
MTK_PROTOCOL2_RAT_CONFIG=W/G MTK_PROTOCOL2_RAT_CONFIG=L/W/G
operator定制project 如果要支持dual VoLTE,也是使用上述project config据途。(Operator Customization project also use above configuration to enable dual VoLTE.)
2.針對(duì)某家operator绞愚,如何配置支持VoLTE、ViLTE和VoWifi (config volte, ViLTE and VoWifi for operator)
開啟dynamic IMS switch 這個(gè)feature后(property persist.mtk_dynamic_ims_switch 值為1)颖医,需要根據(jù)運(yùn)營(yíng)商的mccmnc來(lái)配置config以支持VoLTE位衩、ViLTE和VoWifi,MTK默認(rèn)已經(jīng)配置好了大部分的運(yùn)營(yíng)商, 廠商可以新增支持的運(yùn)營(yíng)商熔萧。(English: If support dynamic IMS switch feature(value of property persist.mtk_dynamic_ims_switch is 1) and some operator need support volte, ViLTE and VoWifi, must add mccmnc config. MTK has add configs for most of operators. Customer can add new config further.)
FeatureName
device config key (default value)
available config key (default value)
VoLTE
config_device_volte_available (false)
carrier_volte_available_bool (aosp is false, MtkCarrierConfigManager.java put as true)
ViLTE
config_device_vt_available (false)
carrier_vt_available_bool (aosp is false, MtkCarrierConfigManager.java put as true)
VoWifi
config_device_wfc_ims_available (false)
carrier_wfc_ims_available_bool (aosp is false, MtkCarrierConfigManager.java put as true)
如果需要新增支持這些feature的運(yùn)營(yíng)商糖驴,配置相應(yīng)mccmnc的config文件并將相應(yīng)的config key 設(shè)置成true即可。(Config related config files to support these features for new opeator.)
"carrier_xxx_available_bool" 三個(gè)key的AOSP默認(rèn)值是false佛致,但是MtkCarrierConfigManager.java將這三個(gè)key的默認(rèn)值改成了true贮缕,所以如果客戶版本有使用MtkCarrierConfigManager.java,就可以忽略available config key的配置俺榆,只用關(guān)注device config key感昼。(Available config key "carrier_xxx_available_bool" aosp value is false, mtk overwrite these key value as true in MtkCarrierConfigManager.java. If use MtkCarrierConfigManager.java, you can ignore config available config key.)
device config key和available config key區(qū)別:前者指定平臺(tái)是否支持運(yùn)營(yíng)商的VoLTE/ViLTE/VoWifi;后者指定運(yùn)營(yíng)商的VoLTE/ViLTE/VoWifi是否可用罐脊。比如config_device_volte_available = true并且carrier_volte_available_bool = true定嗓,isVolteEnabledByPlatform()這個(gè)判斷函數(shù)才可能返回true,如果返回false代表這兩個(gè)config沒(méi)有配對(duì)爹殊。(device config key is specifying whether operator VoLTE/ViLTE/VoWifi is available on device. available config key is specifying whether VoLTE/ViLTE/VoWifi should be available for carrier: independent of carrier provisioning. If false: hard disabled. For example, isVolteEnabledByPlatform() return false if config_device_volte_available or carrier_volte_available_bool hase false config value.)
比如需要為40492新增支持VoLTE蜕乡,ViLTE and VoWifi奸绷,就需要配置以下file(For Example: operator's mccmnc is 40492, if support all these features, config as follow):
(1) device/mediatek/common/overlay/telephony/frameworks/base/core/res/res/values-mcc404-mnc92/config.xml
<bool translatable="false" name="config_device_volte_available">true</bool>
<bool translatable="false" name="config_device_vt_available">true</bool>
<bool translatable="false" name="config_device_wfc_ims_available">true</bool>
(2)/vendor/mediatek/proprietary/packages/apps/CarrierConfig/assets/carrier_config_40492.xml
<boolean name="carrier_volte_available_bool" value="true" />
<boolean name="carrier_vt_available_bool" value="true" />
<boolean name="carrier_wfc_ims_available_bool" value="true" />
【VoWifi白名單】針對(duì)90/91/92平臺(tái)梗夸,VoWifi還有一處額外的“VoWifi白名單”配置文件需要注意(For 90/91/92 platform, there is another config need pay attention for VoWifi, the file is):
vendor/mediatek/proprietary/packages/services/WifiOffload/res/values/arrays.xml
這個(gè)file里面配置了支持VoWifi的運(yùn)營(yíng)商,可以搜索MTK main log号醉,會(huì)找到類似如下打臃粗ⅰ(This file decide if operator support Wifi calling, if you find below information in main log):
04-11 12:25:42.845471 1684 1684 D WifiOffloadService: notifyMalWfcSupported: simId: 0, supported= 0, isEnabled= 1
"supported= 0"代表這家運(yùn)營(yíng)商并沒(méi)有列入白名單,需要在arrays.xml里面增加運(yùn)營(yíng)商的mccmnc畔派。("supported= 0" means this operator is not listed in the arrays.xml, then you need add coresponde mccmnc to this file.)
PS:如果MTK main log中能搜到關(guān)鍵字“WifiOffloadService”铅碍,一定就是90/91/92平臺(tái)之一。(if search out “WifiOffloadService” in MTK main log, it must be one of 90/91/92 platform.)
04-11 12:25:42.845471 1684 1684 D WifiOffloadService: notifyMalWfcSupported......
如何通過(guò)log確認(rèn)device config有沒(méi)有配置(how to check if config_device_xxx_available value for some operator线椰?)
在AP main log中搜索"ImsConfigManager"胞谈,可以看到65507這家operator的支持VoLTE和VoWifi(WFC is VoWifi),不支持ViLTE (search "ImsConfigManager" in AP main log, as below log, 65507 config as config_device_volte_available on, config_device_vt_available off, config_device_wfc_ims_available on.)
06-01 06:19:07.584491 1502 1502 D ImsConfigManager: DYNAMIC_IMS_SWITCH_TRIGGER phoneId:0, simState:LOADED
06-01 06:19:07.584765 1502 1502 D ImsConfigManager: get MtkImsConfigImpl of phone 0
06-01 06:19:07.603638 1502 1502 D ImsConfigManager: SIM loaded on phone 0 with mcc: 655 mnc: 7
06-01 06:19:07.610780 1502 1502 D ImsConfigManager: check iccid:8986xxxxxx3112345678
06-01 06:19:07.645687 1502 1502 D ImsConfigManager: Set res capability: volte = 1, vilte = 0, wfc = 1
06-01 06:19:07.717272 1502 1502 D ImsConfigManager: DYNAMIC_IMS_SWITCH_COMPLETE phoneId:0, simState:LOADED
以上log只有在開機(jī)或是熱插拔卡等SIM卡信息都讀上來(lái)之后才會(huì)打印。(these log only print when receive SIM state change with SIM loaded state.)
PS: VoWifi = WFC如何通過(guò)log確認(rèn)available config有沒(méi)有配置(how to check if carrier_xxx_available_bool value for some operator烦绳?)
如果貴司版本有使用MtkCarrierConfigManager.java卿捎,就可以忽略這部分available config key的配置。(If your project use MtkCarrierConfigManager.java, please ignore config available config key.)
在AP radio log中搜索"isCarrierConfigSupport"径密,可以看到carrier_xxx_available_bool的支持狀態(tài) (search "ImsConfigManager" in AP radio log, it will indicate VoLTE, ViLTE(vt) and VoWifi(wfc) config status)
//VoLTE config as true
06-05 16:03:34.868076 1780 1920 D MtkImsManager: Volte, isResourceSupport:true, isCarrierConfigSupport:true, isGbaValidSupport:true, isFeatureEnableByPlatformExt:true
//ViLTE config as true
06-05 16:03:34.892714 1806 1806 D MtkImsManager: Vt, isResourceSupport:true, isCarrierConfigSupport:true, isGbaValidSupport:true, isFeatureEnableByPlatformExt:true
//VoWifi config as false
06-05 16:03:34.896064 1780 1920 D MtkImsManager: Wfc, isResourceSupport:false, isCarrierConfigSupport:false, isGbaValidSupport:true, isFeatureEnableByPlatformExt:true-
確認(rèn)開關(guān)狀態(tài)(How to confirm setting enabled or not午阵?)
VoLTE開關(guān)默認(rèn)是打開的。(VoLTE setting default value is true.)
ViLTE開關(guān)默認(rèn)是打開的享扔。(ViLTE setting default value is true.)
VoWIFI開關(guān)默認(rèn)是關(guān)閉的底桂,通過(guò)carrier config carrier_default_wfc_ims_enabled_bool可以定制某些operator默認(rèn)打開。(VoWifi setting default value is false惧眠,if you wang config default value as on for some operator, you can through carrier config carrier_default_wfc_ims_enabled_bool):
For example:
vendor/mediatek/proprietary/packages/apps/CarrierConfig/assets/carrier_config_405861.xml
<boolean name="carrier_default_wfc_ims_enabled_bool" value="true" />ImsManager 和MtkImsManager也會(huì)在radio log打印相關(guān)log來(lái)印證AP層配置和設(shè)置的狀態(tài)籽懦。如果config配置正確,仍然沒(méi)有注冊(cè)锉试,還需要確認(rèn)對(duì)應(yīng)設(shè)置里面的開關(guān)有沒(méi)有打開猫十。(user load需要打開telephony log 才能看到相關(guān)的log。)
//isResourceSupport:true 代表config_device_volte_available已經(jīng)配置成true呆盖,enabled = true代表VoLTE開關(guān)是打開的拖云。如果要注冊(cè)VoLTE,available + enabled都應(yīng)該是true应又。
06-07 13:31:05.055478 1147 1147 D MtkImsManager: Volte, isResourceSupport:true, isCarrierConfigSupport:true, isGbaValidSupport:true, isFeatureEnableByPlatformExt:true
06-07 13:31:05.061109 1147 1147 D ImsManager: updateVolteFeatureValue: available = true, enabled = true, nonTTY = true//isResourceSupport:false 代表config_device_vt_available 沒(méi)有配置成true宙项,enabled = true代表ViLTE開關(guān)是打開的。如果要注冊(cè)ViLTE株扛,available + enabled都應(yīng)該是true尤筐。
06-07 13:31:05.022622 1147 1147 D MtkImsManager: Vt, isResourceSupport:false, isCarrierConfigSupport:true, isGbaValidSupport:true, isFeatureEnableByPlatformExt:true
06-07 13:31:05.033264 1147 1147 D MtkImsManager: updateVideoCallFeatureValue: available = false, enabled = true, nonTTY = true, data enabled = true//isResourceSupport:true代表config_device_wfc_ims_available已經(jīng)配置為true,enabled = false代表WFC開關(guān)是關(guān)閉的洞就。如果要注冊(cè)VoWifi盆繁,available + enabled都應(yīng)該是true。
06-07 13:31:04.966629 1147 1147 D MtkImsManager: Wfc, isResourceSupport:true, isCarrierConfigSupport:true, isGbaValidSupport:true, isFeatureEnableByPlatformExt:true
06-07 13:31:04.979197 1147 1147 D ImsManager: updateWfcFeatureAndProvisionedValues: available = true, enabled = false, mode = 2, roaming = false//isResourceSupport:false代表config_device_wfc_ims_available沒(méi)有配置為true旬蟋,enabled = false代表WFC開關(guān)是關(guān)閉的油昂。如果要注冊(cè)VoWifi,available + enabled都應(yīng)該是true倾贰。
06-07 13:31:05.076595 1147 1147 D MtkImsManager: Wfc, isResourceSupport:false, isCarrierConfigSupport:true, isGbaValidSupport:true, isFeatureEnableByPlatformExt:true
06-07 13:31:05.086758 1147 1147 D ImsManager: updateWfcFeatureAndProvisionedValues: available = false, enabled = false, mode = 2, roaming = false -
How to check if AP set enable ims to modem冕碟?
(1)對(duì)于93平臺(tái),在MTK radio log中搜索"AT+EIMSCFG"匆浙, 這個(gè)AT后面跟著6個(gè)value值(search "AT+EIMSCFG" in radio log for 93 modem安寺,it is followed by 6 values):
volteEnable, vilteEnable, vowifiEnable, viwifiEnable, smsEnable, imsEnable
such as
06-01 06:18:43.997299 943 1000 I AT : [0] AT> AT+EIMSCFG=1,0,1,0,1,1 (RIL_CMD_READER_3, tid:512083367152)
indicate:volte on, vilte off, vowifi on, viwifi off, sms on, ims enabled
Details:AT+EIMSCFG=1(volte on),0(vilte off),1(vowifi on),0(viwifi off),1(sms on),1(ims enabled)(2)對(duì)于 90/91/92平臺(tái),在MTK radio log中搜索 "AT+EIMS"(search "AT+EIMS" in radio log for 90/91/92 modem)首尼;
AT+EIMSVOICE:Voice capability enable or not
AT+EIMSCCP:Video capability enable or not
AT+EIMSWFC:VoWifi enable or not
AT+EIMSSMS:SMS over IMS capability
AT+EIMSVOLTE: VoLTE enable or not
AT+EIMS:enable/disable IMS functionality
(2.1) If you can't see video call button, you can check if AT+EIMSCCP=1 sent in radio log first.
(2.2) If Switch on VoWifi setting, you can see in radio log:
04-11 12:13:54.989483 982 986 D RIL-OEM : data = AT+EIMSWFC=0, length = 12 //Vowifi off
04-11 12:14:25.033981 982 986 D RIL-OEM : data = AT+EIMSWFC=1, length = 12 //Vowifi on
(2.3) WifiOffloadService will transfer all related setting to RDS, these AT is contolled by RDS.
04-11 12:25:40.896286 1684 1684 D WifiOffloadService: notifyMalUserProfile(0): mIsVolteEnabled: true, mIsVilteEnabled: false mIsWfcEnabled: true mFqdn: mIsWifiEnabled: false mHasWiFiDisabledPending: false mWfcMode: 2 mDataRoamingEnabled: 1 mIsAllowTurnOffIms: false -
IMS register status
在MTK radio log中搜索"CIREGU"
// 如果是+CIREGU: 0 代表IMS沒(méi)有注冊(cè)上
09-04 09:37:14.405392 948 967 I AT : [0] AT< +CIREGU: 0 (RIL_URC_READER, tid:503816533232)
// +CIREGU: 1,d代表注冊(cè)上了voice挑庶、Video言秸、sms 三中capability over IMS,
// 第二個(gè)參數(shù)是按bit位代表capability能力的迎捺,0x01代表Voice, 0x04代表SMS井仰,0x08代表video
01-01 08:06:44.224432 4013 4044 I AT : [0] AT< +CIREGU: 1,d (RIL_URC_READER, tid:527043679472)//也可以通過(guò)MTK radio log中搜索"handleFeatureCapabilityChanged"確認(rèn)VoLTE、VoWifi的注冊(cè)狀態(tài)破加,true代表注冊(cè)
08-30 11:27:33.560581 1175 1175 D MtkImsPhoneCallTracker: [MtkImsPhoneCallTracker] handleFeatureCapabilityChanged: VoLTE:false ViLTE:false VoWiFi:false ViWiFi:false UTLTE:false UTWiFi:false isVideoEnabledStateChanged=false
08-30 11:27:33.561725 1175 1175 D MtkImsPhoneCallTracker: [MtkImsPhoneCallTracker] handleFeatureCapabilityChanged: VoLTE:false ViLTE:false VoWiFi:false ViWiFi:false UTLTE:false UTWiFi:false isVideoEnabledStateChanged=false
08-30 11:27:38.815967 1175 1175 D MtkImsPhoneCallTracker: [MtkImsPhoneCallTracker] handleFeatureCapabilityChanged: VoLTE:true ViLTE:true VoWiFi:false ViWiFi:false UTLTE:true UTWiFi:false isVideoEnabledStateChanged=true 如果需要看到全部IMS Framework log俱恶,需要開啟telephony log (open telephony log to obain full IMS Framework log).
[Important] 提交IMS 相關(guān)eService,請(qǐng)務(wù)必打開telephony log
具體enable telephony log開關(guān)方法(open telephony log steps):
1.在撥號(hào)盤輸入##3646633## (Dialer input ##3646633##)范舀;
2.切換到“Log and Debugging”選單合是,找到“Telephony Log Setting”這項(xiàng)點(diǎn)擊進(jìn)入(“Log and Debugging”-> “Telephony Log Setting”);
3.點(diǎn)擊enable锭环,會(huì)有“set succeeded. Please reboot phone”提示彈出(press enable聪全,will notify “set succeeded, Please reboot phone")
4.重啟手機(jī)(reboot phone)
重啟以后log設(shè)定會(huì)一直有效,除非下次更改設(shè)定或恢復(fù)出廠設(shè)置辅辩。(After reboot, This persist config will be enabled unless you reset this setting or do factory reset.)