summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorKevin Tang <zhikait@codeaurora.org>2014-09-11 12:19:14 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2014-10-20 15:00:31 -0700
commitaf2762ceca5cf9f99120ab5d1a6971fa1c3b5901 (patch)
tree912c1a4d2b99389483bfb9d4dc01b57214ac4fe4 /etc
parent809dec4e92deee31551fae7dc9754daf80d20697 (diff)
downloadgps-af2762ceca5cf9f99120ab5d1a6971fa1c3b5901.tar.gz
GPS_LOCK configuration support
GPS_LOCK is defined as a bit mask in the higher layer defined in gps.conf. GPS HAL reads from gps.conf, yet this can be reconfigured by gps.h defined new API to a different value. The current value will be used at cleanup() time, to optionally lock gps modem to the configured mode. This changs also sets SUPL URL to NULL if hostname comes with set_server() API is a NULL string. Also optimized configuration_update() implementation so that no all items will go through the reconfigu scan. Also added SUPL_MODE as a parameter in gps.conf which can be uncommented to over-write the value from config.xml. This can be used for testing purposes Bug: 16131208 Bug: 17288144 CRs-fixed: 736966 Change-Id: I12a89b12ff82b6efd7b5567d2fcd6a7e79414c71
Diffstat (limited to 'etc')
-rw-r--r--etc/gps.conf14
1 files changed, 14 insertions, 0 deletions
diff --git a/etc/gps.conf b/etc/gps.conf
index c57088a..beda6da 100644
--- a/etc/gps.conf
+++ b/etc/gps.conf
@@ -33,6 +33,13 @@ DEBUG_LEVEL = 3
# 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 = 0
+
# supl version 1.0
SUPL_VER=0x10000
@@ -44,6 +51,13 @@ SUPL_ES=1
#0 - Use regular SUPL PDN for Emergency SUPL
USE_EMERGENCY_PDN_FOR_EMERGENCY_SUPL=1
+#SUPL_MODE is a bit mask set in config.xml per carrier by default.
+#If it is uncommented here, this value will over write the value from
+#config.xml.
+#MSA=0X1
+#MSB=0X2
+#SUPL_MODE=
+
# GPS Capabilities bit mask
# SCHEDULING = 0x01
# MSB = 0x02