This tutorial http://docs.ubports.com/en/latest/userguide/advanceduse/dav.html dont work for me UT 16.04 (OTA12) with Nexus5. (template and config missing)
I follow this tutorial https://help.ubuntu.com/community/SyncEvolution/synchronize-google-contacts-with-evolution-addressbooks and made some adjustments.
I do it without a script an run the commands in descending order in the adb shell:
(customize username, Password and url)
`#config=next-conf
#datastore=next-datastore
#0. create database
syncevolution --create-database backend=evolution-contacts database=NextContacts
#1. create peer
syncevolution --configure --template webdav username=John password=johnssecret keyring=no target-config@next-conf
#2. create new datastore
syncevolution --configure backend=evolution-contacts database=NextContacts @default next-datastore
#3. Add a remote database to the datastore
syncevolution --configure database= https://domain.com/remote.php/dav/addressbooks/users/john/contacts/ backend=carddav target-config@next-conf next-datastore
#4. Connect remote Contacts with the local Database
syncevolution --configure --template SyncEvolution_Client syncURL=local://@next-conf username=john password=johnssecret next-conf next-datastore
#5. Add a local database to the datastore
syncevolution --configure sync=two-way backend=evolution-contacts database=NextContacts next-conf next-datastore
#6 first time syncing
syncevolution --sync refresh-from-remote next-conf next-datastore`
Would be nice if contacts will be sometimes also easy to connect with nextcloud like the calendar.