Fresco: Android Q open failed: EACCES (Permission denied)

Created on 19 Jul 2019  路  10Comments  路  Source: facebook/fresco

Description

Run in Android Q beta 5 and use the URI from MediaStore but the image will not show.

Reproduction

Load image path from MediaStore and use the path to generate URI, then put it into the ImageRequest.

Solution

"resolver.openFileDescriptor(item, mode)" Maybe use this will help?

Additional Information

  • Fresco version: last
  • Platform version: Android Q beta 5
bug

Most helpful comment

add this in your application tag
android:requestLegacyExternalStorage="true"
by default it is false

All 10 comments

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as "bug" or "enhancement" and I will leave it open. Thank you for your contributions.

I am also experiencing this problem

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as "bug" or "enhancement" and I will leave it open. Thank you for your contributions.

This should be fixed with ffab15c80a2c91a2618dbfd40e05f560f58ea8c9

Thanks @Rogero0o !

The fix for this issue is merged into master and it's needed for Fresco (and apps that use Fresco) to work well in Android 10, which has just been released. Is there going to be a Fresco release with this fix soon? Thank you!

We're working on making SoLoader optional, which is almost ready. Once that's merged, we'll do a release.

Thanks! Looking forward to it

add this in your application tag
android:requestLegacyExternalStorage="true"
by default it is false

You should also be able to use jitpack.io to include a newer Fresco version I suppose.

add this in your application tag
android:requestLegacyExternalStorage="true"
by default it is false

Finally!
Thanks
I spent a day trying to figure out why images not showing after getting them with https://github.com/react-native-community/react-native-cameraroll

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rafaelekol picture rafaelekol  路  4Comments

hanhmh1203 picture hanhmh1203  路  4Comments

rhettor picture rhettor  路  3Comments

qiiyue picture qiiyue  路  4Comments

goodev picture goodev  路  4Comments