On Android 11+, non-media files (like txt, pdf, csv, ...) can be accessed if and only if
the text files are in the ASD or in the Private dir (i.e. were saved there), or
the text files are in one of the Shared folders /Documents or /Downloadand
these files were created by the app itself, or
SAF is used.
So the conclusion is:
Your text file cannot be created by the app itself without using SAF (and therefore the app cannot access this text file without SAF either).
As you know the server is running on an Android device so you can't create a file in root or any arbitrary directory without getting manage all files permission for the app running server on the other device.
Of course with MANAGE_EXTERNAL_STORAGE permission this would be possible. But I intentionally didn't mention this option, since an app that requests this permission will (most likely) not be allowed in Google's Play Store.
I believe i might of found another issue.
I'm getting a 504 error. (ISP Host Server not seeing anything there end)
But it seems to be only happening on the Latest Android version.
(the one where WRITE_EXTERNAL_STORAGE doesn't get allowed in permissions)
Any Idea's?
Ps. when you hover over the connect or disconnect , it talks about bluetooth.. (i believe thats only text error)
I will design a apk for you to test,
I just thought it was strange why it works perfectly on a lower android version.<10
but a later version says 504 error.
its not even contacting my FTP server when it is getting the 504 error.
(i asked for server logs)