# UnauthorizedAccessException in ExternalStorage

**URL:** <https://forum.magicleap.cloud/t/unauthorizedaccessexception-in-externalstorage/5789>\
**Category:** Unity Development\
**Created:** [May 28, 2025, 5:52pm UTC](https://forum.magicleap.cloud/t/unauthorizedaccessexception-in-externalstorage/5789 "2025-05-28T17:52:28Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![magicbot](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/magicbot/32/2470_2.png) [@magicbot](https://forum.magicleap.cloud/u/magicbot)\
**Post date:** [May 28, 2025, 6:05pm UTC](https://forum.magicleap.cloud/t/unauthorizedaccessexception-in-externalstorage/5789/2 "2025-05-28T18:05:32Z")

</div>

Here is a post that might be related:

> [@Access denied writing files on USB](https://forum.magicleap.cloud/t/access-denied-writing-files-on-usb/5331/2):
>
> It sounds like you’re running into Android’s scoped storage restrictions, which got stricter starting from Android 10. Even if your USB drive mounts under /storage/XXXX-XXXX, Android often treats it as external storage, meaning standard permissions alone (READ\_EXTERNAL\_STORAGE and WRITE\_EXTERNAL\_STORAGE) aren’t enough. I’d recommend looking at this repo [UnitySimpleFileBrowser](https://github.com/yasirkula/UnitySimpleFileBrowser) —it uses Storage Access Framework which should resolve the ‘access denied’ error you’re facing.

* * *

I recommend looking at these open source projects to see how to read and write files outside of your app’s local directory.

> **[GitHub - yasirkula/UnityNativeFilePicker: A native Unity plugin to import/export files...](https://github.com/yasirkula/UnityNativeFilePicker)**
>
> A native Unity plugin to import/export files from/to various document providers on Android & iOS

> **[GitHub - yasirkula/UnitySimpleFileBrowser: A uGUI based runtime file browser for Unity 3D...](https://github.com/yasirkula/UnitySimpleFileBrowser)**
>
> A uGUI based runtime file browser for Unity 3D (draggable and resizable)

---

_[View the full topic](https://forum.magicleap.cloud/t/unauthorizedaccessexception-in-externalstorage/5789)._
