# FileSystem Capacitor Android 10 Issues

**URL:** <https://forum.ionicframework.com/t/filesystem-capacitor-android-10-issues/189371>\
**Category:** Capacitor\
**Created:** [May 13, 2020, 7:33pm UTC](https://forum.ionicframework.com/t/filesystem-capacitor-android-10-issues/189371 "2020-05-13T19:33:13Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![aaronksaunders](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/aaronksaunders/32/13729_2.png) [@aaronksaunders](https://forum.ionicframework.com/u/aaronksaunders)\
**Post date:** [May 13, 2020, 7:33pm UTC](https://forum.ionicframework.com/t/filesystem-capacitor-android-10-issues/189371/1 "2020-05-13T19:33:13Z")

</div>

> <https://github.com/ionic-team/capacitor/issues/2916>
>
> Bug Report
> Filesystem not finding file on android
> Capacitor Version
> Latest Dependencies:
> @capacitor/cli: 2.1.0
> @capacitor/core: 2.1.0
> @capacitor/android: 2.1.0
> @capacitor/electron: 2.1.0
> @capacitor/ios: 2.1.0
> Installed Dependencies:
> @capacitor/electron...

sample project and issue documented…

---

<div class="post-metadata">

**Author:** ![aaronksaunders](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/aaronksaunders/32/13729_2.png) [@aaronksaunders](https://forum.ionicframework.com/u/aaronksaunders)\
**Post date:** [May 14, 2020, 6:47am UTC](https://forum.ionicframework.com/t/filesystem-capacitor-android-10-issues/189371/2 "2020-05-14T06:47:27Z")

</div>

found the problem

> Apps targeting Android 10 (API level 29) and higher are given scoped access into an external storage device, or _scoped storage_ , by default. Such apps can see only their _app-specific directory_

the media plugin is writing to the external directory so any app that wants to read the content, cannot read it with having permission to that directory which in Android 10 and beyond, you dont have.

I am not very good at Android so I haven’t been able to hack around inside the capacitor code to see how this issue is resolved with the camera yet

Now i need a solution?

---

<div class="post-metadata">

**Author:** ![aaronksaunders](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/aaronksaunders/32/13729_2.png) [@aaronksaunders](https://forum.ionicframework.com/u/aaronksaunders)\
**Post date:** [May 15, 2020, 10:52pm UTC](https://forum.ionicframework.com/t/filesystem-capacitor-android-10-issues/189371/3 "2020-05-15T22:52:54Z")

</div>

The issue looks like it has been resolved with this PR, where all of the permissions are granted when capacitor loads?

I tested my project without the change to the manifest and it works fine now, so I guess this PR did the trick

[fix(android): Filesystem.requestPermissions() not working #2936](https://github.com/ionic-team/capacitor/pull/2936)

I had tried to request permissions using the Capacitor API but it never worked

thanks

---

<div class="post-metadata">

**Author:** ![jcesarmobile](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/jcesarmobile/32/127095_2.png) [@jcesarmobile](https://forum.ionicframework.com/u/jcesarmobile)\
**Post date:** [May 19, 2020, 5:10pm UTC](https://forum.ionicframework.com/t/filesystem-capacitor-android-10-issues/189371/4 "2020-05-19T17:10:36Z")

</div>

No, that PR only allows Filesystem plugin to request the read/write permissions, but even if the user accepts the permissions, the external storage is still not accesible on Android 10 if the app is built with SDK 29.

It can work if you previously installed the same app in the same device but compiled with SDK 28, then when you build with SDK 29 will still work, but if you delete the app and you build with SDK 29 and install, it won’t work.

You can also add `android:requestLegacyExternalStorage="true"` to the `application` tag of the `AndroidManifest.xml`, that will make the external storage work as if it was built with SDK 28.

---

<div class="post-metadata">

**Author:** ![wingo7](https://avatars.discourse-cdn.com/v4/letter/w/b5a626/32.png) [@wingo7](https://forum.ionicframework.com/u/wingo7)\
**Post date:** [October 28, 2020, 1:51pm UTC](https://forum.ionicframework.com/t/filesystem-capacitor-android-10-issues/189371/5 "2020-10-28T13:51:02Z")

</div>

Hi, there, how can I solve that issue for my project? now SDK 28 is not allowed. I can’t play videos or audio with target sdk 29, when I try to play audio or video I have this error: GET  
/storage/emulated/0/Download/Atem.mp3:1 Failed to load resource: net::ERR\_ACCESS\_DENIED

---

<div class="post-metadata">

**Author:** ![aaronksaunders](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/aaronksaunders/32/13729_2.png) [@aaronksaunders](https://forum.ionicframework.com/u/aaronksaunders)\
**Post date:** [June 25, 2021, 6:51pm UTC](https://forum.ionicframework.com/t/filesystem-capacitor-android-10-issues/189371/6 "2021-06-25T18:51:51Z")

</div>

See this for a more complete and updated solution in regards to Cordova Media Capture Plugin - [Surfing Github Issues Related To Ionic, Google Maps & Video Capture - Solutions and Source Code - YouTube](https://www.youtube.com/watch?v=ZMx_mdhmIUI&t=2s)
