Recently I called a landline phone number that was not stored in my contacts.
The phone-app (com.android.dialer v23.0) resolved the areacode of the called number and displays the county of the phone number in the recent caller list.
I would like to ask, how the resolution of the phone numbers work.
Are the numbers resolved locally in the phone or is a remote service used in order to get the county name?
adb logcat did not help me answeing this question.
Please see Dialer (the phone App) - (three dot menu) - Settings - Phone number lookup.
There you can enable and disable different lookups and choose (if there’s a choice) the services delivering the lookup results.
Ah, that’s interesting. These lookup settings are disabled for me, too, and I needed a moment to think of an innocuous landline number I don’t have in my address book and could call for testing.
I can confirm that a lookup is happening based on the area code.
Thanks for the link to the source code repository. I was unable to find a lookup-table within the code. However it looks like the lookup-code is located here.
I had a look at the LineageOS repository of the Dialer, but also found no answer.