Ask / Submit
2

XA2 osmand and sdcard

asked 2019-07-03 11:04:23 +0300

cy8aer gravatar image

(probably already asked just kick this off then)

I am not able to set a path to sdcard for osmand because of permission problems. With the older dalvik versions it was quite easy: Create the directory in the sdcard, set the owner of osmand to this directory and set this path in osmand setting. But that does not really work and: I cannot find the application itself and therefor cannot get the real permissions for the path...

edit retag flag offensive close delete

1 Answer

Sort by » oldest newest most voted
3

answered 2019-07-03 12:37:40 +0300

DrYak gravatar image

updated 2019-07-05 17:36:23 +0300

Two things :

OSMand and SDcard

The applications (like any other android app) should be visible under /home/.android/data/data/net.osmand. You should be able to check the for the correct UID/GID there.

According to the Jolla devs, the way the SD card appears to Android apps is in the process of being changed and by the next version 3.1.0 it should have reached target (hopefully ?) That means that the way it worked in the past, the way it works in 3.0.3 and the way it will work in a couple of weeks are all different. Expect to have some hiccups when trying to share storage.

This is mostly due that now, with XA2 and 8.1 Oreo, AOSP is running inside a container (Instead of a Java-like VM like up to 4.4 Kitkat) and doesn't necessarily see the same paths as the main Linux host.

In order to explore inside the container, you need to get a shell inside with (as root, so devel-su) :

 lxc-attach -n aliendalvik /system/bin/sh

By typing mount on the shell inside theLXC aliendalvik container, I (sometime) see this entry popping up :

/run/media/nemo on /data/media/0/sd type fuse (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other)

So the Sailfish-side directory where the removeable media are mounted (/run/media/nemo), should show up in /data/media/0/sd

Again, according to what the Jolla official devs have said in chats and blog posts, this is subject to change and we should revisit this in a couple of weeks once 3.1.0 is released.

Native apps

I would actually advise to completely skip the Android problem and go straight for Sailfish Native apps.

  • OSM Scout Server (by Rinigus) enables you to run your own local copy of OSM to get maps even offline (and has a simple GUI to download maps)
  • Pure Maps (also maintained by Rinigus) is a native map display, that can be set to use your local OSM Scout server, or official Open Street Maps internet servers as a source.

Multiple other apps can also use that local server (e.g. sport tracker Laufhelden).

It's much easier to configure to use SD cards (being a native app).

edit flag offensive delete publish link more

Comments

OSMand and SDcard: Oh, I did not expect they use lxc (this might be a cool idea). Thanks for this information.

Native apps: Yes this very good app is just running. OsmAnd is more some historic thing.

cy8aer ( 2019-07-03 14:55:53 +0300 )edit

The thing doesn't seem to be reliable, but occasionally this pops-up on the currently-mounted-table inside the lxc container:

/run/media/nemo on /data/media/0/sd
DrYak ( 2019-07-05 17:31:54 +0300 )edit

hm, because of the containerization you are not really able to break out. But we have pure maps of course

cy8aer ( 2019-07-08 10:29:08 +0300 )edit
Login/Signup to Answer

Question tools

Follow
2 followers

Stats

Asked: 2019-07-03 11:04:23 +0300

Seen: 334 times

Last updated: Jul 05