Davx5 don't aquire Read Task permission => error on task sync


  • @jmoegele Done !


  • Same problem here, Mi9 running xiaomi.eu ROM. Also send bug report to Xiaomi.



  • i don’t really know if it’s a miui problem or an android 10 problem…

    anyway, if you have root access to the phone, you can do the following via adb or terminal and it starts working as expected:

    pm grant at.bitfire.davdroid org.dmfs.permission.READ_TASKS
    pm grant at.bitfire.davdroid org.dmfs.permission.WRITE_TASKS

    i say i’m not sure about “miui’s fault” simply because on other xiaomi phones i’ve got, with android9 or less, everything works smootly (also with latest miui 11 beta)… this makes me assume that’s somewhat related to Q or the way davx/opentasks register their permissions…
    i don’t have another phone with Q w/out miui, so i can’t test if elsewhere is working


  • @paultt
    That worked for davx and opentasks.
    Do you know the command for acalendar?
    I still have an issue seeing my tasks there
    😊


  • Hi,
    same problem with
    Oneplus 8 pro
    Oxygen OS 10.5.8.IN11BA
    logfile says:
    requires org.dmfs.permission.READ_TASKS, or grantUriPermission

    M.

  • developer

    Does it maybe work with DAVx5 3.1? The permissions have been reworked there. There’s also app settings / Permissions now.


  • @rfc2822 app here is 2.6.3.1, is there a link to 3.1?
    Edit: found it from f-droid.
    3.1. working fine, issue solved!
    Good Job!


  • i had the same problem with a samsung S4 (GT i9515) running lineage OS (lineage-17.1-20200926-nightly-jfvelte-signed) and the latest davx5 from F-Droid (v. 3.3.2-ose).

    the slider to set the Task rights was set to granted. The debug info showed the READ_TASK as denied.

    the problem appeared after a fresh install. still i tried to uninstall both OpenTasks and davx5 and change the install order, since i remember that this used to be a solution, did not work f or me though.

    i had to use adb as described by @paultt

    here is some additional information for others who want to use adb and don’t know how to use it (like me):

    first install adb for your system, open a command prompt and then type

    user@pcname:~$ adb devices
    

    on your phone, allow your computer to access the phone via adb, then open an adb shell and send the command to set the permissions, like so

    user@pcname:~$ adb -d shell 
    phonename:/ $ pm grant at.bitfire.davdroid org.dmfs.permission.READ_TASKS
    phonename:/ $ pm grant at.bitfire.davdroid org.dmfs.permission.WRITE_TASKS
    phonename:/ $ exit
    

    i hope this helps.

  • developer

    Was it not possible to give the tasks permission in Android settings / Apps / DAVx5? (Where the button below the slider directs to)


  • @rfc2822
    yes, it was, but still the debug info of davx5 showed that READ_TASKS was denied.

    i am just now setting up a similar samsung s4 phone (GT i9505) and will report back soon about my findings.

  • developer

    @ribi85 Thanks!


  • i get the same error for the GT i9505. here is an excerpt of the debug-info.txt:

    Permissions:
     - READ_CONTACTS: granted
     - WRITE_CONTACTS: granted
     - READ_CALENDAR: granted
     - WRITE_CALENDAR: granted
     - READ_TASKS: denied
     - WRITE_TASKS: granted
     - READ_TASKS: denied
     - WRITE_TASKS: denied
     - ACCESS_COARSE_LOCATION: denied
    

    a bit weird is that READ_TASKS and WRITE_TASKS occurs twice. but i saw the same in the GT-i9515 phone.

    after setting the permission via adb only the first occurrance of READ_TASK is additionally set to granted:

    Permissions:
     - READ_CONTACTS: granted
     - WRITE_CONTACTS: granted
     - READ_CALENDAR: granted
     - WRITE_CALENDAR: granted
     - READ_TASKS: granted
     - WRITE_TASKS: granted
     - READ_TASKS: denied
     - WRITE_TASKS: denied
     - ACCESS_COARSE_LOCATION: denied
    
  • developer

    @ribi85 said in Davx5 don't aquire Read Task permission => error on task sync:

    a bit weird is that READ_TASKS and WRITE_TASKS occurs twice. but i saw the same in the GT-i9515 phone.

    One time for OpenTasks, one time for tasks.org. I have changed it so that in future versions, you’ll see the full permission ID when it doesn’t start with android.permission.

  • developer

    @ribi85 said in Davx5 don't aquire Read Task permission => error on task sync:

    • READ_TASKS: granted
    • WRITE_TASKS: granted
    • READ_TASKS: denied
    • WRITE_TASKS: denied

    Ah… as said above, those are the OpenTasks and tasks.org permissions. In the Android permissions activity, those are both shown as Tasks permission. Is it possible that you have chosen the wrong one (as they cannot be distinguished)?


  • Same here on an Huawei P20pro:
    Screenshot_20201005_101505_com.google.android.permissioncontroller.jpg
    Screenshot_20201005_101004_com.android.htmlviewer.jpg
    Screenshot_20201005_101923_com.android.settings.jpg

  • admin

    Can you try to uninstall DAVx5 and all tasks apps, then install Open Tasks first and after that DAVx5. Can you grant the necessary permissions then?


  • Its the same thing after uninstalling and reinstalling the apps.
    But then i installed the App Tasks.org on my phone, grant the permissions for this app and now OpenTasks is working. Even after uninstalling Tasks.org, OpenTasks is still working.

    Screenshot_20201005_130025_com.android.htmlviewer.jpg

Similar topics