Log分析过程如下
16889: 03-08 17:21:40.422744 1652 1684 I AT : [0] AT< +CPIN: READY (RIL_CMD_RT_7, tid:535989173504)
18756: 03-08 17:21:44.421626 1652 1709 I AT : [1] AT< +CPIN: READY (RIL_CMD2_RT_7, tid:535731494144)
此时间点后再没有见到卡槽2相关打印
93657: 03-08 17:49:06.459263 23693 23736 I AT : [0] AT< +CPIN: READY (RIL_CMD_RT_7, tid:534154689792)
继续分析Log发现,ril启动卡槽数从3变成1了
行 42: 03-08 16:44:50.946692 1652 1652 I RILC : FUSION RIL getSimCount: 3
行 90119: 03-08 17:48:55.672768 23693 23693 I RILC : FUSION RIL getSimCount: 1
在Log附近分析发现,上层下发强制设置modem为1个。
03-08 17:48:46.965770 2453 2453 D RadioConfig: [5421]> SWITCH_DUAL_SIM_CONFIG, numOfLiveModems = 1
03-08 17:48:46.977048 2453 2616 D RadioConfigResponse: [5421]< SWITCH_DUAL_SIM_CONFIG
调查发现,用户调用该界面 com.android.phone/com.android.phone.settings.RadioInfo设置相关配置导致了问题
03-08 17:48:47.025233 1762 4973 I WindowManager: DisplayContent w: Window{6b77590 u0 com.android.phone/com.android.phone.settings.RadioInfo} Apply preferredModeId = 2
03-08 17:48:47.069731 1762 4988 I WindowManager: DisplayContent w: Window{6b77590 u0 com.android.phone/com.android.phone.settings.RadioInfo} Apply preferredModeId = 2
此界面为google原生调试界面,拨号盘输入*#*#4636#*#*后可以调出该界面,可以修改手机为单卡还是双卡配置。