summaryrefslogtreecommitdiffstats
path: root/telephony/java/android
diff options
context:
space:
mode:
authorJack Yu <jackyu@google.com>2015-07-22 13:36:42 -0700
committerJack Yu <jackyu@google.com>2015-07-23 05:21:54 +0000
commita4f2da398837c5eaec5dec13c29e13af3f7185e3 (patch)
treea4a418807bcf24e4e502ed90adc6306740d34bf0 /telephony/java/android
parent06b93a48ad0d2274ff41683e08b8a1429045b0a9 (diff)
downloadframeworks_base-a4f2da398837c5eaec5dec13c29e13af3f7185e3.zip
frameworks_base-a4f2da398837c5eaec5dec13c29e13af3f7185e3.tar.gz
frameworks_base-a4f2da398837c5eaec5dec13c29e13af3f7185e3.tar.bz2
Allow carriers to force disable ETWS/CMAS test messages.
This feature can be enabled in carrier config XML. When enabled, the user will not see ETWS/CMAS enable/disable option in emergency broadcast preference menu. bug: 22396039 Change-Id: I6ad6fa39852d3b13faeef968a1963b3e0a4a6e61
Diffstat (limited to 'telephony/java/android')
-rw-r--r--telephony/java/android/telephony/CarrierConfigManager.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/telephony/java/android/telephony/CarrierConfigManager.java b/telephony/java/android/telephony/CarrierConfigManager.java
index e861668..e9c41a1 100644
--- a/telephony/java/android/telephony/CarrierConfigManager.java
+++ b/telephony/java/android/telephony/CarrierConfigManager.java
@@ -273,6 +273,14 @@ public class CarrierConfigManager {
*/
public static final String KEY_DEFAULT_SIM_CALL_MANAGER_STRING = "default_sim_call_manager_string";
+ /**
+ * The default flag specifying whether ETWS/CMAS test setting is forcibly disabled in
+ * Settings->More->Emergency broadcasts menu even though developer options is turned on.
+ * @hide
+ */
+ public static final String KEY_CARRIER_FORCE_DISABLE_ETWS_CMAS_TEST_BOOL =
+ "carrier_force_disable_etws_cmas_test_bool";
+
/* The following 3 fields are related to carrier visual voicemail. */
/**
@@ -381,6 +389,7 @@ public class CarrierConfigManager {
sDefaults.putBoolean(KEY_CARRIER_VOLTE_AVAILABLE_BOOL, false);
sDefaults.putBoolean(KEY_CARRIER_VT_AVAILABLE_BOOL, false);
sDefaults.putBoolean(KEY_CARRIER_WFC_IMS_AVAILABLE_BOOL, false);
+ sDefaults.putBoolean(KEY_CARRIER_FORCE_DISABLE_ETWS_CMAS_TEST_BOOL, false);
sDefaults.putBoolean(KEY_CARRIER_VOLTE_PROVISIONING_REQUIRED_BOOL, false);
sDefaults.putBoolean(KEY_CARRIER_VOLTE_TTY_SUPPORTED_BOOL, true);
sDefaults.putBoolean(KEY_CARRIER_ALLOW_TURNOFF_IMS_BOOL, true);