Commit graph

250 commits

Author SHA1 Message Date
Bhavna Sharma
27114f21cc Changed to allow only locclient group to access
hal daemon

Move hal daemon socket creation to loc_client directory
Define uid/gid for locclient

CRs-Fixed: 2260194

Change-Id: Icaac885c19cd65b11254bb93b6a938b2d4595761
2018-07-11 16:53:14 -07:00
Linux Build Service Account
021821ce54 Merge "Added optional MO SUPL SLP" 2018-06-29 01:39:07 -07:00
Bhavna Sharma
ee8213f3ce Populate some more fields for end client.
These are the fields populated:

North, East, Up velocity and their uncertainties
North and East standard deviation
Gps Time, Leap Sec and time uncertainty
Gps Measurement usage info

CRs-Fixed: 2249350

Change-Id: I8936b1c47be25fdc792322592f8ea5466a3fa6fd
2018-06-27 13:50:31 -07:00
Mike Cailean
d12b82b4e4 Added optional MO SUPL SLP
Change-Id: I89c3e697b92dfe04d403c073e779906d21cefd69
CRs-fixed: 2259090
2018-06-26 18:31:01 -07:00
Linux Build Service Account
309ff25859 Merge "Correct the nmea sv info in the first fix" 2018-06-25 09:53:28 -07:00
Yingjie Wang
ce82e3ba4a Correct the nmea sv info in the first fix
Use the sv used info from postion report to correct nmea GPGSA in
the first fix and decouple from the sv report.

Change-Id: Ibc94f5b51f4112951a2bb13d83b757fa4088eb5c
CRs-fixed: 2261346
2018-06-22 07:08:12 +08:00
Mike Cailean
383a8afbb2 Fixed wrongly changed year in header
Change-Id: I61d6406c9a45f5215bebb0a398319e159e490c69
CRs-fixed: 2206014
2018-06-19 10:06:15 -07:00
Mike Cailean
7dfa87b244 Support Multiband feature
Add carrierFrequency to GNSS Measurements
reporting. Also, add AGC level from QMI LOC
message to GNSS measurements (as opposed to
adding it from NMEA debug messages).

CRs-fixed: 2186144

Change-Id: Ia3995ba9e09ef4c68e8922b7570f7af0eb50098a
2018-06-16 11:27:26 -07:00
Mike Cailean
88688a85a3 SUPL connection enhancements
Adding enhancement to ATL messages to allow
sending bearer type and apn type mask values.

CRs-fixed: 2206014

Change-Id: I28f6583d842e82c9e26d40be55312f8aaf01193e
2018-06-11 14:13:04 -07:00
haohuang
17015dd790 Add spoof report mask in location object
Add the spoof mask report in location object
in position report and ZPP position report in
LocApiV02. Propagate this mask to the location
object in Location API module.

Change-Id: I5df87d389d5315c55ed2afce1f440a0486e4bebd
CRs-fixed: 2236154
2018-06-07 21:56:37 -07:00
Kevin Tang
8cc52b448c changes to work without ULP module
Rework the module with ULP module being removed

Change-Id: I5ac81e8c1c734352b3087545b83f4812fa3e8aff
CRs-fixed: 2235309
2018-06-07 12:04:42 -07:00
Saurabh Srivastava
98edc19bea FR 48850 - Device based hybrid ODCPI
Adding support for sending ODCPI request
to framework via IGnss interface.

Change-Id: I97ab4f00505705fedc266998602499fd344baf31
CRs-Fixed: 2217664
2018-06-03 22:43:58 +05:30
Saurabh Srivastava
66c682f7d9 FR 45623 - AGPM 1.0
Adding AGPM FR changes to add power
modes support.

CRs-Fixed: 2195518
Change-Id: Ifd1da6194b58ad5590ea755e3f6b237c4b4db2ad
2018-06-02 23:48:20 -07:00
Saurabh Srivastava
eaf7e54b54 FR 45651 - GNSS SV/Constellation Control
Adding support for configuring GNSS SVs
and constellations to be used.

Change-Id: I47d5cd9d08ac9aaf633be2fe3b1bd152a2f4293b
CRs-Fixed: 2184871
2018-06-03 12:15:34 +05:30
Dante Russo
a93b10c677 Update location supported feature enum
Update location supported feature enumeration
to match MP (constellation enablement, agpm,
xtra integrity)

Change-Id: I8cad9d8e09ebed3d16a32f63172bc7b3619a8969
CRs-Fixed: 2118920
2018-06-01 10:39:05 -07:00
Saurabh Srivastava
d462c0add3 FR 46082 - SUPL Network Setup Improvements
Adding enhancement to ATL messages to allow
sending bearer type and apn type mask values.

CRs-Fixed: 2209227
Change-Id: I09a294946610f26de4760a0fba6f13083f8752f3
2018-05-29 04:28:47 -07:00
Kevin Tang
365919e004 location.lnx.4.0 catchup
Change-Id: I248620cfd849d39ccfb8bbd11e2cf049df889346
CRs-Fixed: 2247713
2018-05-23 17:59:04 -07:00
Katz Yamada
8bda43ca51 fix: LocIpc client app unable to exit
LocIpc client apps such as garden app is unable
to delete LocIpc object since its socket listening
thread cannot be closed while it is waiting for
data and cannot be closed. Fixed to close it by
sending an abort message.

CRs-Fixed: 2213212
Change-Id: I95f26862e9faf7bd75a2f447421ba4ab7220576e
2018-05-15 09:48:34 -07:00
Kevin Tang
36da980fea changed SystemStatusOsObserver
to allow clients to subscribe before subscription obj
arrives, and also simplified ClientIndex and DataItemIndex
implementation significantly.

Change-Id: I092f344e688fa698aa98795b8a8f0c1ba8fcd9e4
CRs-Fixed: 2218519
2018-05-14 12:20:31 -07:00
Kevin Tang
86e1b52c81 renamed DataItemIndex and ClientIndex files
and moved them into utils.

Change-Id: I138471168bf58d2cf09c6a435088edea29a567d0
CRs-Fixed: 2218519
2018-05-14 12:20:17 -07:00
Katz Yamada
2ade2811c6 fix: LocIpc client app unable to exit
LocIpc client apps such as garden app is unable
to delete LocIpc object since its socket listening
thread cannot be closed while it is waiting for
data and cannot be closed. Fixed to close it by
sending an abort message.

CRs-Fixed: 2213212
Change-Id: I95f26862e9faf7bd75a2f447421ba4ab7220576e
2018-05-10 14:49:36 -07:00
Saurabh Srivastava
f906756e7b Adding Location Service Modem Emulator
Adding Modem Emulator to test features
not yet supported in Modem build.

Change-Id: I86f4eeaa7577d83c5ef9605c78672068721c020e
CRs-Fixed: 2193247
2018-05-08 23:27:51 -07:00
Kevin Tang
0c73d40376 changed SystemStatusOsObserver
to allow clients to subscribe before subscription obj
arrives, and also simplified ClientIndex and DataItemIndex
implementation significantly.

Change-Id: I092f344e688fa698aa98795b8a8f0c1ba8fcd9e4
CRs-Fixed: 2218519
2018-05-05 21:24:29 -07:00
Kevin Tang
3983768598 renamed DataItemIndex and ClientIndex files
and moved them into utils.

Change-Id: I138471168bf58d2cf09c6a435088edea29a567d0
CRs-Fixed: 2218519
2018-05-05 21:24:02 -07:00
Linux Build Service Account
94904a7184 Merge "Merge location.lnx.3.0 into location.lnx.4.0" 2018-04-27 04:12:20 -07:00
Linux Build Service Account
80e61626c6 Merge "Add correct libs to LOCAL_HEADER_LIBRARIES" 2018-04-25 21:21:09 -07:00
Katz Yamada
f93ec50a05 fix: Incorrect path to ehub socket directory
Change-Id: I58b41c4a8de8b51c8a6effe989182ea5942cff6e
CRs-Fixed: 2196048
2018-04-25 11:12:15 -07:00
Bhavna Sharma
c2bc685784 Merge location.lnx.3.0 into location.lnx.4.0
CRs-Fixed: 2228694

Change-Id: I114d830bec57040d700a0cebac2d0415c9b9f893
2018-04-20 13:18:43 -07:00
Baili Feng
594a0d7ab4 Add correct libs to LOCAL_HEADER_LIBRARIES
Vendor code should not include AOSP headers
by absolute path or global path.
CRs-fixed: 2228157

Change-Id: I84a4d0b9b9fe3a20713eea07e926aba5d665b435
2018-04-20 11:23:14 +08:00
Linux Build Service Account
30eb32573c Merge "Add location client api sockets' strings" 2018-04-14 14:31:59 -07:00
Bhavna Sharma
e5c31f33c1 GPS Adapter: GNSS adapter change to go with engine hub aggregator
1: GNSS adapter change to block out position and SV report from
ULP when engine hub aggregator is used
2: Support unpropagated position report

Change-Id: Id0cacd87d3f3f8eec893d751b9f7a55a736a4023
CRs-fixed: 2210253
2018-04-12 13:24:57 -07:00
Baili Feng
d856a9414d hidl gnss hal 1.1 implementation
Implement new apis for IGnss 1.1

Change-Id: I2c98c32355f6d9681d51b709697e49ec735fe1cf
CRs-fixed: 2133458
2018-04-10 08:24:34 +08:00
Dante Russo
ab95d2dc2e Merge location.lnx.3.0-180201 to location.lnx.3.9
Catchup merge from tag location.lnx.3.0-18201
CRs-fixed: 2212182
Change-Id: I47f5f9eb06cb6a6ee6be337a2dc43e0d2386113b
2018-04-04 17:54:02 -07:00
Katz Yamada
47fa2c06fa Add location client api sockets' strings
Add location client api socket path string
definitions in utils/gps_extended_c.h.

CRs-Fixed: 2196048
Change-Id: Ie2eea05dfe440fa3a96b531fa4ba17605ab53431
2018-04-04 11:58:08 -07:00
Naresh Munagala
7f9ce9ddd0 Add additional parameters in gps extended file
Change-Id: I667b999dc164184d84aac0c5b6c1f3b2e9c761ea
CRs-Fixed: 2183994
2018-03-27 11:59:37 +05:30
Katz Yamada
87c52f1f37 fix: add LOC_LOGi macro in log utility
Add LOC_LOGi macro in log utility

Change-Id: Ib30ce891496d61c10075cac028a80df2a6013a2a
CRs-Fixed: 2209625
2018-03-20 16:29:43 -07:00
Linux Build Service Account
a197343e3c Merge "GPS GNSS adapter: connectivity support for engine hub" 2018-03-08 22:05:04 -08:00
Kevin Tang
b47eea6b23 GPS GNSS adapter: connectivity support for engine hub
(1) allow engine hub to be able to receive connectivity
status update
(2) fix kw warning in LocIpc.h

Change-Id: I62ac534639003051a8992c143ff273d5ff66ee5a
CRs-fixed: 2198446
2018-03-07 10:19:24 -08:00
Linux Build Service Account
1edbe5d597 Merge "Define gps user and group id's for Android and LE." 2018-03-07 05:32:27 -08:00
Linux Build Service Account
c5ee86bfdc Merge "Reset MSA/MSB capabilities for APQ targets." 2018-03-02 15:01:24 -08:00
Dante Russo
97f3f3905a remove unused variables for compilation
remove unsed variables and fix few compiler issues

CRs-fixed: 2175735
Change-Id: I635a7503326928f43070aa2224bc3c3d6e1ff929
2018-03-02 09:59:29 +05:30
Harikrishnan Hariharan
c645cb167b Define gps user and group id's for Android and LE.
- Define gps user and group id's for Android and LE.
- Update to use getgrnam for getting group id's.
- Get group id's for child processes for LE also.

Change-Id: I5365dbc1c51eb89ab66ba8652f3ed1c5dbea6eb4
CRs-Fixed: 2183710
2018-03-01 02:58:14 -08:00
Linux Build Service Account
25bf85b355 Merge "Enhance LocationAPI structs to hold full position" 2018-02-27 02:49:59 -08:00
Harikrishnan Hariharan
cd1e0726c8 Reset MSA/MSB capabilities for APQ targets.
- Capabilities MSA/MSB should be reset even if defined in
gps.conf for APQ/QSC targets. Since WWAN modem will not be
available, we need to trigger Standalone fixes only. If MSB
capability is set,then default position mode is MSB.
- Handle the new string "qcs" for baseband for Gen9 APQ targets.
- Make sure that ContextBase::readConfig avoid repeat initialize
for config reading.

Change-Id: Ic0a1e57dd76a88bf4d037cd374ceded84cc0f904
CRs-Fixed: 2193207
2018-02-25 23:28:54 -08:00
Saurabh Srivastava
980d403c81 KW Warning Fix
Check file pointer before closing.

Change-Id: Id9526f6eacf57e282dc0af35d72f571f950b0b0e
CRs-Fixed: 2193268
2018-02-21 16:04:28 +05:30
Kevin Tang
be207684d6 fixing LE hy11 build
define ALOGx for HY11 build, which doesn't have liblog

Change-Id: I151d451997f71179e4c4bba3946d7fd52e1f345f
CRs-Fixed: 2190714
2018-02-15 18:53:49 -08:00
Yingjie Wang
af34b8d1ac Enhance LocationAPI structs to hold full position
Match the output of izat_remote_api clients with LocationAPI clients.
Fill GnssLocationInfoNotification with missing fields from
GpsLocationExtended and Location structure. And allow one single
callback to report complete position info. Meanwhile, remove fields
from UlpLocation that are no longer used.

CRs-fixed: 2169738
Change-Id: Ib5bd3dd9c065c4b3d6cad32b23167546ad950d06
2018-02-14 13:33:57 +08:00
Saurabh Srivastava
bb529c50e9 Moving location sockets from /data to /dev
Keeping sockets in /data/vendor/location prevents
unmounting of /data partition after build load.

CRs-Fixed: 2174503
Change-Id: Ib1b9f07bb25368ac7d1a32536e58c52dd2b2ad4e
2018-02-06 00:42:27 -08:00
Linux Build Service Account
07883c075d Merge "fix: LocIpcSender returns incorrect result" 2018-02-01 15:46:23 -08:00
Katz Yamada
ec59dd2aae fix: LocIpcSender returns incorrect result
LocIpcSender::send() doesn't return correct
boolean result code. It always returns false
even it is successfully sent.

Change-Id: I74d85501f5d097dc1ede4dea5b2d9c9d752affda
CRs-Fixed: 2179096
2018-01-31 15:38:03 -08:00