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

Offline michaelbechtold

  • Expert
  • Professor of Locus
  • *****
  • Posts: 1010
  • Thanked: 126 times
    • View Profile
Re: Android 11+, changes
« Reply #75 on: December 06, 2021, 15:55:03 »
Even on the migrated Tablet the SRTMs are in their original place. EXT SD, but not in the private structure,
Menion might be able to tell pot. difference in performance.
 

Online Menion

  • Locus team
  • Professor of Locus
  • *****
  • Posts: 12780
  • Thanked: 928 times
  • Country: cz
    • View Profile
    • https://www.asamm.com
  • Device: Pixel 5, A12
Re: Android 11+, changes
« Reply #76 on: December 06, 2021, 20:21:15 »
@freischneider
SRTM data needs fast access when you use hill-shading. Anyway, truth is that HGT files that are currently used should be cached in memory, so it should be slow only for this first-time app to use it. I'll have to do some benchmarks, but if you do not feel any difference when using hill-shading, no worry, and use it directly from the SD card.

@michaelbechtold
thanks for the summary and help with this complicated topic! The current state is definitely not a final version. We will be updating also based on the problems and support on the help desk!

Difference in performance > as mentioned in second topic - it will need some benchmark to verify the real impact on battery and performance.
- 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: freischneider

Offline tapio

  • Expert
  • Master of Locus
  • ****
  • Posts: 861
  • Thanked: 176 times
    • View Profile
Re: Android 11+, changes
« Reply #77 on: December 07, 2021, 12:29:02 »
I am not sure. I think, after moving "maps" to the external storage the map in "Preload global map" wasn't configured any more.

Here I zoom from the global map into some random area, which is not cached. Hillshading is on and I use Sonnys 24mb hgt files. SRTM on ext sd (those are "NM" cards on Huawei). Map is OAM V5, Device is Mate20X.
I don't think it was faster on int sd. Definitely alright for me.
https://youtu.be/e0dnk8q71Gk
« Last Edit: December 07, 2021, 12:40:25 by tapio »
LM4 USER ID: 1AACAFF2A2
 
The following users thanked this post: freischneider

Offline michaelbechtold

  • Expert
  • Professor of Locus
  • *****
  • Posts: 1010
  • Thanked: 126 times
    • View Profile
Re: Android 11+, changes
« Reply #78 on: December 07, 2021, 12:54:24 »
Same global map thing in my migration. But easy fix to set it right manually.
 

Online Menion

  • Locus team
  • Professor of Locus
  • *****
  • Posts: 12780
  • Thanked: 928 times
  • Country: cz
    • View Profile
    • https://www.asamm.com
  • Device: Pixel 5, A12
Re: Android 11+, changes
« Reply #79 on: December 07, 2021, 14:15:02 »
Yes, there may be a few more settings lost (like a global default world map) when moving the map. I never expected that something like this will happen so on a few places in the app are used absolute paths. Sorry ...
- 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 tapio

  • Expert
  • Master of Locus
  • ****
  • Posts: 861
  • Thanked: 176 times
    • View Profile
Re: Android 11+, changes
« Reply #80 on: December 07, 2021, 16:42:36 »
Same global map thing in my migration. But easy fix to set it right manually.
Of course, just thinking about newbies or people being unaware, it's after all a setting that you usually set and forget...
LM4 USER ID: 1AACAFF2A2
 
The following users thanked this post: michaelbechtold

Offline michaelbechtold

  • Expert
  • Professor of Locus
  • *****
  • Posts: 1010
  • Thanked: 126 times
    • View Profile
Re: Android 11+, changes
« Reply #81 on: December 07, 2021, 16:59:38 »
...
Of course, just thinking about newbies or people being unaware, it's after all a setting that you usually set and forget...

True.
 

Offline michaelbechtold

  • Expert
  • Professor of Locus
  • *****
  • Posts: 1010
  • Thanked: 126 times
    • View Profile
Re: Android 11+, changes
« Reply #82 on: December 07, 2021, 17:04:34 »
I have not tried a migration with totally different root level map folders in place.

Something like /ExtSD/OAM or /IntSD/World, outside /Locus.
Will Locus migrate them all? Automatically?

Somebody has experience?

For sure @Menion can tell :-)
 

Offline tapio

  • Expert
  • Master of Locus
  • ****
  • Posts: 861
  • Thanked: 176 times
    • View Profile
Re: Android 11+, changes
« Reply #83 on: December 12, 2021, 16:18:24 »
@Menion, please take note! Message from C. Ghisler, tcmd dev.

https://ghisler.ch/board/viewtopic.php?p=407841#p407841

Quote
Try asking the author to use Android/media on the SD card instead of Android/data. The app should be able to access this folder without special rights, and other apps can write there just fine.
« Last Edit: December 12, 2021, 16:26:41 by tapio »
LM4 USER ID: 1AACAFF2A2
 

Offline slarti76

  • Expert
  • Padavan of Locus
  • ***
  • Posts: 372
  • Thanked: 67 times
    • View Profile
  • Device: XCover Pro, Galaxy S9 - Galaxy Tab S5e
Re: Android 11+, changes
« Reply #84 on: December 13, 2021, 07:47:02 »
@Menion, please take note! Message from C. Ghisler, tcmd dev.

https://ghisler.ch/board/viewtopic.php?p=407841#p407841

Quote
Try asking the author to use Android/media on the SD card instead of Android/data. The app should be able to access this folder without special rights, and other apps can write there just fine.
Maps in the media folder - that would be awesome. Well, not awesome compared to pre-A11 behaviour - one might ask what's the point for Google to enforce all these changes, when there's still a folder that can be accessed freely? -, but still. If it works, I'll take it!
 

Offline 0709

  • Apprentice of Locus
  • **
  • Posts: 112
  • Thanked: 49 times
    • View Profile
    • Locus track navigation
  • Device: THL4000 CM12.1 (A5.1.1) MI A2 Lite (A9)
Re: Android 11+, changes
« Reply #85 on: December 13, 2021, 10:26:05 »
Hi Android 11 users.

Can you have a small test for me by Android 11 pse ?   Someone ?
Download open Andromap by a browser ( Ex. Andorra).
For the next actions (I) do use the Cx Explorer (recent updated)  (or any other capable explorer)

By Cx explorere unzip the Andorra.zip into:
Folder Downloads > folder mapsVector > folder Andorra > = Andorra by 3 files
Also  you can dowload a theme. Do not unzip !
Put the zip in Downloads > (example in) the Folder mapsVector.

Install the Cruiser app.
https://play.google.com/store/apps/details?id=gr.talent.cruiser&hl=nl&gl=US

Open the Cruiser app:
By the Cruiser hamburger menu:
Select map > open maps > open maps (or add maps) > By Cx Exlorer (or other) > set Downloads > mapsVector > Andorra > Andorrra_oam.osm.map > set.
The Andorra map should show up now. Map displays correctly ?

By the same Cruiser map menu you can select a standard map style
OR
Install a theme this by the same procedures by using Cx Explorer. (Do not unzip but directly slect theme.zip !)
In the Cruiser map menu you can set the thema map layers. Display correctly ?

I do know that Emux the dev from Cruiser and Kurviger app had a change about a year ago in order to prepare the transition to A11 where he replaced the app file explorer than by an external file explorer. (helper) (Emux  recommanded than to use Google Files for these actions)


https://forum.kurviger.de/t/app-storage-access-framework/4409/20?u=0709
https://forum.kurviger.de/t/app-storage-access-framework/4409/28?u=0709
Locus Pro 3.59.0
 

Offline karlchick

  • More than Newbie
  • *
  • Posts: 76
  • Thanked: 59 times
    • View Profile
  • Device: Samsung Galaxy A3 2017
Re: Android 11+, changes
« Reply #86 on: December 13, 2021, 20:20:09 »
Hmm... I'm experiencing very slow performance access from lm4 after relocating all my maps/themes etc from their ext_sd root folder you
To their own lm4 ext_sd private folder. Lm4 takes along time to load now with a blank screen for 15-25secs, opening the themes menu is slower and drawing the maps is significantly slower, to point that I would consider it almost unusable.

I kept a copy of the files and restored them after the move, since lm3 is still using them in the root directory. Lm3 is still running fine and snappy, no delays loading or using themes menu.

I was going to uninstall lm3, since I don't want two copies of my maps, and lm4 was looking OK, until now. Now I find using lm3 more of a joy...

Is there a known issue for this performance hit? I don't want to put all my maps on internal memory as they are over 32gb.
 

Offline michaelbechtold

  • Expert
  • Professor of Locus
  • *****
  • Posts: 1010
  • Thanked: 126 times
    • View Profile
Re: Android 11+, changes
« Reply #87 on: December 13, 2021, 22:14:51 »
Maybe a really dirtry trick could help - 50:50 chance; I'd guess:
I found that when you move maps/Vector to extSD, LM 4 still screens intSD private mapsVector.
x-plore, Solid explorer and TC can work wizth intSD (on many, maybe not all) devices.
So you may copy the theme folder to intSD. I found x-plore can delete folders on extSD. Hopefully, after a deletion of the themes from extSD Locus would use the ones found on intSD mapsVector.
The mapsVector SETIING however should stay with extSD inside Locus, becasue there is no other way to get maps to extSD...
Good luck
Cheers
Michael

PS: I found the same pain on my Tab S6 lite (also reported it), but have not found time to try above (because it only came to my mind when I read your report :-)
 

Offline karlchick

  • More than Newbie
  • *
  • Posts: 76
  • Thanked: 59 times
    • View Profile
  • Device: Samsung Galaxy A3 2017
Re: Android 11+, changes
« Reply #88 on: December 14, 2021, 10:58:00 »
Well I tried Michael's suggestions:
  • moving the themes to IntSD in private folder (while custom folders still point to ExtSD, did not work. Even worse it took ~120 secs with a blank screen on loading, and there was only the internal theme available.
  • I notice there were an empty set of Locus folders in IntSD\Locus\ etc, tried moving them there, say result
  • Lastly I moved them back to the ExSD\android\data\men... folder and then it returned to the slow loading of about 20secs (~10-15 of blank screen) and still very slow to use...

So.. still looking for a solution/improvement.

I really don;t understand why LM4 was working fine using everything on ExtSD before the Android 11 relocation thing, and now is really sluggish? I sometimes get a pause and the android OS kicks in and asks if I want to close or wait for locus map... never did this before moving the data to private folder...
 

Offline michaelbechtold

  • Expert
  • Professor of Locus
  • *****
  • Posts: 1010
  • Thanked: 126 times
    • View Profile
Re: Android 11+, changes
« Reply #89 on: December 14, 2021, 11:49:42 »
I understood from earlier posts that the access to EXT SD content is less efficient and the order API calls are no longer available. I saw that too, when installing themes on ext SD via Locus Actions from OAM. Hence my dirty idea. Pity it did not work.
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. ?