Commit graph

1518 commits

Author SHA1 Message Date
Hoss Zhou
313284b9dd fix CFI issues
Change-Id: I5b94804c381f1d26196ddf6dee97adbee36dc128
CRs-Fixed: 2353650
2019-04-10 13:52:29 +08:00
Saurabh Srivastava
a6c61bde6a Temp compilation fix for LKG integration
CRs-Fixed: 2429432
Change-Id: I8141c5583cddbd0118b9e13ddf07534ee890372c
2019-04-04 16:31:53 +05:30
qctecmdr
3e614934d1 Merge "Integer overflow leading to a buffer overflow" 2019-04-01 22:11:09 -07:00
qctecmdr
449fdb73e2 Merge "Add HAL support for network handle" 2019-03-31 20:11:37 -07:00
Hoss Zhou
582337b7fb add sufficient delimiter for blank GSA sentence
Change-Id: I96e7dec543a4bfb326e5c72d9e943a57d183cf87
CRs-Fixed: 2416152
2019-03-31 09:27:09 -07:00
qctecmdr
93c1afca1c Merge "Batching and Geofence moved to GNSS HAL" 2019-03-30 13:17:26 -07:00
qctecmdr
af57363c10 Merge "Move Legacy targets to GNSS HIDL 2.0" 2019-03-28 14:06:12 -07:00
Dante Russo
5c1e23cf02 Batching and Geofence moved to GNSS HAL
Addition of BatchingAdapter and GeofenceAdapter.
Deprecated Background LOC QMI Client and renamed
LocDualContext renamed to LocContext.
Moved some common Adapter functions into LocAdapterBase.
Added Distance Based Tracking logic into GnssAdapter.
Addition of flp.conf
Deprecated GEOFENCE capabilities configuration in
gps.conf

CRs-fixed: 2342200
Change-Id: I6b6257c4cf296e5a8c56bc0b149e4de77cf6cdf9
2019-03-27 14:54:49 -07:00
Nilesh Gharde
b47ee496e5 Integer overflow leading to a buffer overflow
Added a length check in to avoid integer overflow
in dataConnOpenCommand and set APN methods.
As the APN name is like few 100bytes so
using the micro defined int gps_extended_c.h

Change-Id: Idb5ebbf2e3647de5fa07673f248c0c256d6c1b52
CRs-fixed: 2419292
2019-03-27 07:02:19 -07:00
Kevin Tang
546e88fc04 Add HAL support for network handle
Add HAL support for modifications to the
network status information passed in.

Change-Id: I99defc6a419d9f21ce74469a1aa016cc7fade4a5
CRs-Fixed: 2397433
2019-03-26 18:40:03 -07:00
qctecmdr Service
01869b4004 Merge "Improved Location NI Privacy" 2019-03-22 17:36:07 -07:00
qctecmdr Service
52c9486628 Merge "GTP: Remove GTP-WAA and GTP AP CELL feature." 2019-03-21 21:52:24 -07:00
Mike Cailean
b046241ec2 Improved Location NI Privacy
Changes to be made starting in Android Q in the way
that Location requests made by Location clients
other than the Android FrameWork (e.g. Network
Initiated AGNSS clients, modem-based clients such
as MDT) are handled

CRs-fixed: 2397454

Change-Id: Ibb5b9429a1ec1e14ee59d89763d8a78607997615
2019-03-21 14:57:28 -07:00
qctecmdr Service
a0488d7d56 Merge "Unified Vendor - Launch only android.hardware.gnss" 2019-03-21 10:19:25 -07:00
qctecmdr Service
3774ea547f Merge "clear magic number for GPS_LOCK" 2019-03-21 08:02:45 -07:00
qctecmdr Service
07f0e8f970 Merge "Add unlink for corresponding link in measurements for GNSS HIDL 2.0" 2019-03-20 14:33:57 -07:00
qctecmdr Service
76af4dfb50 Merge "enable gnss integer-overflow sanitization" 2019-03-20 14:06:30 -07:00
Dante Russo
4b9768f091 Move Legacy targets to GNSS HIDL 2.0
Legacy targets will support a subset of
GNSS HIDL 2.0 features, but will need to
stay on GNSS 1.0 Measurements

CRs-fixed: 2423825
Change-Id: I1fc5134dbf4b8fc6b1e76cced3acfeaf8bf8d581
2019-03-20 13:53:08 -07:00
Saurabh Srivastava
8bd22760a6 Unified Vendor - Launch only android.hardware.gnss
Launch android.hardware.gnss HIDL service for both
vendor enhanced and non-enhanced platforms

Change-Id: Ia9cb9ef52d42c788bcaa73bc1001ed8d90f7c755
CRs-Fixed: 2402833
2019-03-21 01:20:22 +05:30
qctecmdr Service
7d34cea4ca Merge "Remove tracking redundanty and assure min interval" 2019-03-19 11:16:00 -07:00
Hoss Zhou
1839fb1140 clear magic number for GPS_LOCK
Change-Id: I3c1b5a18ab16382a436098f8af541bf7f125783e
CRs-fixed: 2370451
2019-03-18 16:33:52 -07:00
Mike Cailean
3a0ae431d5 Add unlink for corresponding link in measurements
for GNSS HIDL 2.0

Change-Id: I7423ed1c515745f2f4a0ea4f5495e86eea4de0ee
CRs-fixed: 2417264
2019-03-18 09:47:44 -07:00
qctecmdr Service
a7953cd7ea Merge "Merge remote-tracking branch 'quic/location.lnx.4.0' into HEAD" 2019-03-18 06:13:41 -07:00
Hoss Zhou
8d7df7b2c1 enable gnss integer-overflow sanitization
Change-Id: I27359843e5f22353771b8843012f110cbd704094
CRs-Fixed: 2341063
2019-03-18 10:51:24 +08:00
Kevin Tang
5a9cc5ae72 Merge remote-tracking branch 'quic/location.lnx.4.0' into HEAD
CRs-fixed: 2414738

Change-Id: Ic8d1cd5bb37d1ad26c2749e46be279942e28ac05
2019-03-14 17:43:05 -07:00
Saurabh Srivastava
ac8ce3c7d5 Dummy impl for injectBestLocation_2_0
Change-Id: I37a96ee52dea4bce92bb741bf0be79279ec86d67
2019-03-13 16:47:02 +05:30
qctecmdr Service
1b6ad38fb9 Merge "allow a isMaster client in LocAdapterProxyBase ctor" 2019-03-12 18:52:28 -07:00
qctecmdr Service
de7fa11dd6 Merge "util to get get symbol from a library" 2019-03-11 09:50:59 -07:00
Yingjie Wang
6b687ef48e Combine updateConfig in GnssAdapter
Adjust setConfigCommand and gnssUpdateConfigCommand
to use one gnssUpdateConfig method.

CRs-fixed: 2402752
Change-Id: I6a9ec474bd9ffed52edd2422574af0f6d41493c4
2019-03-08 17:38:07 +08:00
Yingjie Wang
d0825b64ef Fix makefile error for Gnss Hidl
Correct the if-else-endif logic error.

Change-Id: I5d3fa711e911642def689308f73c19f0c46ab632
CRs-fixed: 2411979
2019-03-08 10:23:52 +08:00
Kevin Tang
b082fd7f7b allow a isMaster client in LocAdapterProxyBase ctor
This would allow GeofenceAdapter become a master
adapter, in case it gets created before GnssAdapter.

Change-Id: I9eb55b7fac9970fd11d4e34bdf7cf824e5b1c586
CRs-Fixed: 2403691
2019-03-06 11:57:33 -08:00
Dante Russo
e22619060b Remove tracking redundanty and assure min interval
A tracking interval should not be less than 100ms
If tracking interval or power mode is updated to
the same value, then start tracking should not be
sent to the modem again.
Fix some issues with multiplex with powerMode

Change-Id: I91e5d0577569b96179a5337af0fc91641dc126db
CRs-fixed: 2190953
2019-02-26 12:33:25 -08:00
Kevin Tang
a928d60188 util to get get symbol from a library
Added dlGetSymFromLib() to provide a utility that dlopen()'s
a library, and get the pointer to a symbol name.

Change-Id: I770eaef18a61aaa458833b3ca778f44b299585f5
CRs-Fixed: 2404939
2019-02-25 16:36:26 -08:00
Dante Russo
90310754f8 Add module android.hardware.gnss@2.0 for build
CRs-fixed: 2404857
Change-Id: I873ce21e1fb4924a1f3bb2e7162791f6d69be51d
2019-02-25 11:15:42 -08:00
Ashish Dhiman
ce952c486a GTP: Remove GTP-WAA and GTP AP CELL feature.
Remove GTP-WAA and GTP_AP_CELL feature as GTP will
support only third party GTP WIFI and legacy GTP
WWAN solution.

CRs-Fixed: 2384327
Change-Id: Id3613bde1716542027978af30084f5e997f28b00
2019-02-25 15:35:47 +05:30
qctecmdr Service
d31be64700 Merge "Enablement of location modules for kona" 2019-02-24 18:29:01 -08:00
Mike Cailean
4149abcc2d Measurement changes in GNSS HIDL2.0
CRs-fixed: 2385560

Change-Id: I5f4548e6df0cb8ac3f2762020dfdbb49a9022854
2019-02-21 21:34:40 -08:00
Dante Russo
1d1d0e5722 Enablement of location modules for kona
CRs-fixed: 2403289
Change-Id: Iab273dcb9c0783557df15b1361c08862201bd8ce
2019-02-21 17:05:51 -08:00
Mike Cailean
e78728024d SUPL over WiFi changes in GNSS HIDL2.0
Change-Id: I20a2071fd748dea16cd55aa120bc307ebc0645a9
CRs-fixed: 2342192
2019-02-21 13:38:28 -08:00
qctecmdr Service
c051c7d112 Merge "GNSS HAL 2.0 implementation" 2019-02-21 09:20:53 -08:00
Naresh Munagala
ae8db6cf15 add remove api for message queue
Change-Id: I278eca90ebb50e291a1b9076caf46f41a074b1d7
CRs-Fixed: 2338245
2019-02-20 08:37:19 -08:00
qctecmdr Service
c0142799d0 Merge "Adding gps_vendor_board.mk" 2019-02-20 08:09:57 -08:00
qctecmdr Service
8e120b1ed9 Merge "New structures and handling of new data in the pipe" 2019-02-19 11:57:34 -08:00
Kevin Tang
9a055d5208 Fix race condition that adapter does not get handleEngineUp
- Removed redundant injectFeatureConfig() call, as it this
happens twice, once when the first context is created which
would have been too early and once when LocApi open success.
- Resolved a race condition that second adapter added may not
have been in LocApi's adapter list yet when handleEngineUp()
is broadcast.

Change-Id: I8ecc18eab6b450c326c0be1abc011f70285439aa
CRs-Fixed: 2397902
2019-02-17 12:32:50 -08:00
Kevin Tang
9b2e79c42e Fix race condition that adapter does not get handleEngineUp
- Removed redundant injectFeatureConfig() call, as it this
happens twice, once when the first context is created which
would have been too early and once when LocApi open success.
- Resolved a race condition that second adapter added may not
have been in LocApi's adapter list yet when handleEngineUp()
is broadcast.

Change-Id: I8ecc18eab6b450c326c0be1abc011f70285439aa
CRs-Fixed: 2397902
2019-02-14 11:08:21 -08:00
Saurabh Srivastava
8926b41ce3 Adding gps_vendor_board.mk
Adding vendor specific board config flags.

Change-Id: Ib16f800f2f9f3e385890088ae36f5d6197f2ee2c
CRs-Fixed: 2398736
2019-02-14 14:25:16 +05:30
Wei Chen
1d823b05ec FR47367: Location client API for External AP
(1) In location data struct, change size_t to uint32_t as size_t
is machine dependent and can not be sent as part of payload
to the other processor.
(2) Change LocIpc ifdef to match with the file name

Change-Id: Ia3f029641106a547e18904be1e3fb56ec09de569
CRs-fixed: 2367517
2019-02-13 10:03:56 -08:00
qctecmdr Service
9e2e7b8004 Merge "Fix build errors with libgps.utils.so" 2019-02-11 09:08:50 -08:00
qctecmdr Service
15ea6ecb3f Merge "Enable support for External AP build" 2019-02-07 17:27:24 -08:00
Mike Cailean
dc0efb4800 Enable support for External AP build
Enable support for build on External AP without
libcutils or any Android library support.

CRs-fixed: 2368435

Change-Id: I978127348fd6b8d90ed5ef0a714c02437dc59ee0
2019-02-07 11:13:58 -08:00