We have moved to a new Sailfish OS Forum. Please start new discussions there.

Contacts recovery

asked 2017-02-12 11:40:41 +0300

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

updated 2017-02-13 10:51:19 +0300

jiit gravatar image

I hope I'm able to explain the issue with Jolla contacts. After the installation of the last release my Jolla didn't worked anymore and I had to enter in recovery mode and reset the the device to factory state. Before, since I dindn't have a backup, i copied the most important data to the sd card. About the contacts i used the following instruction found on Jolla Zendesk: "If you had not made the backup then try copying your contacts as a database (which implies that you cannot easily use them outside of Jolla but you may be able to restore them back to Jolla later on" Now Jolla comes back to work fine but I'm not able to recovery those contacts; I don't understand the way I've to use. Now I've only the contacts that comes from the sim but I've lost some new that perhaps was stored only on the phone. And, and I don't know why, the sim contacts doesn't appears on whatsapp as name but only as number. Please could someone explain me the way to recover the data stored in the "mycontactsDB" that was created using Jolla instructions ? Thank You!

edit retag flag offensive close delete

4 Answers

Sort by » oldest newest most voted

answered 2017-02-12 12:35:22 +0300

molan gravatar image

updated 2017-02-12 18:43:13 +0300

I hope I understood your question right, if not please let me know.

1) In case you ALREADY reset the device to factory mode, your contacts are lost. What you can do is copy contacts from SIM-card to your device.

  • Open Settings/Apps/People and select "From SIM".
  • In Settings/Android Support/Whatsapp activate "Allow Android apps to access your contacts. If everything went right you should see important contact names (from SIM) in Whatsapp.

2) If you have not yet reset device yet, or (already) manually copied files in recovery mode:

  • Follow explanation here https://jolla.zendesk.com/hc/en-us/articles/202514138 and recover /home/nemo/.local/share/system/privileged/Contacts/qtcontacts-sqlite/ folder. If I understood you right, you already followed these instructions. After resetting device you can put the contacts SQLite database back to the right place & should have your contacts back (maybe needs a reboot, but I don't think so).

For the future I really recommend to buy an microSD card - even if it's a small, cheap one - for backups.

edit flag offensive delete publish link more



This is the wrong place for contacts. Correct is /home/nemo/.local/share/system/privileged/Contacts/qtcontacts-sqlite/

coderus ( 2017-02-12 13:47:10 +0300 )edit

@coderus: Thanks! I changed it. What's the database in the other directory for?

molan ( 2017-02-12 18:42:18 +0300 )edit

answered 2017-02-12 15:59:36 +0300

vm5 gravatar image

Thank You Caprico and Coderus! 🇨🇭 🇷🇺 I know that my English isn't good; before reset the device I copied the contacts to microSD with the following command: "cp -r /myhome/nemo/.local/share/system/privileged/Contacts/qtcontacts-sqlite/ /mysd/MyContactsDB" Now in my sd I've the folder "MyContactsDB" that has inside "contacts.bd and qtcontacts-squlite" I'm so stupid to not have thought to recover the folder to the original position. I'm only afraid to know if the folders aren't changed (as position)in the current release..just because with the file browser utility i cannot open the "privileged" folder. Is it better to use the shell of recovery-mode or try to manage the folder connecting the device to my Debian pc? Excuse me if I bother You ; information technology is not my job :) ; is only a little passion with insufficient results.

edit flag offensive delete publish link more


No problem & btw your English is good :) Have a look at this https://openrepos.net/content/schturman/startasroot-file-browser which will open File Browser as root. With this you should be able to access the privileged folder (you need to install File Browser app first). Just be careful - as always when using root permission.

molan ( 2017-02-12 18:41:49 +0300 )edit

answered 2017-02-12 23:18:58 +0300

vm5 gravatar image

I'm in trouble... I installed Fbroot and i used it to do the follow: The qtcontacts-sqlite in the sd card obtained by the copy(using zendesk istructions ) contains only one file "contacts.db" The qtcontacts-sqlite in the device has three files "contacts.db, contacts.db-shm and contacts.db-va" Then i decided to copy the directory of the device in the sd card and then to delete it from the device and copy here the qtcontacts-sqlite of the sd card. But I lost all the contacts. Well i decided to restore the original directory but surprise! No one contact....... Now I'm tryng to recover the contacts from my sim but the command doesn't go on and freeze..... I think I'm in trouble.....

edit flag offensive delete publish link more


You only need the contacts.db. *.db-shm and *.db-va is automatic created by sailfish. Try to clear the folder and copy the contacts.db again. Is the owner and the rights of *.db the same after copying? If need, use chmod!

chris_bavaria ( 2017-02-12 23:29:33 +0300 )edit

Before and after copy the file remains -rwxr -xr -x. I tried to clear the forder and copy only contacts.db, reboot but the contacts menu is empty. It's strange because the old one (with all my contacts) is 1,63 mb and the new (after the recovery and with less numbers) is 0,8 mb. Then there is something inside, but impossible to read now none of them.

vm5 ( 2017-02-12 23:51:22 +0300 )edit

list my directory /home/nemo/.local/share/system/privileged/Contacts/qtcontacts-sqlite/

 # ls -l 
    total 3804
    -rw-r--r-- 1 nemo privileged 2681856 Feb 12 16:10 contacts.db
    -rw-r--r-- 1 nemo privileged   32768 Feb 12 16:10 contacts.db-shm
    -rw-r--r-- 1 nemo privileged 1174840 Feb 12 16:10 contacts.db-wal
chris_bavaria ( 2017-02-13 00:15:56 +0300 )edit

Thank You Chris, I'll try to change the permissions (I hope I'm able to do it) .

vm5 ( 2017-02-13 09:07:11 +0300 )edit

Changed the permissions in -rw-r--r-- but nothing changed...

vm5 ( 2017-02-13 09:25:10 +0300 )edit

answered 2017-04-28 17:32:04 +0300

jpelfrene gravatar image

updated 2017-04-28 17:37:10 +0300

I have exactly the same problem: after the last update my phone crashed, I saved contacts.db, reset it, try to recover the contacts by copy-pasting contacts.db back to its original place, but... it doesn't work. AND I'm not able to manually add new contacts anymore. Sailfish really got on my nerves today...

EDIT: ok, it's solved after a couple of reboots. Finally got my contacts back and my phone up and working again after about 5hrs of nailbiting. Too bad I lost everything on Whatsapp etc. I'm gonna think twice before updating Sailfish again.

edit flag offensive delete publish link more
Login/Signup to Answer

Question tools



Asked: 2017-02-12 11:40:41 +0300

Seen: 1,087 times

Last updated: Feb 07 '19