Add gps.xml for M23
Add gps.xml and build rules for M23 project Bug: 229177458 Test: build pass Change-Id: Ie3dbd1e598db4a38d3301bdd319e24c9e651cecc
This commit is contained in:
parent
bc33412014
commit
45a71e3d3c
3 changed files with 198 additions and 0 deletions
|
@ -232,3 +232,12 @@ PRODUCT_PRODUCT_PROPERTIES += \
|
||||||
# Hinge angle sensor
|
# Hinge angle sensor
|
||||||
PRODUCT_COPY_FILES += \
|
PRODUCT_COPY_FILES += \
|
||||||
frameworks/native/data/etc/android.hardware.sensor.hinge_angle.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.hinge_angle.xml
|
frameworks/native/data/etc/android.hardware.sensor.hinge_angle.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.hinge_angle.xml
|
||||||
|
|
||||||
|
# Location
|
||||||
|
ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
|
||||||
|
PRODUCT_COPY_FILES += \
|
||||||
|
device/google/felix/location/gps.xml.f10:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/gps.xml
|
||||||
|
else
|
||||||
|
PRODUCT_COPY_FILES += \
|
||||||
|
device/google/felix/location/gps_user.xml.f10:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/gps.xml
|
||||||
|
endif
|
||||||
|
|
95
location/gps.xml.f10
Normal file
95
location/gps.xml.f10
Normal file
|
@ -0,0 +1,95 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<glgps xmlns="http://www.glpals.com/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.glpals.com/ glconfig.xsd" >
|
||||||
|
<hal
|
||||||
|
PortName="/dev/ttyBCM"
|
||||||
|
BaudRate="921600"
|
||||||
|
GpioNStdbyPath="/sys/devices/platform/10940000.spi/spi_master/spi5/spi5.0/nstandby"
|
||||||
|
CustGpioDelayMs="250"
|
||||||
|
LogEnabled="true"
|
||||||
|
Log="JAVA"
|
||||||
|
SecondaryConfigPath="/data/vendor/gps/overlay/gps_overlay.xml"
|
||||||
|
LogDirectory="/sdcard/gps/broadcom/storage/"
|
||||||
|
CtrlPipe="/data/vendor/gps/glgpsctrl"
|
||||||
|
NmeaOutName="/data/vendor/gps/nmea_out"
|
||||||
|
|
||||||
|
acSuplServer="supl.google.com"
|
||||||
|
SuplPort="7275"
|
||||||
|
SuplLogEnable="true"
|
||||||
|
SuplLogFullName="/data/vendor/gps/suplflow.txt"
|
||||||
|
tlsEnable="true"
|
||||||
|
|
||||||
|
SuplSslMethod="SSLv23_NO_TLSv1_2"
|
||||||
|
SuplEnable="true"
|
||||||
|
SuplUseApn="false"
|
||||||
|
SuplUseApnNI="true"
|
||||||
|
SuplUseFwCellInfo="false"
|
||||||
|
SuplDummyCellInfo ="true"
|
||||||
|
SuplTlsCertDirPath="/etc/security/cacerts"
|
||||||
|
SuplTlsCertPath="/vendor/etc/gnss/gps.cer"
|
||||||
|
SuplUT1Seconds="20"
|
||||||
|
SuplUT2Seconds="20"
|
||||||
|
SuplUT3Seconds="20"
|
||||||
|
TcpConnectionTimeout="20"
|
||||||
|
SuplLppCapable="true"
|
||||||
|
SuplEcidCapable="true"
|
||||||
|
SuplVersion="2"
|
||||||
|
SuplMinorVersion="0"
|
||||||
|
SuplOtdoaCapable="true"
|
||||||
|
SuplGlonassCapable = "true"
|
||||||
|
SuplGalileoCapable = "true"
|
||||||
|
SuplBdsCapable = "true"
|
||||||
|
SuplMgpsCapable = "true"
|
||||||
|
|
||||||
|
RtoEnable="true"
|
||||||
|
RtiEnable="true"
|
||||||
|
HttpSyncLto="true"
|
||||||
|
LtoFileName="lto2.dat"
|
||||||
|
LtoDir="/data/vendor/gps/"
|
||||||
|
LtoSyncThresholdDays="1"
|
||||||
|
|
||||||
|
GnssYearOfHardware="2020"
|
||||||
|
CpGuardTimeSec="1"
|
||||||
|
CpLppGuardTimeSec="1"
|
||||||
|
IgnoreInjectedSystemTime="true"
|
||||||
|
|
||||||
|
AttributionAppPkgName="com.google.android.carrierlocation"
|
||||||
|
|
||||||
|
AssertEnabled="true"
|
||||||
|
CpLppeCancelDbhOnAgnssProvideLoc="true"
|
||||||
|
CpLppeUseAgnssLocForEmptyDbh="true"
|
||||||
|
ReAidingOnHotStart="false"
|
||||||
|
ReAidingIntervalSec="1200"
|
||||||
|
RuntimeSwLteFilterEnable="true"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<gll
|
||||||
|
LogPriMask="LOG_INFO"
|
||||||
|
LogFacMask="LOG_NMEA | LOG_GLLIOS | LOG_GLLAPI"
|
||||||
|
FrqPlan="FRQ_PLAN_26MHZ_2PPM_49_152MHZ_300PPB"
|
||||||
|
MultiCarrRFMode="GL_MULTI_CARR_RF_MODE_L1_L5"
|
||||||
|
MultiCarrLnaMask="L1_EXT_ON|L5_EXT_ON"
|
||||||
|
RfType="GL_RF_4776_BRCM"
|
||||||
|
ExtL5Bias="13.0"
|
||||||
|
|
||||||
|
WarmStandbyTimeout1Seconds="10"
|
||||||
|
WarmStandbyTimeout2Seconds="15"
|
||||||
|
|
||||||
|
EnableGnssPropagateInStandby="true"
|
||||||
|
|
||||||
|
RfPathLossDb_Ap="3.7"
|
||||||
|
RfPathLossDb_Cp="3.7"
|
||||||
|
RfPathLossDb_Ap_L5="4.1"
|
||||||
|
RfPathLossDb_Cp_L5="4.1"
|
||||||
|
OnChipGpsCarrierType="3,2,3,3,2,3,2,3,3,3,1,2,1,3,2,1,2,3,1,1,1,1,3,3,3,3,3,1,2,3,2,3"
|
||||||
|
|
||||||
|
EnableOnChipStopNotification="2"
|
||||||
|
PowerMode="3"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<gll_features
|
||||||
|
EnableNicAutoSwitch="true"
|
||||||
|
EnableNavic="true"
|
||||||
|
/>
|
||||||
|
|
||||||
|
</glgps>
|
||||||
|
|
94
location/gps_user.xml.f10
Normal file
94
location/gps_user.xml.f10
Normal file
|
@ -0,0 +1,94 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<glgps xmlns="http://www.glpals.com/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.glpals.com/ glconfig.xsd" >
|
||||||
|
<hal
|
||||||
|
PortName="/dev/ttyBCM"
|
||||||
|
BaudRate="921600"
|
||||||
|
GpioNStdbyPath="/sys/devices/platform/10940000.spi/spi_master/spi5/spi5.0/nstandby"
|
||||||
|
CustGpioDelayMs="250"
|
||||||
|
LogEnabled="false"
|
||||||
|
Log="JAVA"
|
||||||
|
LogDirectory="/sdcard/gps/broadcom/storage/"
|
||||||
|
CtrlPipe="/data/vendor/gps/glgpsctrl"
|
||||||
|
NmeaOutName="/data/vendor/gps/nmea_out"
|
||||||
|
|
||||||
|
acSuplServer="supl.google.com"
|
||||||
|
SuplPort="7275"
|
||||||
|
SuplLogEnable="false"
|
||||||
|
SuplLogFullName="/data/vendor/gps/suplflow.txt"
|
||||||
|
tlsEnable="true"
|
||||||
|
|
||||||
|
SuplSslMethod="SSLv23_NO_TLSv1_2"
|
||||||
|
SuplEnable="true"
|
||||||
|
SuplUseApn="false"
|
||||||
|
SuplUseApnNI="true"
|
||||||
|
SuplUseFwCellInfo="false"
|
||||||
|
SuplDummyCellInfo ="true"
|
||||||
|
SuplTlsCertDirPath="/etc/security/cacerts"
|
||||||
|
SuplTlsCertPath="/vendor/etc/gnss/gps.cer"
|
||||||
|
SuplUT1Seconds="20"
|
||||||
|
SuplUT2Seconds="20"
|
||||||
|
SuplUT3Seconds="20"
|
||||||
|
TcpConnectionTimeout="20"
|
||||||
|
SuplLppCapable="true"
|
||||||
|
SuplEcidCapable="true"
|
||||||
|
SuplVersion="2"
|
||||||
|
SuplMinorVersion="0"
|
||||||
|
SuplOtdoaCapable="true"
|
||||||
|
SuplGlonassCapable = "true"
|
||||||
|
SuplGalileoCapable = "true"
|
||||||
|
SuplBdsCapable = "true"
|
||||||
|
SuplMgpsCapable = "true"
|
||||||
|
|
||||||
|
RtoEnable="true"
|
||||||
|
RtiEnable="true"
|
||||||
|
HttpSyncLto="true"
|
||||||
|
LtoFileName="lto2.dat"
|
||||||
|
LtoDir="/data/vendor/gps/"
|
||||||
|
LtoSyncThresholdDays="1"
|
||||||
|
|
||||||
|
GnssYearOfHardware="2020"
|
||||||
|
CpGuardTimeSec="1"
|
||||||
|
CpLppGuardTimeSec="1"
|
||||||
|
IgnoreInjectedSystemTime="true"
|
||||||
|
|
||||||
|
AttributionAppPkgName="com.google.android.carrierlocation"
|
||||||
|
|
||||||
|
AssertEnabled="false"
|
||||||
|
CpLppeCancelDbhOnAgnssProvideLoc="true"
|
||||||
|
CpLppeUseAgnssLocForEmptyDbh="true"
|
||||||
|
ReAidingOnHotStart="false"
|
||||||
|
ReAidingIntervalSec="1200"
|
||||||
|
RuntimeSwLteFilterEnable="true"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<gll
|
||||||
|
LogPriMask="LOG_INFO"
|
||||||
|
LogFacMask="LOG_NMEA | LOG_GLLIOS | LOG_GLLAPI"
|
||||||
|
FrqPlan="FRQ_PLAN_26MHZ_2PPM_49_152MHZ_300PPB"
|
||||||
|
MultiCarrRFMode="GL_MULTI_CARR_RF_MODE_L1_L5"
|
||||||
|
MultiCarrLnaMask="L1_EXT_ON|L5_EXT_ON"
|
||||||
|
RfType="GL_RF_4776_BRCM"
|
||||||
|
ExtL5Bias="13.0"
|
||||||
|
|
||||||
|
WarmStandbyTimeout1Seconds="10"
|
||||||
|
WarmStandbyTimeout2Seconds="15"
|
||||||
|
|
||||||
|
EnableGnssPropagateInStandby="true"
|
||||||
|
|
||||||
|
RfPathLossDb_Ap="3.7"
|
||||||
|
RfPathLossDb_Cp="3.7"
|
||||||
|
RfPathLossDb_Ap_L5="4.1"
|
||||||
|
RfPathLossDb_Cp_L5="4.1"
|
||||||
|
OnChipGpsCarrierType="3,2,3,3,2,3,2,3,3,3,1,2,1,3,2,1,2,3,1,1,1,1,3,3,3,3,3,1,2,3,2,3"
|
||||||
|
|
||||||
|
EnableOnChipStopNotification="0"
|
||||||
|
PowerMode="3"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<gll_features
|
||||||
|
EnableNicAutoSwitch="true"
|
||||||
|
EnableNavic="true"
|
||||||
|
/>
|
||||||
|
|
||||||
|
</glgps>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue