I'm quite confused with the way Storage Access Framework could work with Native code.
After given the user the choice to select a folder using the intent action OPEN_DOCUMENT_TREE, I create my file using DocumentContracts.CreateDocument(...)
However, when I want to open this file in my native code, I have an error saying that I don't have the access to it.
How is it possible ? I thought in Android 11, each file created is owned by the app. Is this different from the native code ?