aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcodeworkx <codeworkx@cyanogenmod.org>2016-01-25 21:51:51 +0100
committerdoc HD <doc.divxm@gmail.com>2016-01-26 00:05:05 +0200
commitcd61a13d3663e0def40b7a35ff4b5a08eb1bb5b2 (patch)
tree9e4ff2b97e3085f392f78881cd2e4e13a195c2ea
parent1ffc51f6b436e849353eb6867ba46bf30513e513 (diff)
h815: gps: move config from common
Change-Id: Iba36dc76012e55008ed70d7a1b21c53568b3b3d9
-rw-r--r--configs/gps.conf102
-rw-r--r--device.mk4
2 files changed, 106 insertions, 0 deletions
diff --git a/configs/gps.conf b/configs/gps.conf
new file mode 100644
index 0000000..42489fb
--- /dev/null
+++ b/configs/gps.conf
@@ -0,0 +1,102 @@
+#Uncommenting these urls would only enable
+#the power up auto injection and force injection(test case).
+XTRA_SERVER_1=http://xtrapath1.izatcloud.net/xtra3grc.bin
+XTRA_SERVER_2=http://xtrapath2.izatcloud.net/xtra3grc.bin
+XTRA_SERVER_3=http://xtrapath3.izatcloud.net/xtra3grc.bin
+
+#Version check for XTRA
+#DISABLE = 0
+#AUTO = 1
+#XTRA2 = 2
+#XTRA3 = 3
+XTRA_VERSION_CHECK=0
+
+# Error Estimate
+# _SET = 1
+# _CLEAR = 0
+ERR_ESTIMATE=0
+
+# Test
+#NTP_SERVER=time.gpsonextra.net
+# Asia
+#NTP_SERVER=asia.pool.ntp.org
+# Europe
+NTP_SERVER=europe.pool.ntp.org
+# North America
+#NTP_SERVER=north-america.pool.ntp.org
+
+# DEBUG LEVELS: 0 - none, 1 - Error, 2 - Warning, 3 - Info
+# 4 - Debug, 5 - Verbose
+# If DEBUG_LEVEL is commented, Android's logging levels will be used
+DEBUG_LEVEL = 2
+
+# Intermediate position report, 1=enable, 0=disable
+INTERMEDIATE_POS=0
+
+# Below bit mask configures how GPS functionalities
+# should be locked when user turns off GPS on Settings
+# Set bit 0x1 if MO GPS functionalities are to be locked
+# Set bit 0x2 if NI GPS functionalities are to be locked
+# default - non is locked for backward compatibility
+#GPS_LOCK_MASK = 0
+
+# SUPL version 2.0
+SUPL_VER=0x20000
+
+# Emergency SUPL, 1=enable, 0=disable
+SUPL_ES=1
+
+# GPS Capabilities bit mask
+# SCHEDULING = 0x01
+# MSB = 0x02
+# MSA = 0x04
+# ON_DEMAND_TIME = 0x10
+# GEOFENCE = 0x20
+# default = ON_DEMAND_TIME | MSA | MSB | SCHEDULING | GEOFENCE
+CAPABILITIES=0x37
+
+# Accuracy threshold for intermediate positions
+# less accurate positions are ignored, 0 for passing all positions
+#ACCURACY_THRES=5000
+
+################################
+##### AGPS server settings #####
+################################
+
+# FOR SUPL SUPPORT, set the following
+# SUPL_HOST=supl.host.com or IP
+# SUPL_PORT=1234
+SUPL_HOST=supl.google.com
+SUPL_PORT=7276
+
+# Bitmask of slots that are available
+# for write/install to, where 1s indicate writable,
+# and the default value is 0 where no slots
+# are writable. For example, AGPS_CERT_WRITABLE_MASK
+# of b1000001010 makes 3 slots available
+# for installation (slots 2, 4, and 10)
+# and the remaining 7 slots unwritable.
+#AGPS_CERT_WRITABLE_MASK=0
+
+####################################
+# LTE Positioning Profile Settings
+####################################
+# 0: Enable RRLP on LTE(Default)
+# 1: Enable LPP_User_Plane on LTE
+# 2: Enable LPP_Control_Plane
+# 3: Enable both LPP_User_Plane and LPP_Control_Plane
+LPP_PROFILE = 0
+
+################################
+# EXTRA SETTINGS
+################################
+# NMEA provider (1=Modem Processor, 0=Application Processor)
+NMEA_PROVIDER=0
+
+##################################################
+# Select Positioning Protocol on A-GLONASS system
+##################################################
+# 0x1: RRC CPlane
+# 0x2: RRLP UPlane
+# 0x4: LLP Uplane
+A_GLONASS_POS_PROTOCOL_SELECT = 0
diff --git a/device.mk b/device.mk
index a5b6724..6748b05 100644
--- a/device.mk
+++ b/device.mk
@@ -26,5 +26,9 @@ DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/audio/audio_platform_info.xml:system/etc/audio_platform_info.xml
+# Gps
+PRODUCT_COPY_FILES += \
+ $(LOCAL_PATH)/configs/gps.conf:system/etc/gps.conf
+
# common g4
$(call inherit-product, device/lge/g4-common/g4.mk)