📜 ⬆️ ⬇️

gps.conf for everyone, or how to speed up GPS on Android

Today, once again, I thought about the topic of poor GPS signal reception on my Chinese smartphone Jiayu G2. But, unexpectedly for me, the problem was solved in just a couple of minutes - the “Chinese” finds satellites within 20 seconds. And now everything is in order.

In October, I received a Chinese phone ordered on Aliexpress. The phone for that kind of money is excellent, and everything would be perfect, but the GPS module found satellites for a very, very long time, in about an hour, not faster. And this is when Wi-Fi is on and A-GPS and GPS EPO assistance are checked. I was not at all pleased and I had to remember a useful post on the livejournal blog , the tips from which I used while setting up my first smartphone on Android. The essence was reduced to editing gps.conf auxiliary programs. It helped the “Chinese friend”, but after the first (and so far the last) reset to the factory settings, the GPS began to catch even worse - leaving it for an hour outdoors in search of satellites and no result. And today I began again to search for that useful post on the livejournal blog and came across an update in the post header:
image

"Fantastic!" I thought, and immediately followed the link . Compared to the first post, this time even more specific actions were suggested, namely, to replace the contents of the gps.conf file (it can be found on the /etc/gps.conf path, there must be root- rights) with the following settings:

NTP_SERVER = ua.pool.ntp.org
NTP_SERVER = 0.ua.pool.ntp.org
NTP_SERVER = 1.ua.pool.ntp.org
NTP_SERVER = 2.ua.pool.ntp.org
NTP_SERVER = 3.ua.pool.ntp.org
NTP_SERVER = europe.pool.ntp.org
NTP_SERVER = 0.europe.pool.ntp.org
NTP_SERVER = 1.europe.pool.ntp.org
NTP_SERVER = 2.europe.pool.ntp.org
NTP_SERVER = 3.europe.pool.ntp.org
XTRA_SERVER_1 = / data / xtra.bin
AGPS = / data / xtra.bin
AGPS = http: //xtra1.gpsonextra.net/xtra.bin
XTRA_SERVER_1 = http: //xtra1.gpsonextra.net/xtra.bin
XTRA_SERVER_2 = http: //xtra2.gpsonextra.net/xtra.bin
XTRA_SERVER_3 = http: //xtra3.gpsonextra.net/xtra.bin
DEFAULT_AGPS_ENABLE = TRUE
DEFAULT_USER_PLANE = TRUE
REPORT_POSITION_USE_SUPL_REFLOC = 1
QOS_ACCURACY = 50
QOS_TIME_OUT_STANDALONE = 60
QOS_TIME_OUT_agps = 89
QosHorizontalThreshold = 1000
QosVerticalThreshold = 500
AssistMethodType = 1
AgpsUse = 1
AgpsMtConf = 0
AgpsMtResponseType = 1
AgpsServerType = 1
AgpsServerIp = 3232235555
INTERMEDIATE_POS = 1
C2K_HOST = c2k.pde.com
C2K_PORT = 1234
SUPL_HOST = FQDN
SUPL_HOST = lbs.geo.t-mobile.com
SUPL_HOST = supl.google.com
SUPL_PORT = 7276
SUPL_SECURE_PORT = 7275
SUPL_NO_SECURE_PORT = 3425
SUPL_TLS_HOST = FQDN
SUPL_TLS_CERT = / etc / SuplRootCert
ACCURACY_THRES = 5000
CURRENT_CARRIER = common


These settings are designed for residents of Ukraine, but for residents of Russia it is very easy to adapt them by replacing ua.pool with ru.pool .
')
Next, you need to restart Android, and then start the program to work with GPS and enjoy a stable signal.

image

From myself I can add that I use the GPS Status application and after rebooting when I first started the application, I reset the cache data: call the menu in the program, then select Tools , there Manage A-GPS state and click Reset , and then Download .

Hats off to the author of the original post , respected mechanicuss. His advice helped not only me, and can help many more sufferers.

That's all. All clear sky and a stable signal from space.

Source: https://habr.com/ru/post/162735/


All Articles