My project installs a directory with files into the Documents folder of Android. However with the latest build it crashes in Android with the E/MediaProvider: Permission to access file: Denied
error. It is imperative that the use have access to this folder and be able to modify it. I cannot release the project without this ability. Any thoughts?
Work arounds for new Scoped Storage in Android?
- Edited
Based on this article ... https://developer.android.com/training/data-storage/shared/media
... my guess is that you need to enable Read External Storage and Write External Storage in Project >> Export... >> Android >> Options >> Permissions.
But I don't understand Scoped Storage very well.
However with the latest build
Which Godot version are you using? Remember to always specify the exact Godot version number in your posts :)
Sorry, the latest build is 3.3.3 stable. I do have Read External Storage and Write External Storage enabled but this has not made a difference.
I wonder if other Android permissions need to be enabled. I'm targeting Android for my game, but the only storage I need is saving a config file, so I haven't had a reason to figure out the Scoped Storage stuff.
My program allows the user to create useful documents. I need to be able to create one folder easily accessible to the user where they can add, save and share the files they create.
Maybe someone with a better understanding of the new Scoped storage could give their input on this? Can this even be done with the new rules?
Your project creates documents that need to be accessed by other Android apps? Are the documents media, non-media or both?
I don't have a solution, I'm just trying to understand the situation. I was just reading this article: https://medium.com/microsoft-mobile-engineering/scoped-storage-in-android-10-android-11-28d58d989f3c
They create text files and png files. They can edit the files on the desktop or mobile and send them back and forth. The user opens a FileDialog and saves the created text files to a folder in the internal memory. They can switch between a desktop version and android version.
That sounds like both media (.png) and non-media (text). You might try asking in an Android-specific forum, such as https://www.reddit.com/r/androiddev/