0

I am working on custom ROM and there is requirement for implementing a custom dialer application. The dialer is working fine but only things is pending that to make default one.

I have added folder in package directory with Android.mk and dialer.apk file (I have not added source code). My custom dialer application install as system application and all system level permission as well.

I have tried couple of solution to archive this but not getting success on this. i.e. link1, link2.

Also added LOCAL_OVERRIDES_PACKAGES field/flag in my Android.mk and on this the aosp dialer application not install but my dialer application is not set as defaut.

Once I have set as default dialer application everything are working fine.

Can anyone help me on this to set custom dialer application (.apk) as a default dialer application in aosp. Or there issue as i have not added source code instead of that I have added only .apk file.

I am using Android-11 source code.

TylerH
  • 20,799
  • 66
  • 75
  • 101
Krunal Indrodiya
  • 782
  • 2
  • 7
  • 19

1 Answers1

2

The query logic has changed and it's in packages/services/Telecomm/src/com/android/server/telecom/DefaultDialerCache.java

Resources resources = mContext.getResources();
mSystemDialerComponentName = new ComponentName(resources.getString(
    com.android.internal.R.string.config_defaultDialer),
    resources.getString(R.string.incall_default_class));

You should modify or overlay

  1. config_defaultDialer in frameworks/base/core/res/res/values/config.xml
  2. incall_default_class in packages/services/Telecomm/res/values/config.xml
  3. dialer_default_class in packages/services/Telecomm/res/values/config.xml
Yong
  • 1,529
  • 12
  • 21
  • Thanks @Yong it's help me. After success installing OS my custom dialer become default one. But now i am facing another issue when i dial number using dialpad then OS displaying "Complete action using" dialog with two options, 1 is my custom dialer app and other one is Call Management. the action work same on both option. Can you please help me to remove this dialog. Thanks in advance. – Krunal Indrodiya Apr 26 '22 at 08:55
  • 1
    overlay dialer_default_class in packages/services/Telecomm/res/values/config.xml – Yong Apr 26 '22 at 09:41