Forum Discussion

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

Quest 2 storage access issue

I have trouble accessing (writing to) the internal storage /sdcard/Pictures/

This has never been an issue with Quest 1, but just emerged with Q2.
After installing the APK and running it, Quest 2 asks me to allow permission to access storage, which I confirm.

I'm in Unity (settings below), and the logcat error I'm getting is:
ADB Logcat
Error Unity UnauthorizedAccessException: Access to the path "/mnt/sdcard/Pictures/xxx.JPG" is denied.
Error Unity   at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x00000] in <00000000000000000000000000000000>:0

Any idea what the cause and fix might be?

thx, volker


No RepliesBe the first to reply