现象
最近有客户要求去掉android原生的dialer应用,使用GoogleDialer来代替。
内置后发现,拨打电话后和来电后,通话界面就是不显示出来。
解决
后来发现:需要修改系统的默认的拨号等配置
packages\services\Telecomm\res\values\config.xml
<!-- Determines if the current device should allow emergency numbers to be logged in the
call log. Some carriers require that emergency calls *not* be logged, presumably to
avoid the risk of accidental redialing from the call log UI.
The default is false. -->
<bool name="allow_emergency_numbers_in_call_log">false</bool>
<!-- Determine whether we want to play local DTMF tones in a call, or just let the radio/BP
handle playing of the tones. -->
<bool name="allow_local_dtmf_tones">true</bool>
<!-- Package name for the default in-call UI and dialer [DO NOT TRANSLATE] -->
<string name="ui_default_package" translatable="false">com.google.android.dialer</string>
<!-- Class name for the default in-call UI Service [DO NOT TRANSLATE] -->
<string name="incall_default_class" translatable="false">com.android.incallui.InCallServiceImpl</string>
<!-- Class name for the default main dialer activity [DO NOT TRANSLATE] -->
<string name="dialer_default_class" translatable="false">com.android.dialer.DialtactsActivity</string>
<!-- Flag indicating if the tty is enabled -->
<bool name="tty_enabled">false</bool>