[GH-ISSUE #112] Restored call-logs all show as "unknown" (HTC Sense) #94

Closed
opened 2026-02-26 00:36:14 +03:00 by kerem · 18 comments
Owner

Originally created by @heval-zz on GitHub (Jan 13, 2011).
Original GitHub issue: https://github.com/jberkel/sms-backup-plus/issues/112

Hi,
I just used the restore call-log feature of your really awesome app.
Unfortunately, all the restored call-log entries now show up as "unknown" ("unbekannt" in german), while the number is displayed under "unknown". Even though I know most of those people and also have their numbers stored on my phone (google contacts).
Would be great if the restored call-log does not only show the number, but also the name of the person I called.

Thanks, and keep up the good work!
Heval

Originally created by @heval-zz on GitHub (Jan 13, 2011). Original GitHub issue: https://github.com/jberkel/sms-backup-plus/issues/112 Hi, I just used the restore call-log feature of your really awesome app. Unfortunately, all the restored call-log entries now show up as "unknown" ("unbekannt" in german), while the number is displayed under "unknown". Even though I know most of those people and also have their numbers stored on my phone (google contacts). Would be great if the restored call-log does not only show the number, but also the name of the person I called. Thanks, and keep up the good work! Heval
kerem closed this issue 2026-02-26 00:36:14 +03:00
Author
Owner

@jberkel commented on GitHub (Jan 13, 2011):

i think they should get automatically resolved by the phone, at least that's what happened when i tried it out in the emulator (android 2.2).

what verison of android are you on?

<!-- gh-comment-id:674535 --> @jberkel commented on GitHub (Jan 13, 2011): i think they should get automatically resolved by the phone, at least that's what happened when i tried it out in the emulator (android 2.2). what verison of android are you on?
Author
Owner

@heval-zz commented on GitHub (Jan 13, 2011):

I'm using 2.2.
So I should just wait a while, is that what you're saying?
I just rebooted the phone, thought it might help, but still no names showing up.
It DOES show names of contacts stored on the SIM-card (such as mailbox, service provider). But not for my google-contacts.

<!-- gh-comment-id:674551 --> @heval-zz commented on GitHub (Jan 13, 2011): I'm using 2.2. So I should just wait a while, is that what you're saying? I just rebooted the phone, thought it might help, but still no names showing up. It DOES show names of contacts stored on the SIM-card (such as mailbox, service provider). But not for my google-contacts.
Author
Owner

@jberkel commented on GitHub (Jan 13, 2011):

ok, that looks like it needs to do a contact lookup always then. will work on a fix.

<!-- gh-comment-id:674562 --> @jberkel commented on GitHub (Jan 13, 2011): ok, that looks like it needs to do a contact lookup always then. will work on a fix.
Author
Owner

@heval-zz commented on GitHub (Jan 13, 2011):

Thanks! I will be waiting for it!

<!-- gh-comment-id:674564 --> @heval-zz commented on GitHub (Jan 13, 2011): Thanks! I will be waiting for it!
Author
Owner

@jberkel commented on GitHub (Jan 13, 2011):

could you try this version and see if it helps?
https://github.com/jberkel/sms-backup-plus/sms-backup-plus-v1.4.1.rc1.apk/qr_code

<!-- gh-comment-id:676370 --> @jberkel commented on GitHub (Jan 13, 2011): could you try this version and see if it helps? https://github.com/jberkel/sms-backup-plus/sms-backup-plus-v1.4.1.rc1.apk/qr_code
Author
Owner

@heval-zz commented on GitHub (Jan 14, 2011):

It didn't work, unfortunately. But I didn't delete the current call-log. Do I have to?

<!-- gh-comment-id:676525 --> @heval-zz commented on GitHub (Jan 14, 2011): It didn't work, unfortunately. But I didn't delete the current call-log. Do I have to?
Author
Owner

@heval-zz commented on GitHub (Jan 14, 2011):

Ok, now I deleted my current log, but it still didn't work.

<!-- gh-comment-id:676594 --> @heval-zz commented on GitHub (Jan 14, 2011): Ok, now I deleted my current log, but it still didn't work.
Author
Owner

@sandopolus commented on GitHub (Jan 28, 2011):

I have found this as well on my HTC Desire (Android 2.2)

Also found that if when in the restored call log.
If i held on one of the call log numbers and selected Save to People > Google (Contacts) and then selected save it would then link all logs for that number back to the actual contact and not add anything new into my contacts if the number was already present.
So does just look like some sort of linking issue.

<!-- gh-comment-id:717692 --> @sandopolus commented on GitHub (Jan 28, 2011): I have found this as well on my HTC Desire (Android 2.2) Also found that if when in the restored call log. If i held on one of the call log numbers and selected Save to People > Google (Contacts) and then selected save it would then link all logs for that number back to the actual contact and not add anything new into my contacts if the number was already present. So does just look like some sort of linking issue.
Author
Owner

@jberkel commented on GitHub (Jan 29, 2011):

does this still happen on 1.4.1 ? i can't reproduce. are you restoring to a new phone?

<!-- gh-comment-id:720618 --> @jberkel commented on GitHub (Jan 29, 2011): does this still happen on 1.4.1 ? i can't reproduce. are you restoring to a new phone?
Author
Owner

@sandopolus commented on GitHub (Jan 29, 2011):

I upgraded to 1.4.1 this morning and did a delete of my call log and restored it. They are still coming up as unknown and I am using the same phone.
My last comment about saving the number to contacts was slightly wrong. It did add a new contact but my desire linked it up to the existing gmail contact with the same number. Didn't realise till I looked at my contacts in gmail.

If I remember correctly I think my voicemail log got restored correctly as I am sure it said Voicemail instead of Unknown. I am going double check this and will update.

I have also pulled the source to my work pc so I will try and have a play around with this area to see if I can work out what's going wrong next week if it isn't solved

<!-- gh-comment-id:720677 --> @sandopolus commented on GitHub (Jan 29, 2011): I upgraded to 1.4.1 this morning and did a delete of my call log and restored it. They are still coming up as unknown and I am using the same phone. My last comment about saving the number to contacts was slightly wrong. It did add a new contact but my desire linked it up to the existing gmail contact with the same number. Didn't realise till I looked at my contacts in gmail. If I remember correctly I think my voicemail log got restored correctly as I am sure it said Voicemail instead of Unknown. I am going double check this and will update. I have also pulled the source to my work pc so I will try and have a play around with this area to see if I can work out what's going wrong next week if it isn't solved
Author
Owner

@sandopolus commented on GitHub (Jan 29, 2011):

Ok my call log to voicemail was restored with it being labelled as Voicemail and not unknown. So something is working for that number compared to all the others.

<!-- gh-comment-id:720697 --> @sandopolus commented on GitHub (Jan 29, 2011): Ok my call log to voicemail was restored with it being labelled as Voicemail and not unknown. So something is working for that number compared to all the others.
Author
Owner

@sandopolus commented on GitHub (Jan 29, 2011):

Also just tried to create a phone based contact instead of my usual gmail ones. But the call log for that doesn't restore correctly either.

<!-- gh-comment-id:720706 --> @sandopolus commented on GitHub (Jan 29, 2011): Also just tried to create a phone based contact instead of my usual gmail ones. But the call log for that doesn't restore correctly either.
Author
Owner

@jberkel commented on GitHub (Jan 29, 2011):

the problem is that the writing to call logs is not part of the public API, so it might be different across devices. My guess is that something is slightly different on your phone / version of android.

on my nexus one all restored entries get automatically linked up.
check the comments on this page: http://android.riteshsahu.com/apps/call-logs-backup-restore , it looks like it's a problem with HTC Sense:

"Q: I have just installed and used Call logs B&R, the backup worked but now all
the numbers have ‘unknown’ written on top in the call log although they all are 
in my contact list. How could I change that and have the names back ?"

"A: That’s a problem in some HTC Sense phones and unfortunately I don’t 
have a solution for this problem yet."
<!-- gh-comment-id:720716 --> @jberkel commented on GitHub (Jan 29, 2011): the problem is that the writing to call logs is not part of the public API, so it might be different across devices. My guess is that something is slightly different on your phone / version of android. on my nexus one all restored entries get automatically linked up. check the comments on this page: http://android.riteshsahu.com/apps/call-logs-backup-restore , it looks like it's a problem with HTC Sense: ``` "Q: I have just installed and used Call logs B&R, the backup worked but now all the numbers have ‘unknown’ written on top in the call log although they all are in my contact list. How could I change that and have the names back ?" "A: That’s a problem in some HTC Sense phones and unfortunately I don’t have a solution for this problem yet." ```
Author
Owner

@PaulEvo commented on GitHub (Feb 4, 2011):

There are two workarounds that seem to work. If you are using gmail, delete the g-mail account and then add the account. If all of the contacts are Gmail contacts, the call log repopulated. The drawback, of course, is that if the gmail account is the one used in the original setup to access the market, etc., a factory reset is required so this isn't a great option as all customization options will be lost.

The second one that seems to work is to use the people app to export all contacts. Then,
import the contacts to "phone." Then, in the people menu, select "view" and unselect "phone". This worked for me because all of my contacts are in Gmail contacts. While it created duplicates, those duplicates can be filtered from view. One thing that I tried to get rid of the duplicate contacts was to "view" only the "phone" contacts, and then delete them. I thought by doing so, I'd be left with just the Gmail contacts and an intact call log with the names because when a "phone" contact is deleted, if there's a Gmail contact of the same name, the call log will still display the name. However, some of the Gmail contacts my Gmail were deleted by doing this. Maybe it's the "link" feature. I hope someone who knows more about the inner workings can use this anecdotal experience to find figure out a programatical fix.

<!-- gh-comment-id:739528 --> @PaulEvo commented on GitHub (Feb 4, 2011): There are two workarounds that seem to work. If you are using gmail, delete the g-mail account and then add the account. If all of the contacts are Gmail contacts, the call log repopulated. The drawback, of course, is that if the gmail account is the one used in the original setup to access the market, etc., a factory reset is required so this isn't a great option as all customization options will be lost. The second one that seems to work is to use the people app to export all contacts. Then, import the contacts to "phone." Then, in the people menu, select "view" and unselect "phone". This worked for me because all of my contacts are in Gmail contacts. While it created duplicates, those duplicates can be filtered from view. One thing that I tried to get rid of the duplicate contacts was to "view" only the "phone" contacts, and then delete them. I thought by doing so, I'd be left with just the Gmail contacts and an intact call log with the names because when a "phone" contact is deleted, if there's a Gmail contact of the same name, the call log will still display the name. However, some of the Gmail contacts my Gmail were deleted by doing this. Maybe it's the "link" feature. I hope someone who knows more about the inner workings can use this anecdotal experience to find figure out a programatical fix.
Author
Owner

@heval-zz commented on GitHub (Feb 5, 2011):

Ok, so on my phone, after a week or more, all the names suddenly showed up again in my call-log. I am using the version you sent me on January 14th.

<!-- gh-comment-id:741553 --> @heval-zz commented on GitHub (Feb 5, 2011): Ok, so on my phone, after a week or more, all the names suddenly showed up again in my call-log. I am using the version you sent me on January 14th.
Author
Owner

@ankanbanerjee commented on GitHub (Nov 7, 2011):

This issue still exists with HTC Sense. I found a workaround which I am happy with when I flash a new ROM:

Before you setup your the phone with a Google Account, restore the call log and SMSs with SMS Backup+ (I keep the apk file downloaded so I don't need to setup Market either). Once the restore is complete, if you link the phone to the Google account, both the SMSs and the Call log show the contact links perfectly.

<!-- gh-comment-id:2649860 --> @ankanbanerjee commented on GitHub (Nov 7, 2011): This issue still exists with HTC Sense. I found a workaround which I am happy with when I flash a new ROM: Before you setup your the phone with a Google Account, restore the call log and SMSs with SMS Backup+ (I keep the apk file downloaded so I don't need to setup Market either). Once the restore is complete, if you link the phone to the Google account, both the SMSs and the Call log show the contact links perfectly.
Author
Owner

@ImbellicusAnimo commented on GitHub (Nov 17, 2011):

Just for your information: I've got the same issue in my app. I can set all data (number, date, label, type, duration) but the name isn't set with the insert or update in Calllog.Calls. This problem only exists on HTC devices.

<!-- gh-comment-id:2777947 --> @ImbellicusAnimo commented on GitHub (Nov 17, 2011): Just for your information: I've got the same issue in my app. I can set all data (number, date, label, type, duration) but the name isn't set with the insert or update in Calllog.Calls. This problem only exists on HTC devices.
Author
Owner

@eagletracker1 commented on GitHub (Dec 19, 2017):

I just had this same problem on an HTC One M8. The way I fixed it was to go into People and then click on the Phonebook drop down on the top left. It says to show contacts from......... After a factory reset, only phone is checked so you have to check google contacts.....or messenger, etc.....whatever you use. Suddenly all the unknowns were changed.

<!-- gh-comment-id:352807354 --> @eagletracker1 commented on GitHub (Dec 19, 2017): I just had this same problem on an HTC One M8. The way I fixed it was to go into People and then click on the Phonebook drop down on the top left. It says to show contacts from......... After a factory reset, only phone is checked so you have to check google contacts.....or messenger, etc.....whatever you use. Suddenly all the unknowns were changed.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/sms-backup-plus-jberkel#94
No description provided.