-
-
Notifications
You must be signed in to change notification settings - Fork 876
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[android] Direct device-to-device sharing of map files #1801
Comments
I don't think that you named the main problem. From our users and from the past, the more actual problem was this one:
The goal is to copy (import) pre-downloaded maps on the device somehow. Do you see any solutions for that? |
Sorry for the late answer. Sure, my proposal solves exactly this problem. Android supports numerous ways to share files via Sharing menu. Some of them don't require the Internet connection at all (e.g. Bluetooth and Nearby Sharing). You can transfer map files from one device to another easily without need to have the storage access. |
Android to android sharing is very good start, but Android to iOS sharing is also needed. Use case: I have iPhone, my wife prefers Android and we usually forget to download some maps on one of the phones. |
That in theory could be done via a Bluetooth Sync. |
Technically, another way to share map files will be by implementing a DocumentsProvider for them - hence the files will be visible and copiable via a file manager. Its just an assumption based on reading the docs so far :) |
For anyone trying to load mwms with root access, the maps are stored at /storage/emulated/0/Android/data/app.organicmaps/files/{6 numbers - map generation date} |
Given Android is increasingly closing down access to data, apps like Cruiser & Locus offer alternative storage choices into media (internal or extsd). The access control drift in here still appears to be slightly more tolerant so far. |
These apps have unsafe android.permission.WRITE_EXTERNAL_STORAGE permission. If you use external storage in OM settings, in most cases you usually are able to access maps using adb. |
Someone with too much fear of the outside world should already better not own any electronic device ? Anyway @biodranik I wanted to know the ins and outs of it. I am not a dev so I have to inquire. The answer (cruiser) was. |
Problem
I am hearing countless complaints that the maps directory is not accessible anymore. Unfortunately, we have some technical limitation on Android 11+. There is no convenient way to use the shared storaged anymore.
Solution
The typical use-case is to transfer maps files from device to another without having the Internet connection. For example, you have a map downloaded, but your fellow traveler doesn't. Instead of thinking about raw access to the private storage, we can implement direct device-to-device sharing.
The workflow is the following:
The beatify of this approach is that users will have numerous options to exchange maps files:
Plus it provides a convenient method to test custom/new maps.
CC: @biodranik @vng
The text was updated successfully, but these errors were encountered: