Hi everyone,
For a few days now, I have been facing a hurdle that blocks read access to an external file in my VR app on the Meta Quest 3. The reason for the external file access is that I need to persistently store config across multiple installations. Therefore, in a first step, I write the needed config to a file located at /storage/emulated/0/Documents
. To access this location, I handle the permissions as Google itself advises: Just before I need access, I give my users a reason and ask for permission. So the permission handling works fine.
When I reinstall the application, access to the file is lost. The error is: Java.io.FileNotFoundException /storage7emulated/0/Documents/confg.txt open failed EACCES (Permission denied)
.
I have double checked my manifest:
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>.
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />.
<uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE" />.
I have more then double checked how I ask for permissions and If they are granted correctly.
So I think it is more of an internal Android permission thing. If you have any suggestions on what to check next, I would appreciate it.