Security exception when opening content provider for com.android.contacts / org.dmfs.tasks



  • Hi

    I have setup DAViCal and Thunderbird. I can access the calendar and create events. I see it in the apache log file.

    Then I setup DavDroid. Within the app, I can see my account and my Test calendar that I have created. I can see in apache log

    this.is.my.ip - username [21/Mar/2017:22:40:34 +0100] "PROPFIND /caldav.php/username/ HTTP/1.1" 207 8144

    Which seems to be correct. If I press sync, nothing happens. In your extensive log I can see this:

    2017-03-21 22:14:24 1 [cert4android.CustomCertManager$1] Connected to service
    2017-03-21 22:16:06 680 [syncadapter.SyncAdapterService$SyncAdapter] Security exception when opening content provider for com.android.contacts
    2017-03-21 22:16:06 681 [syncadapter.SyncAdapterService$SyncAdapter] Security exception when opening content provider for com.android.calendar
    2017-03-21 22:16:06 682 [syncadapter.SyncAdapterService$SyncAdapter] Security exception when opening content provider for org.dmfs.tasks

    Under settings / account / davdroid, I do have exclamation marks for sync failed. There is no log entry in the apache log when I press sync.

    I am using a Huawei Honor 8, latest software.

    SOFTWARE INFORMATION
    Package: at.bitfire.davdroid
    Version: 1.4.1-gplay (139) Fri Mar 03 13:30:56 GMT+01:00 2017
    Installed from: com.android.vending
    JB Workaround installed: no

    CONFIGURATION
    System-wide synchronization: automatically
    Account: username@domain
    Address book sync. interval: 240 min
    Calendar sync. interval: 240 min
    OpenTasks sync. interval: 240 min
    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_CH |

    settings
    | setting | value |
    | logToExternalStorage | 1 |

    services
    | _id | accountName | service | principal |
    | 3 | xxx@xxx | carddav | https://xxx:444/caldav.php/xxx/ |
    | 4 | xxx@xxx | caldav | https://xxx:444/caldav.php/xxx/ |

    sqlite_sequence
    | name | seq |
    | services | 4 |
    | homesets | 14 |
    | collections | 18 |

    homesets
    | _id | serviceID | url |
    | 12 | 3 | https://xxx:444/caldav.php/xxx/ |
    | 14 | 4 | https://xxx:444/caldav.php/xxx/ |

    collections
    | _id | serviceID | url | readOnly | displayName | description | color | timezone | supportsVEVENT | supportsVTODO | sync |
    | 14 | 3 | https://xxx:444/caldav.php/xxx/addresses/ | 0 | Mein addressbook | <null> | <null> | <null> | <null> | <null> | 0 |
    | 17 | 4 | https://xxx:444/caldav.php/xxx/bc1b4d9b-3eab-4230-bcc0-10ee7b124a35/ | 0 | Test2 | <null> | -13876353 | <null> | 1 | 1 | 1 |
    | 18 | 4 | https://xxx:444/caldav.php/xxx/calendar/ | 0 | Mein calendar | <null> | <null> | <null> | 1 | 1 | 0 |

    SYSTEM INFORMATION
    Android version: 7.0 (FRD-L09C432B380)
    Device: HUAWEI FRD-L09 (HWFRD)


  • developer

    You have to give DAVdroid permissions for calendar, contact and tasks access. DAVdroid asks for these permissions over a notification icon.



  • I wondered why nobody had the same error message posted. This permission request did not pop up, I had to look for it and found it somwhat buried. So thanks for the correct answer. Please sondier updating your instructions.


  • developer

    @fst said in Security exception when opening content provider for com.android.contacts / org.dmfs.tasks:

    I wondered why nobody had the same error message posted. This permission request did not pop up, I had to look for it and found it somwhat buried. So thanks for the correct answer. Please sondier updating your instructions.

    Maybe because of Huawei settings. Huawei devices seem to behave very strangely and not compliant to Android guidelines. But good to know, there are many people with Huawei devices and problems, maybe this is another reason.



  • I have the same problem with smartphone Leagoo Elite 5. It's work with caldav sync adapter but not with davdroid.


Log in to reply
 

Looks like your connection to Bitfire App Forums was lost, please wait while we try to reconnect.