summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Michele Berionne <mberionne@google.com> 2018-12-05 11:05:33 -0800
committer Michele Berionne <mberionne@google.com> 2018-12-07 13:12:34 -0800
commit8ac8bd28f424bb02f61b48d6e4f3c0a668853fdb (patch)
treec86376d56520db7af6954d54dc4d4efb9a5964d1
parent79db2b093aa0c1d4fe10cca5c9185147df298e1c (diff)
Add new key for carrier configuration version
Add new key to retrieve the carrier configuration version, so that it can be displayed to the user. Bug: 116527591 Test: Verified compilation. Change-Id: I43a07faa41a925d8928d9c1fa59b9a01d08eb815
-rw-r--r--telephony/java/android/telephony/CarrierConfigManager.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/telephony/java/android/telephony/CarrierConfigManager.java b/telephony/java/android/telephony/CarrierConfigManager.java
index a0064e250136..e72d67b20160 100644
--- a/telephony/java/android/telephony/CarrierConfigManager.java
+++ b/telephony/java/android/telephony/CarrierConfigManager.java
@@ -78,6 +78,15 @@ public class CarrierConfigManager {
// system image, that can be added in packages/apps/CarrierConfig.
/**
+ * Specifies a value that identifies the version of the carrier configuration that is
+ * currently in use. This string is displayed on the UI.
+ * The format of the string is not specified.
+ * @hide
+ */
+ public static final String KEY_CARRIER_CONFIG_VERSION_STRING =
+ "carrier_config_version_string";
+
+ /**
* This flag specifies whether VoLTE availability is based on provisioning. By default this is
* false.
*/
@@ -2328,6 +2337,7 @@ public class CarrierConfigManager {
static {
sDefaults = new PersistableBundle();
+ sDefaults.putString(KEY_CARRIER_CONFIG_VERSION_STRING, "");
sDefaults.putBoolean(KEY_ALLOW_HOLD_IN_IMS_CALL_BOOL, true);
sDefaults.putBoolean(KEY_CARRIER_ALLOW_DEFLECT_IMS_CALL_BOOL, false);
sDefaults.putBoolean(KEY_ALWAYS_PLAY_REMOTE_HOLD_TONE_BOOL, false);