Android9修改默认电话应用为自己的APP

修改/packages/services/Telecomm/res/values/config.xml中

    <!-- Package name for the default in-call UI and dialer [DO NOT TRANSLATE] -->
    <string name="ui_default_package" translatable="false">com.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>

将ui_default_package修改为自己的包名
将incall_default_class修改为自己的服务类
将dialer_default_class修改为自己的服务类