Author Topic: Android 11+, changes  (Read 10768 times)

Offline tapio

  • Expert
  • Master of Locus
  • ****
  • Posts: 875
  • Thanked: 182 times
  • Country: 00
    • View Profile
Re: Android 11+, changes
« Reply #90 on: December 14, 2021, 13:06:23 »
But it would be up to Menion to always look at int SD mapsVector for themes, even if the maps are on ext SD.
@Menion: what is your judgement, pls. ?
Sounds reasonable, and I additionally think the theme folder name is just a historical, but ugly thing (mapsVector\_themes). I'd even drag them up one level, so that we may have all extra content on one level...

Maps\
MapsOnline\
MapsVector\
MapsVectorThemes\
SRTM\
..
LM4 USER ID: 1AACAFF2A2
You could do a lot with Tasker: https://youtu.be/fLIRc8sn__g
 

Offline slarti76

  • Expert
  • Padavan of Locus
  • ***
  • Posts: 378
  • Thanked: 70 times
  • Country: 00
    • View Profile
  • Device: Galaxy S21, XCover Pro - Galaxy Tab S5e
Re: Android 11+, changes
« Reply #91 on: December 14, 2021, 15:48:42 »
But it would be up to Menion to always look at int SD mapsVector for themes, even if the maps are on ext SD.
@Menion: what is your judgement, pls. ?
Sounds reasonable, and I additionally think the theme folder name is just a historical, but ugly thing (mapsVector\_themes). I'd even drag them up one level, so that we may have all extra content on one level...

Maps\
MapsOnline\
MapsVector\
MapsVectorThemes\
SRTM\
..
+1
It's always a pain to set up syncs (e.g. with FolderSync) that sync the themes but not the (big) map files.
 
The following users thanked this post: michaelbechtold

Offline karlchick

  • More than Newbie
  • *
  • Posts: 77
  • Thanked: 59 times
  • Country: gb
    • View Profile
  • Device: Samsung Galaxy A52 5G
Re: Android 11+, changes
« Reply #92 on: December 14, 2021, 16:04:44 »
I understood from earlier posts that the access to EXT SD content is less efficient

What I do not understand is that I haven't changed anything. Locus Map was working with everything located in \ExtSD\Locus\mapsVector (maps and themes) and all that has changed is that now all those files are located in \ExtSD\Android\data\menion.android.locus\files\Locus\mapsVector.

Why should moving and using the exact same files from one location in ExtSD to another make such a difference to the performance? LM3 is still using the \ExtSD\Locus folder and performing as expected. I've seen others complain about the performed on LM3 after the relocation of files...

I guess I can't move the files back to \ExtSD\Locus since this is now marked as not allowed in the app... besides I will eventually hit a problem when I need to add new maps or uninstall/re-install the app...
Author of the OS Map theme.
 

Offline michaelbechtold

  • Expert
  • Professor of Locus
  • *****
  • Posts: 1022
  • Thanked: 126 times
    • View Profile
Re: Android 11+, changes
« Reply #93 on: December 14, 2021, 19:46:10 »
From Android 11 on (API 3ß+) it has been GOOGLE breaking working solutions by their silly and shortsighted changes.
 

Offline Menion

  • Locus team
  • Professor of Locus
  • *****
  • Posts: 12823
  • Thanked: 952 times
  • Country: cz
    • View Profile
    • https://www.asamm.com
  • Device: Pixel 5, A12
Re: Android 11+, changes
« Reply #94 on: December 14, 2021, 20:08:00 »
Hi guys, give me please some time till the end of the week. I'll then answer all questions. Thanks for understanding.
- Official help (ideas, questions, problems): help.locusmap.eu
- Advanced topics, sharing of knowledges: you're here!
- LM 4 Beta download, LM 4 final download
 

Offline Bluealek

  • Newbie
  • *
  • Posts: 4
    • View Profile
  • Device: Samsung A7 tablet
Re: Android 11+, changes
« Reply #95 on: December 16, 2021, 10:24:00 »
So I managed to move the maps to the private folder both on my Android 11+ phone and tablet, but on the tablet (Samsung A7) I had to do it via my Windows laptop. None of the three suggested third party file managers can do the job completely. X-plore comes the furthest - it can open all of the folders and view the content, it can even create new folders within them, but can't copy the file contents  :-\

My question is - does anybody know of some file manager that actually has full control of private folders on Samsung A7 tablet? Or some other Samsung tablet, I suppose they all work similarly. It would really be helpful if I had full control over the files, without the need to resort to an external device for it.
 

Offline michaelbechtold

  • Expert
  • Professor of Locus
  • *****
  • Posts: 1022
  • Thanked: 126 times
    • View Profile
Re: Android 11+, changes
« Reply #96 on: December 16, 2021, 11:01:34 »
There is a difference between int and ext SD private folders.
Google did not only create this mess by they new policy, they also failed to implement the MANAGE_EXTERNAL_STORAGE in a consistent way.
Hence even x-plore which has this permission cannot  write files to ext SD private folders, but it can create folders ...
PC USB connect is the only way so far.
 

Offline slarti76

  • Expert
  • Padavan of Locus
  • ***
  • Posts: 378
  • Thanked: 70 times
  • Country: 00
    • View Profile
  • Device: Galaxy S21, XCover Pro - Galaxy Tab S5e
Re: Android 11+, changes
« Reply #97 on: December 16, 2021, 12:42:56 »
If it wasn't so braindead, it would even be funny that Google allows app X to access internal data files of app Y on intSd, which cannot be accessed without Android, while disallowing it on an extSd, which you can always just yank out and attach to a Windows machine where due to exFAT you can do whatever you like wherever you like...
 

Offline michaelbechtold

  • Expert
  • Professor of Locus
  • *****
  • Posts: 1022
  • Thanked: 126 times
    • View Profile
Re: Android 11+, changes
« Reply #98 on: December 16, 2021, 12:57:40 »
Well, this access required this strongly regulated permission.
To me the braindead thing is to forbid access to root level folders. For sensitive stuff they could and should restrict access to private folders. And app developers should use these places for sensitive stuff.
But something like /Locus was never private in the sense of secrets or security challenge.
 

Offline freischneider

  • Expert
  • Professor of Locus
  • *****
  • Posts: 1048
  • Thanked: 123 times
    • View Profile
  • Device: Xiaomi Redmi Note 10 Pro, Android 11, Locus Map 4 Gold, Locus-Device-ID: aa54a2bc9
Re: Android 11+, changes
« Reply #99 on: December 16, 2021, 13:47:30 »
Well, this access required this strongly regulated permission.
To me the braindead thing is to forbid access to root level folders. For sensitive stuff they could and should restrict access to private folders. And app developers should use these places for sensitive stuff.
But something like /Locus was never private in the sense of secrets or security challenge.
Maybe you can request an exception from google for less sensitive data. I would write to google. But I do not know a contact person.
 

Offline michaelbechtold

  • Expert
  • Professor of Locus
  • *****
  • Posts: 1022
  • Thanked: 126 times
    • View Profile
Re: Android 11+, changes
« Reply #100 on: December 16, 2021, 14:37:36 »
Only Asamm could do that for Locus, but they said Google is not responsive or supportive, so they did not try.
Hopefully the approach via /Android/media will work and be performant on both, int and ext SD. Then, with some other smaller changes the pain and turmoil should be over.
Fingers crossed!
 

Offline Menion

  • Locus team
  • Professor of Locus
  • *****
  • Posts: 12823
  • Thanked: 952 times
  • Country: cz
    • View Profile
    • https://www.asamm.com
  • Device: Pixel 5, A12
Re: Android 11+, changes
« Reply #101 on: December 21, 2021, 10:08:18 »
Summary of the current state ...

So after a push and push on the Google support

- Locus Map 4 passed a request on "All files access" (don't ask me how this is possible, probably some India guy had a bad day). So the latest app on Google Play has temporary!! exception. We have a little more time to prepare better on limited access now.

- Locus Classic (Locus Map Pro) request was declined. Currently we are waiting on another attempt, but as expected, this should not be allowed to such kind of app at all

- latest Locus Map 4 already has enabled support for /sdcard/Android/media/menion.android.locus/maps(Vector) directory, so feel free to try it. Just insert maps there, the app should load them automagically during (re)start.

Feel free to ask if something is not clear.
- Official help (ideas, questions, problems): help.locusmap.eu
- Advanced topics, sharing of knowledges: you're here!
- LM 4 Beta download, LM 4 final download
 
The following users thanked this post: tapio, Andrew Heard

Offline tapio

  • Expert
  • Master of Locus
  • ****
  • Posts: 875
  • Thanked: 182 times
  • Country: 00
    • View Profile
Re: Android 11+, changes
« Reply #102 on: December 21, 2021, 10:46:10 »
latest Locus Map 4 already has enabled support for /sdcard/Android/media/menion.android.locus/maps(Vector) directory, so feel free to try it. Just insert maps there, the app should load them automagically during (re)start.

Thanks. "Some indian guy" - hrhrhr.

Please (if not already happened):

a) add support for the media folder in the UI (prefer it over Android/data)
b) support Android/media on Android <11

So all users use the same places, makes support easier. I'm on Android 10, but I want to migrate all my stuff to future-safe places.

Question: AFAIK if files are in the private folder under Android/data, they are deleted when uninstalling Locus Maps, we all know this is a big deal if we have tons of Maps and SRTM files there.
Does this also apply to Android/media?
« Last Edit: December 21, 2021, 10:49:58 by tapio »
LM4 USER ID: 1AACAFF2A2
You could do a lot with Tasker: https://youtu.be/fLIRc8sn__g
 

Offline michaelbechtold

  • Expert
  • Professor of Locus
  • *****
  • Posts: 1022
  • Thanked: 126 times
    • View Profile
Re: Android 11+, changes
« Reply #103 on: December 21, 2021, 12:26:07 »
...
 but as expected, this should not be allowed to such kind of app at all
...

Given the unprofessional carelessness of the Google architects, I can agree only in principle, but not in practical terms. They simply forgot use cases beyond pictures and videos, and ignored hard performance requirements when it comes to SD.
Hence I consider it just adequate that as a temporary remedy they grant such permission.
And if /Android/media show prove to be the magic wand (fast in any case, no delete at uninstall), then they should have promoted that as "best practise" for above use cases.

Fingers crossed ...
 

Offline tramp20

  • Expert
  • Master of Locus
  • ****
  • Posts: 589
  • Thanked: 5 times
  • Country: 00
    • View Profile
Re: Android 11+, changes
« Reply #104 on: April 23, 2022, 14:05:40 »
Hi,
how can I force Locus 4 and Locus classic to use android\media\locus...?

Sorry I had always rooted smartphones (now LOS 18.1 Android 11) and without these new problems I did not follow these threads.
Bot now I have a new Sony Xperia 5 ii (Android 12) and for the next time without root :-(
Sony Xperia Z1c   Android 11 LOS 18.1
Sony Xperia 5 ii    Android 12