param call The missed call.
*/
@Override
public void showMissedCallNotification(Call call) {
////2018-10-10 cczheng hide missed call notification [S]
if (true) {
android.util.Log.i("misscall", "showMissedCallNotification......");
return;
}
///2018-10-10 cczheng hide missed call notification [E]
mMissedCallCount++;
final int titleResId;
final String expandedText; // The text in the notification's line 1 and 2.
....
}
ok,这样我们就搞定了来电功能。
三、隐藏短信应用和电话应用在launcher中显示(去除AndroidManifest中的category)
<category android:name="android.intent.category.LAUNCHER" />
四、总结
Android源码修改没有大家想象的那么难,毕竟Google工程师都已经给我们标注了详细的注释说明,只是框架和封装的思路难以理解,这就考验我们的耐心了,Log是个好东西,多加日志,多分析,这样很容易上手。