2 ms·
I would export A-GPS [1] data to be the same for everyone. It's just orbital data about the satellites that the GPS satellites also send you, but at a speed of
by jraph 3y ago
I would export A-GPS [1] data to be the same for everyone. It's just orbital data about the satellites that the GPS satellites also send you, but at a speed of 50 bit/s and you have to wait for the satellite to start broadcast it. As a consequence, it would take about 10 mins to have a fix, while it is instantaneous when the data is already there because it was downloaded beforehand. This data is typically provided by Qualcomm for phones based on their chips, but I guess this data is provided by many other companies.
This is how you would typically do it on a phone running mobile Linux / ModemManager:
wget -N http://xtrapath2.izatcloud.net/xtra3gr.bin
sudo mmcli -m any --location-inject-assistance-data=xtra3gr.bin
And I do get an instant GPS fix on the PinePhone Pro with this.
I don't know how it works on Android, I didn't know how this stuff worked back then, I would expect something in the OS to fetch and inject A-GPS data on a regular schedule but that might be something to look into on your side. Some devices are just worse than others when it comes to get a GPS fix, regardless the OS.
https://en.wikipedia.org/wiki/Assisted_GPS https://en.wikipedia.org/wiki/Assisted_GPS