2

Grant Document Tree Access nor working

Android 6 (Marshmallow).

When trying to write a file the alert appears that "grant document tree access" is necessary to perform this action next time without asking. Then the usual file manager is displayed where I selected external SD card.

But tasker does not seem to be able to write to the file. The alert reappears instantly. If I select <back> I get an error message

15.12.01/FileUtil haveAccess: test : 
content://com.android.externalstorage.documents/tree/1234-5678%3A wr: false ww:
true ir: true iw: true
15.12.01/FileUtil haveAccess: fullPath: /storage/1234-5678
15.12.01/FileUtil nrda: need request: /TaskerTest. txt: true
15.12.01/E start proxy ProxyTransparent, wait, time limit 20s
15.12.01/E add wait type Proxy Group time 20
15.12.01/E add wait type Proxy Group done
15.12.01/E set proxy: true (startProxy)
15.12.01/E add wait task
15.12.03/E Error: 1

/storage/1234-5678 is external SD card. If I provide the full path to a file on internal storage it works (as expected).

What's wrong?

2 replies

Can you please export your task's description (not xml) so I can take a look? Long-click the task in Tasker->export description Thanks in advance

R

Sorry, replied to the wrong comment. You'll find my reply above your question.

R

The action is "Write File"

File has been "savedata.log".

After changing that to "/storage/emulated/0/Tasker/savedata.log" it works.
Seems that tasker has no clue where to write files without path information.

That leads me to the suggestion to add a standard path somewhere in the configuration and use it if nothing else has been provided.