Many thanks, Anke and vKnow360, Anke I've run your method and it worked for me and gave me a better insight into how SAF works.
It seems necessary to run the 'Open Single Document' function each time to read the file, which means a user intervention. which is not too inconvenient for my application. Is this a security requirement for Google?
When I use 'Open Document Tree' and copy the file URI from the 'List Files' component (example A in my first email) it's possible to open any directory and to make multiple reads without having to reopen the document tree each time. Is this likely to be considered a security breach by Google?
Thank you Patel that looks like a very useful link to study. However, my App is intended for public use and the example I gave looks as if it might breach Google guidelines but it maybe the persistable permission function works by modifying the file being read? I'll keep on testing until I understand the SAF functions better.
I am facing some problem with this SAF thing.
My end goal is to read a pdf from Documents folder and upload it to Firebase Storage. The problem I am facing is after picking the file from Documents folder and coverting its URI to path to upload it to Firebase Storage as it accepts File Paths only. I got path as /sdcard/..... which is prompted as No such file or directory while uploading to Firebase Storage.