How to enable GNSS function in Android 8.1 HAL

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to enable GNSS function in Android 8.1 HAL

7,680件の閲覧回数
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.
ラベル(2)
タグ(1)
0 件の賞賛
返信
4 返答(返信)

4,989件の閲覧回数
ilanganor
Contributor I

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

0 件の賞賛
返信

4,989件の閲覧回数
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 件の賞賛
返信

4,989件の閲覧回数
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 件の賞賛
返信

4,988件の閲覧回数
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 件の賞賛
返信