diff --git a/core/res/res/values/strings.xml b/core/res/res/values/strings.xml
index 0f31a8a7d00ce..8518c7021ee7a 100644
--- a/core/res/res/values/strings.xml
+++ b/core/res/res/values/strings.xml
@@ -248,6 +248,10 @@
- @string/wfcSpnFormat_spn_wifi
- @string/wfcSpnFormat_wifi_calling_bar_spn
- @string/wfcSpnFormat_spn_vowifi
+ - @string/wfcSpnFormat_wifi_calling
+ - @string/wfcSpnFormat_wifi
+ - @string/wfcSpnFormat_wifi_calling_wo_hyphen
+ - @string/wfcSpnFormat_vowifi
@@ -264,6 +268,14 @@
WiFi Calling | %s
%s VoWifi
+
+ Wi-Fi Calling
+
+ Wi-Fi
+
+ WiFi Calling
+
+ VoWifi
Off
diff --git a/telephony/java/android/telephony/CarrierConfigManager.java b/telephony/java/android/telephony/CarrierConfigManager.java
index c2958d35709b5..0280a759e943c 100644
--- a/telephony/java/android/telephony/CarrierConfigManager.java
+++ b/telephony/java/android/telephony/CarrierConfigManager.java
@@ -1079,23 +1079,43 @@ public class CarrierConfigManager {
"wfc_operator_error_codes_string_array";
/**
- * Indexes of SPN format strings in wfcSpnFormats and wfcDataSpnFormats.
+ * Indexes of SPN format strings in wfcSpnFormats.
*
*
Available options are:
*
- * - 0: %s
- * - 1: %s Wi-Fi Calling
- * - 2: WLAN Call
- * - 3: %s WLAN Call
- * - 4: %s Wi-Fi
- * - 5: WiFi Calling | %s
- * - 6: %s VoWifi
+ * - 0: %s
+ * - 1: %s Wi-Fi Calling
+ * - 2: WLAN Call
+ * - 3: %s WLAN Call
+ * - 4: %s Wi-Fi
+ * - 5: WiFi Calling | %s
+ * - 6: %s VoWifi
+ * - 7: Wi-Fi Calling
+ * - 8: Wi-Fi
+ * - 9: WiFi Calling
+ * - 10: VoWifi
* @hide
*/
public static final String KEY_WFC_SPN_FORMAT_IDX_INT = "wfc_spn_format_idx_int";
- /** @hide */
+
+ /**
+ * Indexes of data SPN format strings in wfcSpnFormats.
+ *
+ * @see KEY_WFC_SPN_FORMAT_IDX_INT for available options.
+ * @hide
+ */
public static final String KEY_WFC_DATA_SPN_FORMAT_IDX_INT = "wfc_data_spn_format_idx_int";
+ /**
+ * Indexes of SPN format strings in wfcSpnFormats used during flight mode.
+ *
+ * Set to -1 to use the value from KEY_WFC_SPN_FORMAT_IDX_INT also in this case.
+ * @see KEY_WFC_SPN_FORMAT_IDX_INT for other available options.
+ * @hide
+ */
+ public static final String KEY_WFC_FLIGHT_MODE_SPN_FORMAT_IDX_INT =
+ "wfc_flight_mode_spn_format_idx_int";
+
/**
* Use root locale when reading wfcSpnFormats.
*
@@ -2466,6 +2486,7 @@ public class CarrierConfigManager {
sDefaults.putStringArray(KEY_WFC_OPERATOR_ERROR_CODES_STRING_ARRAY, null);
sDefaults.putInt(KEY_WFC_SPN_FORMAT_IDX_INT, 0);
sDefaults.putInt(KEY_WFC_DATA_SPN_FORMAT_IDX_INT, 0);
+ sDefaults.putInt(KEY_WFC_FLIGHT_MODE_SPN_FORMAT_IDX_INT, -1);
sDefaults.putBoolean(KEY_WFC_SPN_USE_ROOT_LOCALE, false);
sDefaults.putString(KEY_WFC_EMERGENCY_ADDRESS_CARRIER_APP_STRING, "");
sDefaults.putBoolean(KEY_CONFIG_WIFI_DISABLE_IN_ECBM, false);