Android 11 File Access
Posted: 2022-06-12, 15:28 UTC
And the problems with Android 11 keep coming...
Most recent example: as it happens I own a comprehensive formulary which can be accessed on computers as a web-structure by normal browsers or offline-web-viewers and which I like to carry with me on my smartphone.
The web-structure looks like:
../MYFORMULARY
toppage.html
..../data
....../S1levelDIRs
......../S2levelDIRs
........../S3levelDIRs
On the phone this structure is (and should be) located on my external SD-card "HHHH-HHHH" like:
file:///storage/HHHH-HHHH/DOC/...../MYFORMULARY/toppage.html
But when I try to open that local web with standard browsers (Opera ,Chrome, Samsung-browser) all I can see is that (meaningless) top-level-page. If I now try to navigate to - say - "Index" all I will get is an error message:
"This site can't be reached"
Now, the interesting part is the "url" given that the browser has failed to access. It actually is:
content://com.ghisler.files/storage/HHHH-HHHH/DOC/...../MYFORMULARY/DATA/S1DIR/index.html (where those subdirs indeed are NOT located) instead of
file:///storage/HHHH-HHHH/DOC/...../MYFORMULARY/DATA/S1DIR/index.html (where they actually ARE located.)
As I've already learned this is due to that notorious And11-"feature"
that directories of other programs cannot be directly accessed any more. But still - TC-And can usually access those by mapping them to somewhere else, yet seemingly subdirs thereof at that "other location" cannot be accessed by the calling (browser-)programs any more.
Next thing I tried was to find dedicated offline-HTML-browser-/viewer-programs for Android. There are some - but then again not too many. Now comes the "sadly-funny" part. They all fall into two categories. They either (like the browsers) CAN SEE the external SD-Card BUT (like the browsers) fail to navigate the sub-structure with an "access denied"-error message - OR - they can successfully navigate the sub-structure (there are 2 of them). But then (exactly those 2) CANNOT SEE and access the external SD-Card, only internal storage (/emulated/0/...)
Only workaround so far: I've had to copy the whole (large) formulary-structure to
file:///storage/emulated/0/Android/data/com.opera.browser/files/Download/MYFORMULARY/toppage.html
where Opera has unrestricted access to and create a speed-dial-/bookmark-entry to that location and then Opera can use the whole formulary structure as it should.
Now I can hardly imagine that this is the way it should be under And11. This Opera-subdir is - from a data-structurally logical viewpoint - certainly not an appropriate location for that formulary to reside. Also it uses up a lot of internal memory there.
So has anybody experience with how to handle that And11 data-access-blunder
and how to make that formulary work normally from the proper external-SD-card/DOC/SCI/Math-location? Any help would be appreciated.
Most recent example: as it happens I own a comprehensive formulary which can be accessed on computers as a web-structure by normal browsers or offline-web-viewers and which I like to carry with me on my smartphone.
The web-structure looks like:
../MYFORMULARY
toppage.html
..../data
....../S1levelDIRs
......../S2levelDIRs
........../S3levelDIRs
On the phone this structure is (and should be) located on my external SD-card "HHHH-HHHH" like:
file:///storage/HHHH-HHHH/DOC/...../MYFORMULARY/toppage.html
But when I try to open that local web with standard browsers (Opera ,Chrome, Samsung-browser) all I can see is that (meaningless) top-level-page. If I now try to navigate to - say - "Index" all I will get is an error message:
"This site can't be reached"
Now, the interesting part is the "url" given that the browser has failed to access. It actually is:
content://com.ghisler.files/storage/HHHH-HHHH/DOC/...../MYFORMULARY/DATA/S1DIR/index.html (where those subdirs indeed are NOT located) instead of
file:///storage/HHHH-HHHH/DOC/...../MYFORMULARY/DATA/S1DIR/index.html (where they actually ARE located.)
As I've already learned this is due to that notorious And11-"feature"


Next thing I tried was to find dedicated offline-HTML-browser-/viewer-programs for Android. There are some - but then again not too many. Now comes the "sadly-funny" part. They all fall into two categories. They either (like the browsers) CAN SEE the external SD-Card BUT (like the browsers) fail to navigate the sub-structure with an "access denied"-error message - OR - they can successfully navigate the sub-structure (there are 2 of them). But then (exactly those 2) CANNOT SEE and access the external SD-Card, only internal storage (/emulated/0/...)

Only workaround so far: I've had to copy the whole (large) formulary-structure to
file:///storage/emulated/0/Android/data/com.opera.browser/files/Download/MYFORMULARY/toppage.html
where Opera has unrestricted access to and create a speed-dial-/bookmark-entry to that location and then Opera can use the whole formulary structure as it should.
Now I can hardly imagine that this is the way it should be under And11. This Opera-subdir is - from a data-structurally logical viewpoint - certainly not an appropriate location for that formulary to reside. Also it uses up a lot of internal memory there.
So has anybody experience with how to handle that And11 data-access-blunder
