1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2019 The Android Open Source Project 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15--> 16<PreferenceScreen 17 xmlns:android="http://schemas.android.com/apk/res/android" 18 xmlns:settings="http://schemas.android.com/apk/res-auto" 19 android:key="mobile_network_pref_screen"> 20 21 <com.android.settings.widget.SettingsMainSwitchPreference 22 android:key="use_sim_switch" 23 settings:controller="com.android.settings.network.telephony.MobileNetworkSwitchController"/> 24 25 <PreferenceCategory 26 android:key="enabled_state_container" 27 android:title="@string/summary_placeholder" 28 settings:controller="com.android.settings.network.telephony.DisabledSubscriptionController" 29 android:layout="@layout/preference_category_no_label"> 30 31 <com.android.settings.datausage.DataUsageSummaryPreference 32 android:key="status_header" 33 android:visibility="gone" 34 android:selectable="false"/> 35 36 <ListPreference 37 android:key="calls_preference" 38 android:title="@string/calls_preference" 39 settings:controller="com.android.settings.network.telephony.CallsDefaultSubscriptionController" 40 settings:allowDividerAbove="true"/> 41 42 <ListPreference 43 android:key="sms_preference" 44 android:title="@string/sms_preference" 45 settings:controller="com.android.settings.network.telephony.SmsDefaultSubscriptionController"/> 46 47 <Preference 48 android:key="cdma_lte_data_service_key" 49 android:title="@string/cdma_lte_data_service" 50 settings:controller="com.android.settings.network.telephony.DataServiceSetupPreferenceController" 51 settings:allowDividerAbove="true" 52 settings:allowDividerBelow="false"/> 53 54 <SwitchPreference 55 android:key="mobile_data_enable" 56 android:title="@string/mobile_data_settings_title" 57 android:summary="@string/mobile_data_settings_summary" 58 settings:controller="com.android.settings.network.telephony.MobileDataPreferenceController" 59 settings:allowDividerAbove="true"/> 60 61 <com.android.settingslib.RestrictedSwitchPreference 62 android:key="button_roaming_key" 63 android:title="@string/roaming" 64 android:persistent="false" 65 android:summaryOn="@string/roaming_enable" 66 android:summaryOff="@string/roaming_disable" 67 settings:userRestriction="no_data_roaming" 68 settings:controller="com.android.settings.network.telephony.RoamingPreferenceController"/> 69 70 <Preference 71 android:key="data_usage_summary" 72 android:title="@string/mobile_data_usage_title" 73 settings:controller="com.android.settings.network.telephony.DataUsagePreferenceController"/> 74 75 <com.android.settings.datausage.BillingCyclePreference 76 android:key="billing_preference" 77 android:title="@string/billing_cycle" 78 settings:controller="com.android.settings.datausage.BillingCyclePreferenceController"/> 79 80 <SwitchPreference 81 android:key="carrier_wifi_toggle" 82 android:title="@string/carrier_wifi_offload_title" 83 android:summary="@string/carrier_wifi_offload_summary" 84 settings:controller="com.android.settings.network.CarrierWifiTogglePreferenceController"/> 85 86 <Preference 87 android:key="carrier_wifi_network" 88 android:title="@string/carrier_wifi_network_title" 89 android:selectable="false" 90 settings:searchable="false"/> 91 92 <SwitchPreference 93 android:key="mms_message" 94 android:title="@string/mms_message_title" 95 android:summary="@string/mms_message_summary" 96 settings:controller="com.android.settings.network.telephony.MmsMessagePreferenceController"/> 97 98 <SwitchPreference 99 android:key="data_during_calls" 100 android:title="@string/data_during_calls_title" 101 android:summary="@string/data_during_calls_summary" 102 settings:controller="com.android.settings.network.telephony.DataDuringCallsPreferenceController"/> 103 104 <SwitchPreference 105 android:key="enhanced_4g_lte" 106 android:title="@string/enhanced_4g_lte_mode_title" 107 android:persistent="false" 108 android:summary="@string/enhanced_4g_lte_mode_summary" 109 settings:keywords="@string/keywords_enhance_4g_lte" 110 settings:controller="com.android.settings.network.telephony.Enhanced4gLtePreferenceController"/> 111 112 <SwitchPreference 113 android:key="4g_calling" 114 android:title="@string/enhanced_4g_lte_mode_title_4g_calling" 115 android:persistent="false" 116 android:summary="@string/enhanced_4g_lte_mode_summary_4g_calling" 117 settings:keywords="@string/keywords_enhance_4g_lte" 118 settings:controller="com.android.settings.network.telephony.Enhanced4gCallingPreferenceController"/> 119 120 <SwitchPreference 121 android:key="advance_call" 122 android:title="@string/enhanced_4g_lte_mode_title_advanced_calling" 123 android:persistent="false" 124 android:summary="@string/enhanced_4g_lte_mode_summary" 125 settings:keywords="@string/keywords_enhance_4g_lte" 126 settings:controller="com.android.settings.network.telephony.Enhanced4gAdvancedCallingPreferenceController"/> 127 128 <SwitchPreference 129 android:key="contact_discovery_opt_in" 130 android:title="@string/contact_discovery_opt_in_title" 131 android:persistent="false" 132 android:summary="@string/contact_discovery_opt_in_summary" 133 settings:controller="com.android.settings.network.telephony.ContactDiscoveryPreferenceController"/> 134 135 <ListPreference 136 android:key="preferred_network_mode_key" 137 android:title="@string/preferred_network_mode_title" 138 android:summary="@string/preferred_network_mode_summary" 139 android:entries="@array/preferred_network_mode_choices" 140 android:entryValues="@array/preferred_network_mode_values" 141 android:dialogTitle="@string/preferred_network_mode_dialogtitle" 142 settings:controller="com.android.settings.network.telephony.PreferredNetworkModePreferenceController"/> 143 144 <ListPreference 145 android:key="enabled_networks_key" 146 android:title="@string/preferred_network_mode_title" 147 android:summary="@string/preferred_network_mode_summary" 148 android:entries="@array/enabled_networks_choices" 149 android:entryValues="@array/enabled_networks_values" 150 android:dialogTitle="@string/preferred_network_mode_dialogtitle" 151 settings:controller="com.android.settings.network.telephony.EnabledNetworkModePreferenceController"/> 152 153 <Preference 154 android:key="carrier_settings_version_key" 155 android:title="@string/carrier_settings_version" 156 android:enabled="false" 157 android:shouldDisableView="false" 158 android:selectable="false" 159 settings:controller="com.android.settings.network.telephony.CarrierSettingsVersionPreferenceController" 160 settings:enableCopying="true"/> 161 162 <PreferenceCategory 163 android:key="calling_category" 164 android:title="@string/call_category" 165 settings:controller="com.android.settings.network.telephony.CallingPreferenceCategoryController"> 166 167 <Preference 168 android:key="wifi_calling" 169 android:title="@string/wifi_calling_settings_title" 170 android:summary="@string/wifi_calling_summary" 171 settings:controller="com.android.settings.network.telephony.WifiCallingPreferenceController"> 172 <intent android:action="android.intent.action.MAIN" 173 android:targetPackage="com.android.settings" 174 android:targetClass="com.android.settings.Settings$WifiCallingSettingsActivity"> 175 <extra android:name="show_drawer_menu" android:value="true"/> 176 </intent> 177 </Preference> 178 179 <SwitchPreference 180 android:key="video_calling_key" 181 android:title="@string/video_calling_settings_title" 182 android:persistent="true" 183 settings:controller="com.android.settings.network.telephony.VideoCallingPreferenceController"/> 184 185 <SwitchPreference 186 android:key="backup_calling_key" 187 android:title="@string/backup_calling_settings_title" 188 android:persistent="false" 189 android:summary="@string/backup_calling_setting_summary" 190 settings:keywords="@string/keywords_backup_calling" 191 settings:controller="com.android.settings.network.telephony.BackupCallingPreferenceController"/> 192 193 </PreferenceCategory> 194 195 <com.android.settings.network.telephony.cdma.CdmaListPreference 196 android:key="cdma_system_select_key" 197 android:title="@string/cdma_system_select_title" 198 android:summary="@string/cdma_system_select_summary" 199 android:entries="@array/cdma_system_select_choices" 200 android:entryValues="@array/cdma_system_select_values" 201 android:dialogTitle="@string/cdma_system_select_dialogtitle" 202 settings:controller="com.android.settings.network.telephony.cdma.CdmaSystemSelectPreferenceController"/> 203 204 <com.android.settings.network.telephony.cdma.CdmaListPreference 205 android:key="cdma_subscription_key" 206 android:title="@string/cdma_subscription_title" 207 android:summary="@string/cdma_subscription_summary" 208 android:entries="@array/cdma_subscription_choices" 209 android:entryValues="@array/cdma_subscription_values" 210 android:dialogTitle="@string/cdma_subscription_dialogtitle" 211 settings:controller="com.android.settings.network.telephony.cdma.CdmaSubscriptionPreferenceController"/> 212 213 <PreferenceCategory 214 android:key="network_operators_category_key" 215 android:title="@string/network_operator_category" 216 settings:controller="com.android.settings.network.telephony.NetworkPreferenceCategoryController"> 217 218 <SwitchPreference 219 android:key="auto_select_key" 220 android:title="@string/select_automatically" 221 settings:controller="com.android.settings.network.telephony.gsm.AutoSelectPreferenceController"/> 222 223 <Preference 224 android:key="choose_network_key" 225 android:title="@string/choose_network_title" 226 android:fragment="com.android.phone.NetworkSelectSetting" 227 settings:controller="com.android.settings.network.telephony.gsm.OpenNetworkSelectPagePreferenceController"/> 228 </PreferenceCategory> 229 230 <!--We want separate APN setting from reset of settings because we want user to change it with caution--> 231 <com.android.settingslib.RestrictedPreference 232 android:key="telephony_apn_key" 233 android:persistent="false" 234 android:title="@string/mobile_network_apn_title" 235 settings:allowDividerAbove="true" 236 settings:controller="com.android.settings.network.telephony.ApnPreferenceController"/> 237 238 <Preference 239 android:key="carrier_settings_key" 240 android:title="@string/carrier_settings_title" 241 settings:controller="com.android.settings.network.telephony.CarrierPreferenceController"> 242 </Preference> 243 244 </PreferenceCategory> 245 246 <Preference 247 android:key="erase_sim" 248 android:persistent="false" 249 android:title="@string/mobile_network_erase_sim" 250 settings:allowDividerBelow="true" 251 settings:controller="com.android.settings.network.telephony.DeleteSimProfilePreferenceController"/> 252 253 <com.android.settingslib.widget.FooterPreference 254 android:key="disable_sim_explanation" 255 android:title="@string/mobile_network_disable_sim_explanation" 256 android:selectable="false" 257 settings:allowDividerAbove="true" 258 settings:searchable="false" 259 settings:controller="com.android.settings.network.telephony.DisableSimFooterPreferenceController"/> 260 261 <com.android.settingslib.widget.FooterPreference 262 android:key="no_5g_in_dsds_explanation" 263 android:title="@string/no_5g_in_dsds_text" 264 android:selectable="false" 265 settings:allowDividerAbove="true" 266 settings:searchable="false" 267 settings:controller="com.android.settings.network.telephony.NrDisabledInDsdsFooterPreferenceController"/> 268 269 <SwitchPreference 270 android:key="enable_2g" 271 android:title="@string/enable_2g_title" 272 android:summary="@string/enable_2g_summary" 273 settings:controller="com.android.settings.network.telephony.Enable2gPreferenceController" /> 274</PreferenceScreen> 275