'How to change default dialer application in AOSP?
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?
Solution 1:[1]
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
Solution 2:[2]
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>
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | |
| Solution 2 | TuanPM |

