From 462bcd8194cfbcf5ecbed893b19f1a21f721e1ed Mon Sep 17 00:00:00 2001 From: Tsuwei Chen Date: Wed, 17 Sep 2014 12:28:49 -0700 Subject: [PATCH] Allow carrier specific requirement on GPS features to be specified through a dedicated configuration key. Currently, carrier requirement is specified through CAPABILITIES key, whose original purpose is to indicate the capability of the hardware, not to enable/disable features in GPS HW. With this fix, carrier requirement on GPS features can be specified properly without messing up with the real capability. This will satisfy VzW, Sprint and USC's requirement on SUPL mode, without sacrificing the capability of HW geofence. Bug: 17423585 Bug: 17288144 Change-Id: I71173722d4b12bfc17562f7b5444d22b01ff4590 --- core/res/res/values/config.xml | 1 + .../server/location/GpsLocationProvider.java | 56 ++++++++++++++----- 2 files changed, 44 insertions(+), 13 deletions(-) diff --git a/core/res/res/values/config.xml b/core/res/res/values/config.xml index e95d7357a7593..dee6aeeb07d87 100644 --- a/core/res/res/values/config.xml +++ b/core/res/res/values/config.xml @@ -1791,6 +1791,7 @@ SUPL_PORT=7275 NTP_SERVER=north-america.pool.ntp.org SUPL_VER=0x20000 + SUPL_MODE=0x01