Giter Club home page Giter Club logo

Comments (7)

biodranik avatar biodranik commented on June 28, 2024 1

@Misalf-git OM explicitly does not have read/write external storage permission (which allows other apps to read sensitive user data on Android 10 and below). So OM can't open file:// urls.

from organicmaps.

Misalf-git avatar Misalf-git commented on June 28, 2024

Could it be about Total Commander sending either file://xxx.kml or content://xxx.kml?

If I got it right, more recent Android versions restrict static file:// urls across apps and Google wants apps to use content:// urls instead, even for unproblematic file locations.

from organicmaps.

biodranik avatar biodranik commented on June 28, 2024

The error clearly says that permission has been denied. This should be fixed on the Total Commander side.

More details can be found here:
https://developer.android.com/training/data-storage/shared/documents-files

from organicmaps.

Misalf-git avatar Misalf-git commented on June 28, 2024

On my system (Android 12) using TC to send a .gpx/.kmz file to OM via "open with..." and having the file://url checkbox checked results in the same error.
But that's an optional feature (f.e. to workaround incompatibilities with older apps).
If I leave the file://url checkbox unchecked it works.

However, for me TC's default action when tapping a .gpx/.kmz file opens OM which then correctly imports the file.

Intercepting this intent (using "App Manager") shows that TC sends a content:// url by default on my system.

I'm not fluent with Android intents, otherwise I'd have tryed to am start a file:// url via terminal.

@biodranik , would OM with its permissions be even able to handle file:// urls?
"Permission denied" is a typical non-descriptive error message.

@snooppr , maybe your system's current app configuration for default file handling is wonky and always uses file:// url for .gpx/.kmz files by default? I'm just guessing - no idea if Android would do that.
Like maybe check Android's Settings -> Apps -> Organic Maps -> Default open -> and tap Delete current "Default open" settings (don't delete App-Data, it would delete your bookmarks etc).

Note that Total Commander also has the ability to set default "open with..." apps for choosen file extensions in TC's settings. That would be an intentional user action, though, that you would probably remember having done.

from organicmaps.

snooppr avatar snooppr commented on June 28, 2024

No problem TC. OM does not require permissions to access storage, hence the error on Android 9 (checked on agalogs). If this is sec. OM policy, nothing can be done. I will close this.

from organicmaps.

Misalf-git avatar Misalf-git commented on June 28, 2024

@snooppr

Note that Total Commander also has the ability to set default "open with..." apps for choosen file extensions in TC's settings.

resized_Screenshot_20240624-175058_Total Commander2024-06-24_17-51-20_1414.png

from organicmaps.

snooppr avatar snooppr commented on June 28, 2024

@snooppr

Note that Total Commander also has the ability to set default "open with..." apps for choosen file extensions in TC's settings.

resized_Screenshot_20240624-175058_Total Commander2024-06-24_17-51-20_1414.png

I know about it and wrote about it in my first message. This workaround is not very convenient, and newbie TC users will think that everything is simply broken.

from organicmaps.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.