DavDroid not starting to sync on my Samsung S9



  • Hi guys,

    I'm trying to get DavDroid to work. It was working fine on my old S4, but it doesn't work on my S9.
    Creating a profile, connecting to the server and getting calendars and address books works. But when I click on the synchronize button at the top, it just says "Synchronization started", but nothing happens. The message disappears after a few seconds

    Here is the log file, where I also don't see anything happening:

    2018-10-11 16:05:06 2 [settings.Settings] Looking up setting time_nextDonationPopup
    2018-10-11 16:05:06 2 [settings.Settings] DefaultsProvider: value = null, continue: true
    2018-10-11 16:05:06 2 [settings.Settings] SharedPreferencesProvider: value = 1541614882271, continue: true
    2018-10-11 16:05:06 2 [settings.Settings] Looked up setting time_nextDonationPopup -> 1541614882271
    2018-10-11 16:05:06 2 [settings.Settings] Looking up setting hint_BatteryOptimizations
    2018-10-11 16:05:06 2 [settings.Settings] DefaultsProvider: value = null, continue: true
    2018-10-11 16:05:06 2 [settings.Settings] SharedPreferencesProvider: value = null, continue: true
    2018-10-11 16:05:06 2 [settings.Settings] Looked up setting hint_BatteryOptimizations -> null
    2018-10-11 16:05:06 2 [settings.Settings] Looking up setting hint_OpenTasksNotInstalled
    2018-10-11 16:05:06 2 [settings.Settings] DefaultsProvider: value = null, continue: true
    2018-10-11 16:05:06 2 [settings.Settings] SharedPreferencesProvider: value = false, continue: true
    2018-10-11 16:05:06 2 [settings.Settings] Looked up setting hint_OpenTasksNotInstalled -> false
    2018-10-11 16:05:16 2 [settings.Settings] Looking up setting time_nextDonationPopup
    2018-10-11 16:05:16 2 [settings.Settings] DefaultsProvider: value = null, continue: true
    2018-10-11 16:05:16 2 [settings.Settings] SharedPreferencesProvider: value = 1541614882271, continue: true
    2018-10-11 16:05:16 2 [settings.Settings] Looked up setting time_nextDonationPopup -> 1541614882271
    2018-10-11 16:05:16 2 [settings.Settings] Looking up setting hint_BatteryOptimizations
    2018-10-11 16:05:16 2 [settings.Settings] DefaultsProvider: value = null, continue: true
    2018-10-11 16:05:16 2 [settings.Settings] SharedPreferencesProvider: value = null, continue: true
    2018-10-11 16:05:16 2 [settings.Settings] Looked up setting hint_BatteryOptimizations -> null
    2018-10-11 16:05:16 2 [settings.Settings] Looking up setting hint_OpenTasksNotInstalled
    2018-10-11 16:05:16 2 [settings.Settings] DefaultsProvider: value = null, continue: true
    2018-10-11 16:05:16 2 [settings.Settings] SharedPreferencesProvider: value = false, continue: true
    2018-10-11 16:05:16 2 [settings.Settings] Looked up setting hint_OpenTasksNotInstalled -> false
    2018-10-11 16:05:20 2 [settings.Settings] Looking up setting override_proxy
    2018-10-11 16:05:20 2 [settings.Settings] DefaultsProvider: value = false, continue: true
    2018-10-11 16:05:20 2 [settings.Settings] SharedPreferencesProvider: value = false, continue: true
    2018-10-11 16:05:20 2 [settings.Settings] Looked up setting override_proxy -> false
    2018-10-11 16:05:20 2 [settings.Settings] Looking up setting override_proxy_host
    2018-10-11 16:05:20 2 [settings.Settings] DefaultsProvider: value = localhost, continue: true
    2018-10-11 16:05:20 2 [settings.Settings] SharedPreferencesProvider: value = localhost, continue: true
    2018-10-11 16:05:20 2 [settings.Settings] Looked up setting override_proxy_host -> localhost
    2018-10-11 16:05:20 2 [settings.Settings] Looking up setting override_proxy_port
    2018-10-11 16:05:20 2 [settings.Settings] DefaultsProvider: value = 8118, continue: true
    2018-10-11 16:05:20 2 [settings.Settings] SharedPreferencesProvider: value = 8118, continue: true
    2018-10-11 16:05:20 2 [settings.Settings] Looked up setting override_proxy_port -> 8118
    2018-10-11 16:05:20 2 [settings.Settings] Looking up setting distrust_system_certs
    2018-10-11 16:05:20 2 [settings.Settings] DefaultsProvider: value = false, continue: true
    2018-10-11 16:05:20 2 [settings.Settings] SharedPreferencesProvider: value = false, continue: true
    2018-10-11 16:05:20 2 [settings.Settings] Looked up setting distrust_system_certs -> false
    2018-10-11 16:05:21 2 [log.Logger] Verbose logging: true; to file: true
    

    Do you have any idea what the problem could be? I already deactivated any battery optimization for the app.

    Thanks!


  • developer

    Hello,

    Please provide the DAVdroid debug info (DAVdroid / Settings / Debug info) as described in [READ BEFORE POSTING] What's required to diagnose a problem.



  • Sorry, forgot that. Here is the debug info:

    --- BEGIN DEBUG INFO ---
    
    SOFTWARE INFORMATION
    Package: at.bitfire.davdroid
    Version: 2.0.4-ose (245) from 10.09.2018
    Installed from: com.google.android.packageinstaller
    JB Workaround installed: no
    
    CONNECTIVITY (at the moment)
    Active connection: WiFi, CONNECTED
    
    CONFIGURATION
    Power saving disabled: yes
    android.permission.READ_CONTACTS permission: granted
    android.permission.WRITE_CONTACTS permission: granted
    android.permission.READ_CALENDAR permission: granted
    android.permission.WRITE_CALENDAR permission: granted
    org.dmfs.permission.READ_TASKS permission: denied
    org.dmfs.permission.WRITE_TASKS permission: denied
    System-wide synchronization: automatically
    Account: Nextcloud
      Address book sync. interval: 240 min
      Calendar     sync. interval: 240 min
      OpenTasks    sync. interval: —
      WiFi only: false
      [CardDAV] Contact group method: GROUP_VCARDS
      [CalDAV] Time range (past days): 90
               Manage calendar colors: true
    
    SQLITE DUMP
    android_metadata
    	|  locale |
    	|  de_DE |
    ----------
    services
    	|  _id | accountName | service | principal |
    	|  1 | Nextcloud | carddav | https://cloud.example.com/remote.php/dav/principals/users/dk/ |
    	|  2 | Nextcloud | caldav | https://cloud.example.com/remote.php/dav/principals/users/dk/ |
    ----------
    sqlite_sequence
    	|  name | seq |
    	|  services | 2 |
    	|  homesets | 2 |
    	|  collections | 3 |
    ----------
    homesets
    	|  _id | serviceID | url |
    	|  1 | 1 | https://cloud.example.com/remote.php/dav/addressbooks/users/dk/ |
    	|  2 | 2 | https://cloud.example.com/remote.php/dav/calendars/dk/ |
    ----------
    collections
    	|  _id | serviceID | type | url | privWriteContent | privUnbind | forceReadOnly | displayName | description | color | timezone | supportsVEVENT | supportsVTODO | source | sync |
    	|  1 | 1 | ADDRESS_BOOK | https://cloud.example.com/remote.php/dav/addressbooks/users/dk/contacts/ | 1 | 1 | 0 | Kontakte | <null> | <null> | <null> | 0 | 0 | <null> | 1 |
    	|  2 | 2 | CALENDAR | https://cloud.example.com/remote.php/dav/calendars/dk/personal/ | 1 | 1 | 0 | Persönlich | <null> | <null> | <null> | 1 | 1 | <null> | 1 |
    	|  3 | 2 | CALENDAR | https://cloud.example.com/remote.php/dav/calendars/dk/contact_birthdays/ | 0 | 0 | 0 | Geburtstage von Kontakten | <null> | -54 | <null> | 1 | 1 | <null> | 0 |
    ----------
    
    SYSTEM INFORMATION
    Android version: 8.0.0 (SoLdieR9312s G96XBRI3 ROM || 8.3)
    Device: samsung SM-G960F (starlte)
    
    --- END DEBUG INFO ---
    

  • developer

    Thanks. Ok, no Lineage…

    Don't have an idea then. Do you know how to use logcat? In this case, you could view the system log when you initiate the synchronization; maybe there are hints why the system actually doesn't start it.



  • Hi,
    thanks for the quick response.

    I'll give it a try!


  • admin

    I think that there is a problem with the Custom ROM you're running...

    Just looked it up in our statistics: we currently have more than 1000 daily active users running DAVdroid on a Galaxy S9 with the Samsung stock ROM. Only 5* ratings from them, so I think it is at least not a common problem with the S9 itself...



  • Hi,

    does DavDroid need any Google (or Samsung) Apps to be available/installed? The custom ROM is the stock ROM with a lot of stock apps removed (all samsung apps and nearly all google apps).

    Thanks!


  • developer

    @deekay No, it does not need any apps (except the system apps Calendar and Contact Storage, but those should be available on any Android system).

    Maybe there are some other "features" in this ROM, for instance a startup permission like here: https://www.davdroid.com/faq/synchronization-is-not-run-as-expected/?