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

[answered] Two identical gps.conf files. Which one used by apps. (v2.0.2.45)

asked 2016-06-26 09:18:51 +0200

Schturman gravatar image

updated 2016-06-26 15:53:14 +0200

Hi.
After update I noticed that we have two identical gps.conf files. One in /etc/gps.conf and second one in /system/etc/gps.conf.
I don't remember if on 2.0.1.11 it also was two file... I think the second one not was. Questions is:
1. Why two files ?
2. Which one used by apps like Waze, Maps etc... for getting supplier:

SUPL_HOST=supl.pos.nlp.nokia.com
SUPL_PORT=7275

Thanks

edit retag flag offensive close delete

Comments

Just checked it on 2.0.1.11 and there are also both config files avialiable. :)

Alex ( 2016-06-26 09:34:29 +0200 )edit

Thanks....

Schturman ( 2016-06-26 10:06:17 +0200 )edit

Thanks for answer, but in my device both files is a real files, not symlink.
Also on 2.0.1.11 for me it was a real file /etc/gps.confI even created patch for changing SUPL_HOST and SUPL_PORT (https://openrepos.net/content/schturman/patch-gps-supplier). This what I remember...

P.S. Ok, probably you are right and /etc/gps.conf should be a symlink, but sed command changed it to the real file. Just now created a simple file inside /system/etc and symlink to /etc,and when I used sed command it converted symlink to real file...
Thanks I will update my app. And please convert your comment as answer ;)

Schturman ( 2016-06-26 11:45:06 +0200 )edit

1 Answer

Sort by » oldest newest most voted
2

answered 2016-06-26 10:24:07 +0200

filipb92 gravatar image

updated 2016-06-26 10:27:09 +0200

On 2.0.1.11 /etc/gps.conf is a symlink to /system/etc.gps.conf, So in reality only one file but also needed as /etcgps.conf, my guess is that the symlink in /etc is needed for all non android apps and the one in /system/etc is for all android apps. as they can't see /etc

edit flag offensive delete publish link more

Comments

Same here (Taalojärvi). However, since I upgraded to 2.0.1.11 Prey anti-theft is unable to show the location of my device (the phone appears to be reached, but its location is still the latest before I upgraded 9 months ago)

objectifnul ( 2016-08-15 10:36:22 +0200 )edit

Run this 2 commands as ROOT and it will restore the symlink of /etc/gps.conf
/bin/rm -f /etc/gps.conf
/bin/ln -s /system/etc/gps.conf /etc/gps.conf

Schturman ( 2016-08-15 11:11:47 +0200 )edit
Login/Signup to Answer

Question tools

Follow
1 follower

Stats

Asked: 2016-06-26 09:18:51 +0200

Seen: 685 times

Last updated: Jun 26 '16