Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
Izhido_VR's avatar
Izhido_VR
Explorer
4 years ago

Access to /sdcard/Download folder from native code

Do you guys have any examples of working code that is able to access the /sdcard/Download folder from a Quest/Quest 2 device? There is not much info out there; you find contradictory statements about apps being already able to do it *or* apps requiring READ/WRITE_EXTERNAL_STORAGE permissions *or* using specialized Android APIs.

 

Has anyone managed to access data from there using their own code, that would like to share here?

2 Replies

  • Anonymous's avatar
    Anonymous

    The Oculus system software is based of Android 10, and I think Android has gotten stricter about application permissions. I would take a look at what's required to do the same thing in Android 10. I believe it requires an explicit permission request from the application (not just a key in the manifest).

  • Regarding this issue - we found (in Unreal 4.23) we had to add the following to the application tag in the application manifest:

    android:requestLegacyExternalStorage="true"