We have moved to a new Sailfish OS Forum. Please start new discussions there.
50

Possibility to set location manually

asked 2014-01-31 11:20:43 +0300

tokaru gravatar image

updated 2014-05-02 19:04:09 +0300

Often it is enough to let applications know that I am "somewhere around", without revealing a detailed pattern of movement.

I suggest a system-wide option to set the location manually, by selecting in on a map.

Advantages:

  • better privacy
  • less energy consumption compared to GPS/WLAN geolocation
edit retag flag offensive close delete

Comments

3

For reference (regarding UI implementation): for Android there is an app called "Fake GPS Provider", which does this very well.

Nice to have features:

  • Location favorites, for easy switching of regularly visited locations
  • Fake movement (sooner or later the data collectors will try to invade :-/ )
tokaru ( 2014-02-04 23:00:24 +0300 )edit
2

I know this is old and all but as there's still no solution I decided to have a look. It seems SailfishOS uses GeoClue and for that are mocking solutions available. So the first thing I tried was to compile and install https://github.com/inzanity/geoclue-mock - I also moved everything from /usr/local to /usr after installing as Jollas own GeoClue & co files are there, too.

After that I setted a fake GPS location via terminal:

[nemo@Sailfish ~]$ gsettings list-recursively | grep -i geoclue
org.freedesktop.Geoclue gps-baudrate uint32 0
org.freedesktop.Geoclue gps-device ''
fi.inz.GeoclueMock active true
fi.inz.GeoclueMock longitude 11.550343
fi.inz.GeoclueMock fuzz 0.01
fi.inz.GeoclueMock latitude 48.10088900000000

and openend 2 map apps: One native, one for Android: It showed my old position (I even tried to restart the phone (Jolla C)) instead of the faked one.

Now I'm really no expert with GeoClue so maybe the Readme of geoclue-mock is incomplete and I'm missing some setting somewhere?

//EDIT:

[root@Sailfish nemo]# ps aux | grep geoclue
nemo      6738  0.0  0.1  17756  2976 ?        Sl   14:43   0:00 /usr/libexec/geoclue-master
root      6748  0.3  0.4  82300  8364 ?        Sl   14:43   0:02 /usr/libexec/geoclue-hybris
nemo      7959  0.6  0.2  54372  5204 ?        Ss   14:52   0:01 /usr/libexec/geoclue-mlsdb                                  
nemo      8199  0.0  0.2  46620  4704 ?        Sl   14:54   0:00 /usr/libexec/geoclue-here
nemo      8202  0.0  0.0   3196   464 ?        S    14:54   0:00 /usr/bin/invoker --type=qt5 /usr/libexec/geoclue-mlsdb
root      8291  0.0  0.0   1920   524 pts/0    S+   14:56   0:00 grep geoclue

So it seems geoclue-mock isn't running at all. Any ideas?

V10lator ( 2016-11-16 15:54:38 +0300 )edit
1

I know this is an old thread, but has anyone gotten this working?

sunburnedpenguin ( 2017-11-27 23:06:27 +0300 )edit

2 Answers

Sort by » oldest newest most voted
3

answered 2018-11-06 23:46:33 +0300

Jk gravatar image

Good idea/feature indeed, especially because battery saving advantage. This is should be easy to add to sailfish.. Fingers crossed to get this feature some day.

edit flag offensive delete publish link more

Comments

Has anyone discovered a way to set the GPS position manually yet, either through CLI or an app?

sunburnedpenguin ( 2019-03-01 11:11:19 +0300 )edit
2

answered 2018-11-06 21:25:56 +0300

brinZ gravatar image

How to disable(enable) physical gps from command line?

edit flag offensive delete publish link more
Login/Signup to Answer

Question tools

Follow
11 followers

Stats

Asked: 2014-01-31 11:20:43 +0300

Seen: 1,122 times

Last updated: Nov 06 '18