场测反馈77号码开头的电话号码屏蔽后,来电可以屏蔽,但是短信无法屏蔽
//Blocker is close
行 2689: 05-19 12:12:36.477096 2348 2348 I TelecomFramework: TelephonyConnectionService: onCallFilteringCompleted(TC@3_1, CallFilteringCompletionInfo{mIsBlocked=false, mIsInContacts=false, mCallResponse=null, mCallScreeningPackageName='null'}): CS.oCFC->H.CS.oCFC@AAA
//Blocker is open
行 5598: 05-19 12:16:46.844585 2348 2348 I TelecomFramework: TelephonyConnectionService: onCallFilteringCompleted(TC@4_1, CallFilteringCompletionInfo{mIsBlocked=true, mIsInContacts=false, mCallResponse=null, mCallScreeningPackageName='null'}): CS.oCFC->H.CS.oCFC@AAM
There is no new message arrive from network
//Blocker is close
行 5848: 05-19 12:17:15.016024 2348 2348 I TelecomFramework: TelephonyConnectionService: onCallFilteringCompleted(TC@5_1, CallFilteringCompletionInfo{mIsBlocked=false, mIsInContacts=false, mCallResponse=null, mCallScreeningPackageName='null'}): CS.oCFC->H.CS.oCFC@AAU
行 8047: 05-19 12:17:43.096165 2348 2710 D MtkGsmInboundSmsHandler-0: DeliveringState.processMessage: processing EVENT_NEW_SMS
行 8259: 05-19 12:17:57.491019 2348 2710 D MtkGsmInboundSmsHandler-0: DeliveringState.processMessage: processing EVENT_NEW_SM
抓取的Log也看不数相关信息,决定本地实验下。
发现添加号码时,block db不同号码更新不一样
12345678 --- 不会自动添加国家码
181******** --- 正常号码添加国家码
那看下空口是否有区别
通话号码
收短信号码
添加国家码227了
区别在于添加国家吗出现问题了,添加Block号码时,这个使用PhoneNumberUtils的formatNumber出现问题
解决方案,更新google最新libphonenumber号码表