pavelsof / mobile-wormhole

mobile client for the magic wormhole protocol
GNU General Public License v3.0
123 stars 10 forks source link

Android10-receive-File: Error13-Permission-denied #12

Open k3b opened 3 years ago

k3b commented 3 years ago

[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

hacklschorsch commented 3 years ago

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:

pavelsof commented 3 years ago

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.

pepa65 commented 3 years ago

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