Where is this gps.conf ?
I can only find one in /vendor/etc/gps.conf .
On Xperia 10 / SFOS 4.5.0.19 it has 139 lines.
The one from Github has 400 lines.
On Volla / SFOS 4.4.0.72 this file is not present on this path.
On Volla there is a symlink in /etc/gps.conf that points to /system/etc/gps.conf and is reported as defect.
In /system/etc/ there is in fact no such file present, but a gps_debug.conf is. It has 52 lines.
Despite all this, GPS works on the Volla. Any ideas?
The location of gps.conf depends of the device. On X10, only in /vendor/etc/gps.conf. On XA2, in /etc/gps.conf but it is a symlink to /vendor/etc/gps.conf.
According to my tests, I don’t think that any change to gps.conf makes a difference.
On my X10III 4.5.0.19, without any gps.conf and with settings “without network connection”, I got a fix in 66s from cold start (after reboot) inside a building (but close to the window).
I do it with GPS Test, but on SFOS it is GPSInfo. I don’t remember if it can do it. And I’m not even sure it matters so much. I just mentioned it as something to try. Maybe try to do as @ssj2micvm did and see if it doesn’t help. I’d be very interested in feedback, because I’d like to come back to SFOS at some point and it would be nice to know if this gps.conf solves the gps problems that are particularly prevalent on the XA2 running SFOS. Also, the very first time, it may take 1-2 minutes to get a fix. The 5 seconds I mentioned is after that.
It seems to make a difference if the device needs this file. E.g; On Xa2, using the file linked above leads to inoperative GPS.
I think the gps.conf content are, and must be, adapted to the gps chip.
The above linked file seems made for a Xiaomi device. (line 305).
I guess trying to exchange these files between machines is like mounting a Mazda carburettor into a Peugeot without engine modifications. It will hardly work.
The XA2 gps.conf contains 22 useful lines, once comments are removed (note the use of google services):
Now, the one who will have time to make researches in order to understand the function of each line will be able to try modifications and be the king with some successful results.
In my case with a Xperia 10 II, the GPS was able to see about 25 satellites but not able to use anyone. This is because I received Android 12 pre-installed while Android 11 is required even if the Sailfish OS installation guide does not warn about it.
After this tweak, SFOS GPS positioning works as good as every other GPS device, of course without any A-GPS or internet connection. Time to position fix 5 sec - 1 min, depending on satellite reception conditions and how long GPS was turned off since last position fix.