|
|
|
|
|
by iggldiggl
20 days ago
|
|
> Consider how the file picker works. If you press a button in the app, then a file picker is opened, but the app gets no access to anything until you select a file to give it. Clearly, this is way better than giving the app read access to your whole HDD. For some values of better – e.g. I'm browsing through a folder with some (the) file explorer, and then decided to open an image with my favourite image viewer.
The UX-friendly expectation is that I can then continue browsing (go to the next or previous image) from right inside the image viewer. File system sandboxing however insists that the image viewer isn't allowed to access anything else, so instead I either have to go back all the way to the file explorer to open the next image, or at the very least invoke some kind of OS-blessed file open dialogue for the image viewer to be allowed to continue. The latter is the official situation on Android, and it's rather suboptimal, to put it that way. (Made worse by the fact that the blessed way of opening a file with another app also tries to hide that file's location from the receiving app, so even if my image viewer e.g. already had sufficient file system permissions to access that file and its whole folder, without some hacky workarounds it still couldn't offer me to continue viewing other pictures inside the same folder because it doesn't really know which file it's currently opening.) |
|
It's been a long time since i used Android, but why don't they just implement the ability to grant access to a given folder? The you could grant your preferred image viewer access to all your images, without it having access to your other documents. And apps that you might just want to give access to a select few images, like social media, could stay with the per-file permission.
The fact that the full path isn't revealed just seems like a sensible thing to do. Even if you give an app access to a full directory, why would it need to know where that directory is located?