AnsweredAssumed Answered

How to enable GNSS function in Android 8.1 HAL

Question asked by Xiaofeng Zang on Aug 15, 2018
Latest reply on Aug 17, 2018 by Diego Adrian Cuevas

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.

Outcomes