mobile-wormhole icon indicating copy to clipboard operation
mobile-wormhole copied to clipboard

Android10-receive-File: Error13-Permission-denied

Open k3b opened this issue 3 years ago • 3 comments

[Error 13] Permissin denied: /storage/emulated/0/Download/testfile.txt

I Have granted the app permission "WRITE_EXTERNAL_STORAGE" and would expect a download-folder chooser where toe downloaded file schould be stored.

In android-10-java-development an app has to use the android folder picker Intent.ACTION_OPEN_DOCUMENT_TREE to get write permssion to destination dir.

sorry i have only android-java knowledge and donot know how to do this with py. Maybe this is helpful for you

https://github.com/kivy/python-for-android/issues/2032

k3b avatar Mar 28 '21 15:03 k3b

I am encountering the same issue. Even with the Storage permission granted, I can neither send nor receive files. It works until read or write access is tried.

Screenshots:

hacklschorsch avatar Apr 03 '21 16:04 hacklschorsch

Thank you for reporting the issue!

Apparently from Android 10 on it is no longer possible to directly manipulate files (regardless of the storage permissions) without going through the Android intents, file descriptors, streams, etc. I will have to rewrite how writing the incoming file to disk works.

pavelsof avatar Apr 05 '21 14:04 pavelsof

Same here... Hope you can get around these crazy restrictions.

pepa65 avatar May 01 '21 06:05 pepa65