-
Notifications
You must be signed in to change notification settings - Fork 109
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 11 refuses to write to Android\data\org.openorienteering.mapper\files on SD card #1861
Comments
Thank you very much for reporting this issue. It is surprising, but it is not the first time with Android.
The Mapper app is build with |
Whether the user can input the file path and put it in another path or can solve this problem. Or add the identification of suffix. When you click the. omap file, a list of applications will pop up, but there is no OOM in the list. |
Sure. However this has never been easy with the desktop app on Android.
As a starting point, find out how to register a MIME type for Ah, and probably you don't just want to open the map file, but also all the template files you copied along with the map. |
I am an Android Developer, if OOM APP needs to modify the interface, or I can participate in the development |
For the record, I cannot reproduce on the vanilla Android 11 (Goole Pixel 2).
As a side note, files can be stored in |
I wouldn't rely on Android allowing this forever. However, the app-specifc path must work. |
This is very much welcome. Even testing/debugging with the latest version is a great contribution. The full zoo of Windows, macOS, Linux and Android targets doesn't leave much resources for each system in particular. However, note that most code is C++, that we support ancient versions of Android (great Galaxy Note tabs with Android 4.4), and that we need to build all libraries from source if they are not part of the operating system. For future progress, switching to Qt 5.15 will give us more features from the cross-platform framework, including access to Android Storage Access Framework, but it will also bump the required version of Android. Some older notes are on https://github.com/OpenOrienteering/mapper/wiki/Android. |
I tested in Android Emulator with Android 11 = API level 30 ("Pixel 3a") now: |
I've tested |
Now I managed to upload maps to the app-specific folders via Android Studio. Results:
It would be good to find what is needed to fix (2) on Android 11 while keeping the target API level at 28 for now. |
I experiment with the Storage Access Framework (SAF) around
|
Backport and changes to Qt: OpenOrienteering/superbuild#88 |
Steps to reproduce
This may be due to the new feature of Android 11, which limits the write in permission.
https://developer.android.com/about/versions/11/privacy/storage
Android 11 (API level 30) further enhances the platform, giving better protection to app and user data on external storage. This release introduces several enhancements, such as opt-in raw file path access for media, batch edit operations for media, and an updated UI for the Storage Access Framework.
The release also offers improvements to scoped storage, which makes it easier for developers to fulfill their storage use cases after they migrate to using this storage model.
Solution suggestions
Users are allowed to enter file paths and search for files themselves.
Configuration
Mapper Version: 0.9.4
Operating System: Android 11(Mi 11, MIUI 12.0.17)
The text was updated successfully, but these errors were encountered: