拿到厂商提供的驱动文件,有两个
#you can modify this config file to adapt your demand.
#the line start with ';' means not support
#the line start with '#' means use default config
;MODULE_TYPE=
NMEA_PORT_PATH=rild-nmea
;RMC_HZ=1
;NMEA_PORT_PATH=/dev/ttyO1
;BAUD_RATE=9600
;DATA_BITS=8
;STOP_BITS=1
;PARITY_TYPE=N
;FLOW_CONTROL=N
;LOG_LEVEL=LOG_DEBUG
;LOG_TYPE=
;LOG_PATH=
;FUNC_NMEA=
;FUNC_XTRA=
;FUNC_AGPS
;I2C_ADDR=
;NMEA_LOG_LEVEL=
;libcutils_path=
$(CUR_PATH)/phone/lib/gps.default.so:vendor/lib64/hw/gps.default.so \
$(CUR_PATH)/phone/etc/gps_cfg.inf:vendor/etc/gps_cfg.inf \
<hal format="hidl">
<name>android.hardware.gnss</name>
<transport>hwbinder</transport>
<version>1.0</version>
<interface>
<name>IGnss</name>
<instance>default</instance>
</interface>
</hal>
BOARD_HAS_GPS ?= true
PRODUCT_PACKAGES += android.hardware.gnss@1.0-impl android.hardware.gnss@1.0-service
service gnss_service /vendor/bin/hw/android.hardware.gnss@1.0-service
class hal
user gps
group system gps radio