How do I sync Google contacts?
I have flashed a phone with Ubuntu for Phones and would like to get my contacts from Google onto the device. How do I do that?
Solution 1:
You can now simply flip a switch in System Settings -> Accounts for any of your google accounts and it will take care of syncing your contacts (and calendar) for you.
Solution 2:
Because of bug https://bugs.launchpad.net/ubuntu/+source/syncevolution/+bug/1290559, you now need to force keyring=no when calling syncevolution.
This is how I imported my google contacts with image 229:
syncevolution --configure --keyring=no --template SyncEvolution backend=carddav syncURL=https://www.googleapis.com/.well-known/carddav username=<your google email> password=<your gmail password> consumerReady=0 target-config@google addressbook
syncevolution --configure --template "SyncEvolution Client" syncURL=local://@google consumerReady=1 username= password= google-contacts addressbook
syncevolution --sync slow google-contacts
You can also call syncevolution --sync two-way google-contacts
for periodical sync.