Android One 8.1 doesn't sync calendar



  • I have a Baikal server to sync my calendar. Now I got a new phone and the app I was using to synchronise is no longer compatible.
    So I wanted to use DAVdroid.
    Setting it up worked very well. It found my calendars. But it won't synchronise. When I open the Android settings and start the sync manually there is no error message shown but no timestamp of last sync either.

    I already tried many things I found in this forum like deactivating battery saver or reinstalling the app but nothing worked.

    I'm using an Infinix Note 5 with Android one (8.1).

    Debug info:
    have a Baikal server to sync my calendar. Now I got a new phone and the app I was using to synchronise is no longer compatible.
    So I wanted to use DAVdroid.
    Setting it up worked very well. It found my calendars. But it won't synchronise. When I open the Android settings and start the sync manually there is no error message shown but no timestamp of last sync either.

    I already tried many things I found in this forum like deactivating battery saver or reinstalling the app but nothing worked.

    I'm using an Infinix Note 5 with Android one (8.1).

    Debug info:
    https://pastecode.xyz/view/3b2f295d


  • developer

    Hello,

    Maybe there are some Infinix-specific settings which block DAVdroid? Maybe you can browse through your Android settings and look for suspicious entries …



  • @rfc2822 Thanks for your answer! I already did that a couple of times and set everything possible. But it's still not working.


  • developer

    @patricke Maybe it's possible to ask in Infinix forums or contact support?



  • Hi,
    I have a very similar situation with a brand new moto g6 and android 8.0.
    Here is more debug info:
    2018-09-19 19:50:00 2 [settings.Settings] Looking up setting time_nextDonationPopup
    2018-09-19 19:50:00 2 [settings.Settings] DefaultsProvider: value = null, continue: true
    2018-09-19 19:50:00 2 [settings.Settings] SharedPreferencesProvider: value = 1538282928051, continue: true
    2018-09-19 19:50:00 2 [settings.Settings] Looked up setting time_nextDonationPopup -> 1538282928051
    2018-09-19 19:50:00 2 [settings.Settings] Looking up setting hint_BatteryOptimizations
    2018-09-19 19:50:00 2 [settings.Settings] DefaultsProvider: value = null, continue: true
    2018-09-19 19:50:00 2 [settings.Settings] SharedPreferencesProvider: value = null, continue: true
    2018-09-19 19:50:00 2 [settings.Settings] Looked up setting hint_BatteryOptimizations -> null
    2018-09-19 19:50:07 2 [settings.Settings] Shutting down Settings service
    2018-09-19 19:50:07 2 [settings.Settings] Initializing Settings service
    2018-09-19 19:50:07 2 [settings.Settings] Looking up setting time_nextDonationPopup
    2018-09-19 19:50:07 2 [settings.Settings] DefaultsProvider: value = null, continue: true
    2018-09-19 19:50:07 2 [settings.Settings] SharedPreferencesProvider: value = 1538282928051, continue: true
    2018-09-19 19:50:07 2 [settings.Settings] Looked up setting time_nextDonationPopup -> 1538282928051
    2018-09-19 19:50:07 2 [settings.Settings] Looking up setting hint_BatteryOptimizations
    2018-09-19 19:50:07 2 [settings.Settings] DefaultsProvider: value = null, continue: true
    2018-09-19 19:50:07 2 [settings.Settings] SharedPreferencesProvider: value = null, continue: true
    2018-09-19 19:50:07 2 [settings.Settings] Looked up setting hint_BatteryOptimizations -> null
    2018-09-19 19:50:09 2 [settings.Settings] Looking up setting override_proxy
    2018-09-19 19:50:09 2 [settings.Settings] DefaultsProvider: value = false, continue: true
    2018-09-19 19:50:09 2 [settings.Settings] SharedPreferencesProvider: value = false, continue: true
    2018-09-19 19:50:09 2 [settings.Settings] Looked up setting override_proxy -> false
    2018-09-19 19:50:09 2 [settings.Settings] Looking up setting override_proxy_host
    2018-09-19 19:50:09 2 [settings.Settings] DefaultsProvider: value = localhost, continue: true
    2018-09-19 19:50:09 2 [settings.Settings] SharedPreferencesProvider: value = localhost, continue: true
    2018-09-19 19:50:09 2 [settings.Settings] Looked up setting override_proxy_host -> localhost
    2018-09-19 19:50:09 2 [settings.Settings] Looking up setting override_proxy_port
    2018-09-19 19:50:09 2 [settings.Settings] DefaultsProvider: value = 8118, continue: true
    2018-09-19 19:50:09 2 [settings.Settings] SharedPreferencesProvider: value = 8118, continue: true
    2018-09-19 19:50:09 2 [settings.Settings] Looked up setting override_proxy_port -> 8118
    2018-09-19 19:50:09 2 [settings.Settings] Looking up setting distrust_system_certs
    2018-09-19 19:50:09 2 [settings.Settings] DefaultsProvider: value = false, continue: true
    2018-09-19 19:50:09 2 [settings.Settings] SharedPreferencesProvider: value = false, continue: true
    2018-09-19 19:50:09 2 [settings.Settings] Looked up setting distrust_system_certs -> false
    2018-09-19 19:50:10 2 [log.Logger] Verbose logging: true; to file: true



  • This debug is taken while hitting manually on the sync button in davdroid for my account.
    Addressbooks and calendars are found correctly but the entries are not being synchronized.
    I am synching against nextcloud 13.0.6

    P.S.
    If I do this debug for refreshing the list of addresssbooks or calendars, it is filled with connections to my server.


  • developer

    @mwlczk Is there an "app auto-launch" or "start in background" permission that can be enabled for DAVdroid in Android app settings, see https://www.davdroid.com/faq/synchronization-is-not-run-as-expected/?



  • @rfc2822 unfortunately not. This is a screenshot taken from the app "android permission"
    Unfortunately cannot upload the picture


  • developer

    @mwlczk Unfortunately, I don't have an idea then 😐



  • Hi @rfc2822,
    i could narrow down my sync problem.
    I have AFWall+ running and block in and outgoing traffic per default (everything incl. core/system services/processes).
    I have enabled davdroid outgoing. but davdroid would not sync unless I enable one system-process (pid 1000) which checks if there is an active internet connection.
    Many people who run davdroid to protect their data would run a firewall aswell to protect the data being spied via other apps.
    If davdroid relies on that system-process (1000) to check the availability of a connection this might not fit everybody. We might need an advanced option to force sync even if the android systems "thinks" there is no internet-connection.
    A second thought: what if I am only on my local wifi network and don't need a "proper" internet connection, but want to sync to my dav/cloud which is on the same network?

    This might be a good FAQ-item and a workaround for some of the sync-problems until we can sync without enabling the android-system-internet-check (google-bigbrother check).

    Thanks for this great app!!!



  • OH MY ....

    @mwlczk you just cleared several problems with my mobile!!
    I never found the right pid for the internet connectivity connection!
    But after allowing pid 1000 Davdroid started to work again (seems like my fw is down intermittently, as it sometimes synced).

    AND firefox sync started working (it was only logged as Web Session before and was still waiting for email verification...several times..)

    This should be on the FAQ of AWFALL as well.

    Thank you again!