Frank Slootweg <th...@ddress.is.invalid> wrote
> Sadly, neither 'Arlen' nor Carlos have commented on how to set up such
> a USB MTP connection on the Linux side. They only covered the Android
> side.
I don't dual boot anymore. Mostly I did so for the iPads since it was easier
to transfer files into the so-called 'sandbox' areas with Linux than with
Windows (which shows what a farce the Apple 'sandbox' truly was).
<
https://i.postimg.cc/Jhmy9KH7/files06.jpg> Ubuntu uses iFuse for its magic
I
> They should not make any permission changes to folders *outside* their
> 'territory', i.e. *outside* /Android/[data|obb|<etc>/<app-id>.
I agree with Frank even as I never understood Android permissions
(as I never cared to bother) because I stick stuff I care about
in my own folder, one for each sdcard.
a. For the internal storage sdcard === folder name I created is "0000".
b. For the external storage sdcard === folder name I created is "0001".
<
https://i.postimg.cc/yYWwgGmy/webdav12.jpg> X-Plore file manager
> For this very purpose, many apps have 'import' and 'export' functions.
> They import files into their territory, do whatever they like with the
> imported copy and export them, so they can be used by other apps.
> For example OsmAnd+ has an Export function (Settings -> Backup &
> Restore -> Back up as file -> Export), so you can export Settings, My
> Places and Resources to a file, so that can be backed up by a backup
> app, which has no access to that data within OsmAnd+'s territory.
Yup. Again, Frank is correct. Many Contacts apps, for example, export
and import from user storage areas. As do APK-export/backup programs.
My recommendation?
1. Create your own folder at the top of each sdcard (internal & external).
2. Then put (& get) anything you care about into (out of) that folder.
Then you only have to worry about the permissions for that one folder.
> It is common and probably even standard in all Android versions. The
> actual folder name is probably /Download (no trailing 's'), but as
> Carlos mentioned it might have a local language synonym and in other
> places it might have a slightly different name. For example in the
> 'Categories' section of Samsung's My Files app, it's called 'Downloads'
> (with trailing 's').
My Samsung also has Download at the "top level" of the user storage area.
<
https://i.postimg.cc/BvJdKWzt/webdav06.jpg> Download folder
> Try to keep the original copy of your files outside the app's
> territory (/Android/...) ad only the working copy inside the app's
> territory.
My recommendation having worked with computers for decades?
1. Create a top-level directory in each of your two sdcards
Call it anything you want - I call mine "0000" and "0001"
That way they show up first in any directory listing attempt
2. Then spend your energy setting the permission for that one folder
3. After that, put all files you care about into that one folder
By doing that, you allow all the apps to use the files you put in that folder.
Works for me. (But I'm methodical.)
> In summary: Where to keep your files? *Anywhere* shown by the *native*
> 'file manager' of your Android device (*not* Cx, ES, <whatever>),
> *except* /Android [1].
My suggestion is to keep all files in one folder.
Of course that folder has a hierarchy _below_ it to organize stuff.
/sdcard0/0000/{apks,docs,pics,maps,passwords,videos,etc.}
/sdcard1/0001/{apks,docs,pics,maps,passwords,videos,etc.}
> [1] '/Android' is actually something like '/Interal storage/Android'
> (and possibly also something like '/<SD whatever>/Android', if you have
> a SD-card).
This is sometimes confusing, as Frank correctly alluded to.
Some file managers show the accurate "unix-like" path to things.
Some don't.
Here's a file manager that does (X-Plore).
<
https://i.postimg.cc/yYWwgGmy/webdav12.jpg> unix-like paths
Here's a file manager that does not (File Manager).
<
https://i.postimg.cc/BvmRBrbt/webdav03.jpg> user-friendly names
This is IMPORTANT!
What the file manager shows you as the path isn't the "real" path
in some file managers.
My suggestion for TheRealBev is to use "X-Plore" to see the real path.
Notice, for me, my linux-like storage locations on one phone are called:
1. internal sdcard0 === /storage/emulated/0/{Android filesys}
2. external sdcard1 === /storage/0000-0001/{Android filesys}
Note that I formatted that external sdcard on purpose with the name
"0000-0001" which I do for _all_ my sdcards so that if I pop one out
and pop it into another phone (or vice versa) it all still works.
--
But I'm methodical.