Rebuild contacts and commhistory from contacts.db and commhistory.db

A missing step is updating Sailfish to the version you had before resetting.

Phonehook can read call history but not contacts after they were moved to privileged (and can’t read copies or symlinks from the old location).

@Ahtisilli ,
you seem to be giving an important hint.
If phonehook cannot read contacts after they were moved to privileged, that means privileged folder is not normal location.
What is the normal location for phonehook ?

I booted the Jolla 1, copied
~/.local/share/system/Contacts
from 2019 to this XA2, and Phonehook can read them!

Differences in Contacts (and avatars) between Sailfish 3.4 and 4.x:

  • location: moved to privileged sub-directory

  • ownership: nemo:privileged to privileged:privileged

  • some changes in the file (Phonehook can’t read a copy of a new Contacts.db but can read one from a Jolla 1 in the same directory)

Why is my privileged folder emtpy on 4.5?