android_device_xiaomi_sdm66.../gps
–Gareth Kitchen 7a54003bff
sdm660-common: gps: Localise NTP to improve GPS TTFF
Testing response times to time.android.com from around the globe reveals
in ms:-

Europe			 <30
Middle East		 <68
North America		<150
Johannesburg		 183
Buenos Aires		 220
Tokyo			 226
Sydney			 276
Hong Kong		 285
Brisbane		 295
Mumbai			 349
Beijing			4691
Shanghai		4906
Russia			 n/a

Whilst time.android.com is NOT used for GPS NTP, North American time servers
are, by specifying north-america.pool.ntp.org as default in the framework,
to align with pixel devices.  I am assuming similar response times to these
servers from around the world.

Great for North America and it appears Europe but it does not address the
global issue. Also, the pool.ntp.org project forbids both hardware and
software vendors from using these default zone names.
http://www.pool.ntp.org/en/vendors.html

It makes sense, therefore, to leverage the ntp.org's existing 'android' vendor
name to make the default ntp server for GPS purposes:
1.android.pool.ntp.org this will return a random but accurate NTP server in
close geopraphic proximity to the device.

Testing on my own build in the UK seems to improve hot and cold TTFF
considerably.

Change-Id: I144af45757efa35b32daf034eece6e046d2bde79
2021-05-18 05:04:04 +06:00
..
android sdm660-common: Downgrade gps hal to LA.UM.9.6.2.r1-03300-89xx.0 2021-03-22 13:01:57 +06:00
batching sdm660-common: Checkout gps hal from LA.UM.9.6.2.r1-03300-89xx.0 2021-03-03 00:01:41 +06:00
core sdm660-common: Downgrade gps hal to LA.UM.9.6.2.r1-03300-89xx.0 2021-03-22 13:01:57 +06:00
etc sdm660-common: gps: Localise NTP to improve GPS TTFF 2021-05-18 05:04:04 +06:00
geofence sdm660-common: Checkout gps hal from LA.UM.9.6.2.r1-03300-89xx.0 2021-03-03 00:01:41 +06:00
gnss sdm660-common: Downgrade gps hal to LA.UM.9.6.2.r1-03300-89xx.0 2021-03-22 13:01:57 +06:00
location sdm660-common: Downgrade gps hal to LA.UM.9.6.2.r1-03300-89xx.0 2021-03-22 13:01:57 +06:00
pla sdm660-common: Checkout gps hal from LA.UM.9.6.2.r1-03300-89xx.0 2021-03-03 00:01:41 +06:00
utils sdm660-common: Downgrade gps hal to LA.UM.9.6.2.r1-03300-89xx.0 2021-03-22 13:01:57 +06:00
Android.bp sdm660-common: Checkout gps hal from LA.UM.9.6.2.r1-03300-89xx.0 2021-03-03 00:01:41 +06:00
Android.mk sdm660-common: Checkout gps hal from LA.UM.9.6.2.r1-03300-89xx.0 2021-03-03 00:01:41 +06:00
CleanSpec.mk sdm660-common: Import GPS HAL from LA.UM.8.2.r1-05100-sdm660.0 2020-02-03 16:27:41 +01:00
configure.ac sdm660-common: Import GPS HAL from LA.UM.8.2.r1-05100-sdm660.0 2020-02-03 16:27:41 +01:00
gps_vendor_board.mk sdm660-common: Import GPS HAL from LA.UM.8.2.r1-05100-sdm660.0 2020-02-03 16:27:41 +01:00
gps_vendor_product.mk sdm660-common: Checkout gps hal from LA.UM.9.6.2.r1-03300-89xx.0 2021-03-03 00:01:41 +06:00
loc-hal.pc.in sdm660-common: Import GPS HAL from LA.UM.8.2.r1-05100-sdm660.0 2020-02-03 16:27:41 +01:00
Makefile.am sdm660-common: Import GPS HAL from LA.UM.8.2.r1-05100-sdm660.0 2020-02-03 16:27:41 +01:00