How to enable GNSS function in Android 8.1 HAL

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to enable GNSS function in Android 8.1 HAL

8,481 Views
XiaofengZang
Contributor III

Hello

I'm debugging GNSS function in ANDROID 8.1 system on imx8qm EVM board, GPS module is Quectel AG35 USB GPS.

GPS vendor give me only two files:

/system/lib64/hw/gps.default.so

/system/etc/gps_cfg.inf

I found android/hardware/interfaces/gnss is not compiled and service is not started , gps.default.so is not loaded.

How can I compile and use GNSS HAL function?

Thanks

after porting two files, logcat is:

 
[13:24:53:289]08-06 07:34:54.284  3674  3674 I SystemServer: MakeLocationServiceReady
[13:24:53:289]08-06 07:34:54.289  2688  2688 W /system/bin/hwservicemanager: getTransport: Cannot find entry android.hardware.gnss@1.0::IGnss/default in either framework or device manifest.
[13:24:53:290]08-06 07:34:54.289  3674  3674 E GnssLocationProvider: Unable to get GPS service
[13:24:53:291]08-06 07:34:54.291  3674  3674 W LocationManagerService: no network location provider found
[13:24:53:292]08-06 07:34:54.293  3674  3674 E LocationManagerService: no geocoder provider found
[13:24:53:292]08-06 07:34:54.293  3674  3674 D LocationManagerService: FLP HAL not supported
[13:24:53:293]08-06 07:34:54.295  3674  3674 D LocationManagerService: Unable to bind FLP Geofence proxy.
[13:24:53:294]08-06 07:34:54.295  3674  3674 E ActivityRecognitionHardware: activity_recognition HAL is deprecated. is_supported is effectively a no-op
[13:24:53:295]08-06 07:34:54.295  3674  3674 D LocationManagerService: Hardware Activity-Recognition not supported.
[13:24:53:295]08-06 07:34:54.295  3674  3674 E ActivityRecognitionProxy: ServiceWatcher could not start.
[13:24:53:296]08-06 07:34:54.296  3674  3674 D LocationManagerService: Unable to bind ActivityRecognitionProxy.
Tags (1)
0 Kudos
Reply
4 Replies

5,790 Views
ilanganor
Contributor I

I am facing the exact same issue, if some has resolved that, please share 

0 Kudos
Reply

5,790 Views
XiaofengZang
Contributor III

Hi

these 3 module should be compiled:

vendor/bin/hw/android.hardware.gnss@1.0

vendor/etc/init/android.hardware.gnss@1.0-service.rc

vendor/lib64/hw/android.hardware.gnss@1.0-impl.so

0 Kudos
Reply

5,790 Views
hrishikesh_dele
Contributor I

Hi,

XiaofengZang‌ I am also facing similar issue.  Are you able to solve this, could you please share the updates.

0 Kudos
Reply

5,789 Views
diegoadrian
NXP Employee
NXP Employee

Hello,

Unfortunately, we cannot provide this type of support. Since the driver that you are trying to add is not included in our BSP. However, the AOSP documentation describes the process to add a new driver to the Android images.

Adding a New Device  |  Android Open Source Project 

Unfortunately, this is as far as I could go.

I apologize for the inconveniences.

Best Regards,

Diego.

0 Kudos
Reply