Skip to content

How to get app name of default dialler running on my phone. #9987

Closed Locked Answered by agnostic-apollo
sumithemmadi asked this question in Q&A
Discussion options

You must be logged in to vote

For android >= 10, grant termux DUMP permission with adb shell pm grant com.termux android.permission.DUMP and then run /system/bin/dumpsys role | grep -A 1 android.app.role.DIALER | grep holders= | sed -E 's/[ \t]+holders=(.*)/\1/'

You may get an array if more than one app assigned the role.

For android < 10 you can run cmd package resolve-activity tel://123456 with adb or root.

https://android.stackexchange.com/questions/227155/retrieve-list-of-default-apps-via-adb

https://cs.android.com/android/platform/superproject/+/android-12.0.0_r32:packages/modules/Permission/service/java/com/android/role/RoleService.java;l=735

https://cs.android.com/android/platform/superproject/+/android-12.0.0_…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@sumithemmadi
Comment options

@agnostic-apollo
Comment options

Answer selected by sumithemmadi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants