Skip to content

MapsforgeV3 Permissions Fix (Offline Map Fix!)#405

Open
na7q wants to merge 2 commits into
ge0rg:masterfrom
na7q:mapsforgev3
Open

MapsforgeV3 Permissions Fix (Offline Map Fix!)#405
na7q wants to merge 2 commits into
ge0rg:masterfrom
na7q:mapsforgev3

Conversation

@na7q

@na7q na7q commented Feb 1, 2025

Copy link
Copy Markdown
Contributor

This PR fixes the problem with offline maps using the MapsforgeV3 offline maps. It adds needed permissions, as well as fixes the URI storage path.

@na7q na7q changed the title MapsforgeV3 Permissions Fix MapsforgeV3 Permissions Fix (Offline Map Fix!) Feb 1, 2025
@ge0rg

ge0rg commented Dec 22, 2025

Copy link
Copy Markdown
Owner

I've tried the code, but it attempts to map a MSF URI to /storage/msf/1234567, which then fails.

@na7q

na7q commented Jan 3, 2026

Copy link
Copy Markdown
Contributor Author

There's apparently a couple devices that have this issue, and nobody is willing to take a few minutes to give me any info. So I've been unable to fix it. However, 99% of devices seem to work fine.

@ge0rg

ge0rg commented Jan 3, 2026

Copy link
Copy Markdown
Owner

This test was on a Samsung S24 device running Android 16. I've lost track of the ways that Google has mutliated SD card access over its major releases, and Samsung implementing additional quirks that often break installations. Do you have a link to the relevant MSF documentation for what you tried to achieve, or maybe an alternative approach?

What are you trying to do with this PR, and how is it supposed to work out? I would assume that you need to query the MSF content provider to obtain a real file path, which is required by mapsforge v3.

I thought about using a specific location where both the app and the file manager are allowed without additional permissions. Unfortunately, the app-specific folder on the SD card SD:/Android/data/org.aprsdroid.app can't be accessed by file managers.

Maybe the better approach would be to just kick mapsforge v3 altogether. In fact, I already have a very rough implementation using VTM which can show the map, but doesn't render stations or paths yet.

@na7q

na7q commented Jan 4, 2026

Copy link
Copy Markdown
Contributor Author

This PR very specifically allowed the mapsforge to work again on the newer OS version where it require the external storage access to get the map files. So you could select a map, and it would work fine. However this method doesn't play well when you have to abide by Google's nonsense rules for the play store.

@ge0rg

ge0rg commented Jan 4, 2026

Copy link
Copy Markdown
Owner

I understood the intention of the PR, but not the mechanism that you tried to implement. Could you please elaborate on that? I can also test and provide debug info from my phones that fail to process the functionality as designed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants