1

I am creating one custom dialer application in AOSP through Android.mk and I have also added following lines in my Android.mk file,

LOCAL_MODULE_NAME := MyDialer LOCAL_OVERRIDES_PACKAGES :- Dialer

and building custom dialer application through this, but when I boot for the first time in settings application MyDialer is not selected by default, it will be none first then after user selects MyDialer manually then it will work, How should we set MyDialer as default dialer in system at the build time itself and avoid manual selection?

2 Answers2

0

You have to ask in your application on first run to make it default app.

Check Answer Here

Replacing default Phone app on Android 6 and 7 with InCallService

enter image description here

0

There is a config.xml file in the Android build system for default dialer: packages/services/Telecomm/res/values/config.xml. Pls try to modify below items to point to your own dialer application:

<!-- 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>
TuanPM
  • 685
  • 8
  • 29
  • I have tried this solution for aosp android-11 for google pixel 4xl (coral) device but it's not working. There is no error but the default dialer app were not set. Thanks in advance. – Krunal Indrodiya Apr 07 '22 at 11:50
  • Here is the update answer for the same question. - https://stackoverflow.com/a/72007752/2079023 – Krunal Indrodiya Apr 26 '22 at 10:33