Commit Graph

20 Commits

Author SHA1 Message Date
Davide Garberi
51706a4643 sanders: gps: Fix 1.1 interface leftovers
* Thanks CAF for derping as usual

Change-Id: I4a571fbc8810127cf675ff0aa29c4923b16bc62a
Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
Signed-off-by: ronaxdevil <pratabidya.007@gmail.com>
2020-03-25 03:48:56 +05:30
Gareth Kitchen
0a4075d4d5 sanders: 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
Signed-off-by: ronaxdevil <pratabidya.007@gmail.com>
2020-03-25 03:48:56 +05:30
Prema Chand Alugu
c24d074472 sanders: gps: Fix build for Pie
Signed-off-by: ronaxdevil <pratabidya.007@gmail.com>
2020-03-25 03:48:56 +05:30
Yi Kong
2acb264188 sanders: gps: Add libprocessgroup dependency to set_sched_policy users
Add libprocessgroup dependency required for set_sched_policy function.
Include sched_policy_ctrl.h header which now contains set_sched_policy
definition.

Cherry-picked from c3aba7a3 in sdm845 branch.

Bug: 111307099
Bug: 131328001
Test: builds, boots
Change-Id: Ia01e3ed6237407eef9cfc882853ad9d7697bbc63
Signed-off-by: ronaxdevil <pratabidya.007@gmail.com>
2019-10-30 14:03:57 +05:30
ronaxdevil
f5cd3ba0ca Revert "sanders: gps: add missing config file from deen"
This reverts commit e744e394e9.

Signed-off-by: ronaxdevil <pratabidya.007@gmail.com>
2019-08-28 10:22:42 +05:30
ronaxdevil
9b76f1dc94 Revert "sanders: gps: Increase batch size to max"
This reverts commit 693fe3eed4.

Signed-off-by: ronaxdevil <pratabidya.007@gmail.com>
2019-08-28 10:22:38 +05:30
Pranav Vashi
693fe3eed4 sanders: gps: Increase batch size to max
Signed-off-by: ronaxdevil <pratabidya.007@gmail.com>
2019-07-04 16:20:53 +05:30
therootlord
e744e394e9 sanders: gps: add missing config file from deen 2019-07-04 16:20:53 +05:30
therootlord
72012a5b4b sanders: update GPS configs from deen PPK29.68-16-8 2018-12-16 15:13:11 -02:00
therootlord
4695fd5bc6 sanders: gps: update to LA.UM.7.6.r1-03400-89xx.0 tag 2018-12-16 15:13:11 -02:00
therootlord
0a41b9dc1a sanders: gps: update to LA.UM.7.6.r1-02000-89xx.0 tag 2018-09-23 21:06:04 -03:00
Vachounet
4501be51f5 sanders: update GPS HAL
* LA.UM.6.5.r1-04000-8x96.0

Change-Id: I53666d7eb27d350c6a4893ad37d2a69b16fceb7e
2018-02-07 22:37:32 -02:00
Vachounet
efba297b2a sanders: update location configs 2017-12-09 16:53:02 -02:00
LuK1337
552aa26a6c sanders: replace QCOMs groups with oem_2950-oem_2952 2017-11-23 11:14:19 -02:00
Vachounet
1f8198a460 sanders: gps: switch to LA.UM.6.6.r1-04300-89xx.0 branch 2017-11-23 11:02:22 -02:00
Dimitry Ivanov
e0eb8f95ca Add missing liblog dependency
Bug: http://b/31289077
Bug: http://b/27171986
Test: remove liblog from libcutils and recompile
Change-Id: Icd2f1ae735e263296a5c6705c7b528b00aa1a94a
(cherry picked from commit 532f3378c214c3134afcb5bcc7c19ce047ec02ac)
2017-08-23 12:35:11 +02:00
Colin Cross
532ff5cdad Depend on libandroid_runtime
libloc_pla is playing tricks with -Wl,--export-dynamic to use symbols
from libandroid_runtime without depending on it.  libandroid_runtime's
headers are moving to where they are only exported to modules that
depend on it, so add a dependency and remove -Wl,--export-dynamic

Bug: 33630870
Test: builds
Change-Id: I9b0567a48ded63031085b6ba93fb3b36404279e1
(cherry picked from commit ada652709d5a1b9faedecc02739d2ed610e18f86)
2017-08-23 12:35:05 +02:00
Steve Kondik
78403cf71e gps: Fix OSS build
* Add fix from Scott/Keith for creating a forward declaration of the
   needed proprietary parts.

Change-Id: Ic958cd94b926048f4c9161884b61273bd4d93503
2017-07-14 19:47:51 +02:00
Alberto97
57e4293652 gps: Import from LA.UM.5.6.r1-01900-89xx.0 release
Change-Id: Ie959cd02b338e2cd98287fc8e16d0448faa34932
2017-07-14 19:47:48 +02:00
Vachounet
c46546dcca potter: fix gps configs 2017-04-11 10:32:49 +02:00