Commit graph

35 commits

Author SHA1 Message Date
–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
OdSazib
105be64c3f
sdm660-common: Downgrade gps hal to LA.UM.9.6.2.r1-03300-89xx.0
This is a combination of 3 commits:
-------------------------------------

* Revert "sdm660-common: Import gps configs from LA.UM.9.6.2.r1-03600-89xx.0"

  This reverts commit 1977da527c.

* Revert "sdm660-common: Checkout gps hal from LA.UM.9.6.2.r1-03600-89xx.0"

  This reverts commit 15d9c83201.

* sdm660-common: Checkout gps config from LA.UM.9.6.2.r1-03300-89xx.0
2021-03-22 13:01:57 +06:00
OdSazib
1977da527c
sdm660-common: Import gps configs from LA.UM.9.6.2.r1-03600-89xx.0 2021-03-06 20:26:06 +06:00
OdSazib
15d9c83201
sdm660-common: Checkout gps hal from LA.UM.9.6.2.r1-03600-89xx.0 2021-03-03 04:02:03 +06:00
OdSazib
5fd6060869
sdm660-common: Checkout gps hal from LA.UM.9.6.2.r1-03300-89xx.0 2021-03-03 00:01:41 +06:00
Michael Bestas
e3ca620d4c
sdm660-common: gps: Ignore some build warnings
Change-Id: If1dfd39ab820cdf5e7ac5caf05dc8fea1cd95235
2021-01-27 13:13:51 +06:00
Michael Bestas
d3c0533d4b
sdm660-common: gps: Resolve unused parameter warnings
Change-Id: I0acef3da2c3567a28edd0a71dac89a5828f7725d
2021-01-27 13:13:51 +06:00
Michael Bestas
b4f14f3185
sdm660-common: gps: Lower debug level
* Kill logcat spam

Change-Id: I20d1f698d3c2d1b56e79f6eb6c5c17069e43c60f
2021-01-27 13:13:51 +06:00
Ethan Chen
f7f9039840
sdm660-common: gps: Increase batch size to max
* Hardware supports 40

Change-Id: I075fff615814fa105ec1493c5bdde60b8abccf0e
2021-01-27 13:13:51 +06:00
TheStrix
041645bba5
sdm660-common: gps: disable unused location services
* Disable XTWIFI

Change-Id: I70f39d8d611167f65bb3912590b05f8a8d121c80
2021-01-27 13:13:51 +06:00
OdSazib
36e5c637a7
sdm660-common: gps: Checkout gps hal from LA.UM.8.2.r1-07400-sdm660.0
* Removed depricated dependencies
 * Restored needed config for gps

Signed-off-by: OdSazib <odsazib@gmail.com>
2021-01-27 13:13:51 +06:00
Steven Moreland
ecfc20eadd
sdm660-common: Remove libhwbinder/libhidltransport deps
Since these were combined into libhidlbase.

Bug: 135686713
Test: build only (libhwbinder/libhidltransport are empty)
Change-Id: Iba2cd20b8b20fac3e7564de6b853b475fd4ebd2a
Signed-off-by: Subhajeet Muhuri <subhajeet.muhuri@gmail.com>
2020-12-13 18:27:09 +06:00
Max Weffers
7d3f1b5120
sdm660-common: gps: add changes from clover for wifi only gps
Change-Id: I03caa72e72a59cbbd33c1ceae64921de0c1d4bdc
2020-08-12 02:11:33 +06:00
travarilo
b586e7cb27
sdm660-common: Import GPS HAL from LA.UM.8.2.r1-06500-sdm660.0
"LA.UM.8.2.r1-06500-sdm660.0"

Change-Id: Ib46ee24d1e05e749fe0b7f178142a01bdb090e57
2020-08-12 02:11:33 +06:00
Max Weffers
e7f3124172
sdm660-common: Import GPS HAL from LA.UM.8.2.r1-06200-sdm660.0
"LA.UM.8.2.r1-06200-sdm660.0"

Change-Id: I13cdff4de720a18bda465cfe6168cd27469d6d3f
2020-08-12 02:11:32 +06:00
Max Weffers
53aba20050
sdm660-common: Downgrade GPS HAL to LA.UM.8.2.r1-05100-sdm660.0
This reverts commit 31e787be75c210112a05ca6bf03e705b73173b0a.

Change-Id: I64691f2defe79aa317248bf9daf77b2530b9fc59
2020-08-12 02:02:40 +06:00
Max Weffers
b87dec2474
Merge tag 'LA.UM.8.2.r1-06300-sdm660.0' of https://source.codeaurora.org/quic/la/platform/hardware/qcom/gps into HEAD
"LA.UM.8.2.r1-06300-sdm660.0"
Change-Id: I7be67877f4ec71566d2859873d79c94272a659f5

Change-Id: Ia8bda530845f35ff9526961ff99c40afc2cc53f7
2020-08-12 02:02:37 +06:00
dianlujitao
7e59b07530
sdm660-common: Fix non-ASCII character in gps.conf
:caf:

Change-Id: Iea9c44c0fbad574cbc077feea3d9f1de83d7d99a
2020-02-03 16:28:25 +01:00
dianlujitao
2c02c0df52
sdm660-common: Build new GNSS HAL
* Remove unnecessary dependencies on liblbs_core.so
 * Hardcode vendor loc HIDL version to 3.0 to enable vendor HIDL when
   building w/o BSP.

Change-Id: I01f661f1d1e038737801f5a9db88e3388d470f74
2020-02-03 16:28:25 +01:00
dianlujitao
8cb6811164
sdm660-common: Checkout GPS config from LA.UM.8.2.r1-05100-sdm660.0
Change-Id: I27fa3dbb4b1d301a6cd60a6a0b224e35c18c4b46
2020-02-03 16:28:25 +01:00
Max Weffers
ba95c0d08b
sdm660-common: Import GPS HAL from LA.UM.8.2.r1-05100-sdm660.0
"LA.UM.8.2.r1-05100-sdm660.0"

Change-Id: Ib00633d632178497dbe8ab9669bb11561959782e
2020-02-03 16:27:41 +01:00
Max Weffers
1fe7102a58
sdm660-common: Update GPS from Jasmine 10 Release
jasmine-user-10-QKQ1.190910.002-V11.0.4.0.QDIMIXM-release-keys

Change-Id: I083334309bddcca63c0a6e5477ae30c244686392
2020-01-14 18:19:32 +01:00
Erfan Abdi
55ddd8afc2
sdm660-common: gps: Add libprocessgroup
* needed for set_sched_policy

Change-Id: I05955753c1828afa6c6f64c00a7de8eafa53e45e
Signed-off-by: Erfan Abdi <erfangplus@gmail.com>
2019-09-16 10:39:53 +02:00
Mike Cailean
1e14af1e4c
Set SV in use mask based on final fixes
Do not set SV in use mask based on intermediate
position update from modem since it might contain
stale information. Reset the flag indicating SV
are used in fix for intermediate fixes.

Change-Id: I10a324a160b20a6ced94c689acf9fc9d77f6e826
CRs-fixed: 2318041
Signed-off-by: Akhil Narang <akhilnarang.1999@gmail.com>
2019-08-20 10:39:44 +02:00
PIPIPIG233666
3ac541f522
sdm660-common: Update GPS HAL from LA.UM.7.2.r1-07000-sdm660.0
Signed-off-by: PIPIPIG233666 <2212848813@qq.com>
2019-08-14 10:04:10 +02:00
XiNGRZ
69ba30f99d
sdm660-common: Update GPS HAL tag LA.UM.7.2.r1-06900-sdm660.0
Change-Id: I26c06dff6054da324bc6f0b6a029f2d0e67883b1
2019-08-14 10:04:10 +02:00
Wang Han
574568578a
wayne-common: Drop useless GPS configuration file
* We copy our gps.conf.

Change-Id: I2260f22b81bd6790070ab27d9e290c20910c2e2b
Signed-off-by: PIPIPIG233666 <2212848813@qq.com>
2019-08-14 10:04:10 +02:00
GuaiYiHu
e5b5dcfa26
wayne-common: Update GPS from LA.UM.7.2.r1-05800-sdm660.0
Change-Id: Idaec6889200d67c776222aebecdc9c0255e2b963
Signed-off-by: PIPIPIG233666 <2212848813@qq.com>
2019-08-14 10:04:10 +02:00
Isaac Chen
256da7a495
wayne-common: Synchorize gps to P
* QC Tag: LA.UM.7.2.r1-04900-sdm660.0

Signed-off-by: Isaac Chen <isaacchen@isaacchen.cn>
2019-08-14 10:04:09 +02:00
Thierry Strudel
5776399bf3 wayne: Fix android.hardware.gnss@1.0-service-qti
Make service part of 'hal' class.
Install files in vendor partition.
Register instance as 'default' as expected by framework.

Change-Id: I487fad4df872397ab76cea377e5304c956a756da
Signed-off-by: Thierry Strudel <tstrudel@google.com>
2018-09-05 00:00:08 +00:00
Vishwath Mohan
d9152046fa wayne: Remove hardcoded LOCAL_MODULE_PATHS from vendor components
This CL replaces all LOCAL_MODULE_PATH_* definitions for vendor shared
libraries with LOCAL_VENDOR_MODULE := true instead. This appropriately
generates sanitized versions of these libraries to /data/asan/* while
generating the stock versions in /vendor/lib* as desired.

Needed for ASAN builds to work correctly.

Bug: 37740897
Test: m -j40 && SANITIZE_TARGET="address" m -j40 # shared libs in
$ANDROID_PRODUCT_OUT/vendor/lib* do not contain asan symbols, while
the ones in $ANDROID_PRODUCT_OUT/data/asan/vendor/lib* do.

Change-Id: If6a495dd153c47f929de047fd48039b990348720
(cherry picked from commit e872612127cfbf55ceba01e9860e0acc47d64447)
2018-09-05 00:00:08 +00:00
Jiyong Park
5a86a2763f wayne: Don't rely on transitively included headers
One must explicitly include what it need.
time.h for struct tm.
sys/time.h for gettimeofday, etc.

Bug: 37629934
Test: build

Merged-In: Iacd5317d958f61df062fca40fbf2e8992c7fbb44
Change-Id: I19e1043f23dbe85836b73714a4f1440159ebe419
2018-09-05 00:00:08 +00:00
Steven Moreland
465ccf7608 wayne: Build libgps.utils with VNDK.
Test: m -j BOARD_VNDK_VERSION=current libgps.utils
Bug: 37342627
Change-Id: Ifcd9344245cf689d4075d34b89faa689647b8b0b
2018-09-05 00:00:08 +00:00
SzuWei Lin
2fdf20b62c wayne: Move android.hardware.gnss@1.0-service-qti.rc to vendor
The .rc file should be on the vendor image, or can not boot
with generic system image.

Bug: 63051055
Test: Boot with GSI to home screen
Change-Id: I1e2ebe5d23a6cf5a4176ee33613ef621b4b558cf
2018-07-19 00:01:07 +00:00
Isaac Chen
6a15b2379f wayne: Import GPS
* QC Tag: LA.UM.6.2.r1-06100-sdm660.0

Change-Id: I26da3b90caa473ed5f88408627463ec7f7655f23
Signed-off-by: Isaac Chen <isaacchen@isaacchen.cn>
2018-07-13 00:03:17 +00:00