Read\write files with UE5.2.1 + Android SDK 32

I’m working on an application for Quest 2. I’m using UE5.2.1 + Android SDK 32 + Oculus Quest2.
I want to write and read files from a folder in the root of the Oculus storage. For example “APP_FOLDER”.

123

When I was working on Android SDK 29, I was able to write and read files from a folder in root of oculus. SDK 32 changes the way Android storage works.
Perhaps someone can explain to me how to work with storage correctly

Have you been able to launch successfully on the Oculus 2 with SDK 32? Typically I have used the Android folder that self populates in the root. SDK 29 stopped working for me today and apparently all my hardware switched to 32

iamtheanimist
Yes, the Oculus 2 app works fine on SDK32 except for read/write issues

Read\write files is possible, but requires permission from the Google\Oculus Store and the user

An app can request all-files access from the user by doing the following:

  1. Declare the MANAGE_EXTERNAL_STORAGE permission in the manifest.
  2. Use the ACTION_MANAGE_ALL_FILES_ACCESS_PERMISSION intent action to direct users to a system settings page where they can enable the following option for your app: Allow access to manage all files.
1 Like

Mind sharing how you did the second part?

Can you please elaborate on this? We’re facing a similar issue on our end.

  • What all did you update and where (for the above changes you did)?
  • What path did you use for the file writing? A code snippet showing your file write might also help

Would also be interested in that as I face a similar issue!

Having issues with this in unreal 5.4, what’s the current workaround?