Coder Social home page Coder Social logo

storage permissions about fudge HOT 2 CLOSED

IzzySoft avatar IzzySoft commented on May 30, 2024
storage permissions

from fudge.

Comments (2)

petabyt avatar petabyt commented on May 30, 2024

Maybe it's a redundant permission, but the app needs to write JPEGs to DCIM/fuji (and create the DCIM/fuji folder, and that's it. I did it the way I've always remembered doing it.

from fudge.

IzzySoft avatar IzzySoft commented on May 30, 2024

I'd say that's what READ_MEDIA_STORAGE and WRITE_MEDIA_STORAGE are for with "scoped storage". But maybe only up to Android 10. They changed that too often, hard to keep track 🙈 The proper documentation should be here – and that says you need *_EXTERNAL_STORAGE only to access files created by other apps.

So maybe your app only needs READ_MEDIA_IMAGES and WRITE_MEDIA_IMAGES? But there we go:

If your app is used on a device that runs Android 9 or lower, or if your app has temporarily opted out of scoped storage, you must request the READ_EXTERNAL_STORAGE permission to access any media file. If you want to modify media files, you must request the WRITE_EXTERNAL_STORAGE permission, as well.

OK, that answers my question: a device with Android 5 would be "a device that runs Android 9 or lower". Thanks, learned a new thing again. And apologies for the false alert then! I've put it on the allow-list for your app now:

    PermIgnore:
      android.permission.READ_EXTERNAL_STORAGE: This permission was granted implicitly as WRITE_EXTERNAL_STORAGE was requested, which is needed to access media files on Android 9 and below.

from fudge.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.