Issue
So my folder structure is Documents/XML/xml.xml
I create the XML folder upon starting the app. The user then has to put there his xml file manually.
In my manifest I have READ and WRITE EXTERNAL STORAGE permissions. I can check if the .xml file exists and it returns true if there is any, but when I try to read and print it: open failed: EACCES (Permission denied).
How can I bypass this without using MANAGE_EXTERNAL_STORAGE in Android 11?
Solution
The old external storage permission have been progressively revoked with every new API release, starting with Android 10. You'll need to use the new shared storage API to access data on external storage. Follow the instructions here
Answered By - user496854
Answer Checked By - Senaida (JavaFixing Volunteer)