- Show warning when device connected to WEP protocol Bug: 331973632 Flag: EXEMPT bugfix Test: Manual testing atest -c WepLessSecureWarningControllerTest Change-Id: I54a9bafb2c672db44d47259d6acc49c02046cb81
		
			
				
	
	
		
			197 lines
		
	
	
		
			7.6 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
			
		
		
	
	
			197 lines
		
	
	
		
			7.6 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
| <?xml version="1.0" encoding="utf-8"?>
 | |
| <!-- Copyright (C) 2020 The Android Open Source Project
 | |
| 
 | |
|      Licensed under the Apache License, Version 2.0 (the "License");
 | |
|      you may not use this file except in compliance with the License.
 | |
|      You may obtain a copy of the License at
 | |
| 
 | |
|           http://www.apache.org/licenses/LICENSE-2.0
 | |
| 
 | |
|      Unless required by applicable law or agreed to in writing, software
 | |
|      distributed under the License is distributed on an "AS IS" BASIS,
 | |
|      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | |
|      See the License for the specific language governing permissions and
 | |
|      limitations under the License.
 | |
| -->
 | |
| 
 | |
| <PreferenceScreen
 | |
|     xmlns:android="http://schemas.android.com/apk/res/android"
 | |
|     xmlns:settings="http://schemas.android.com/apk/res-auto">
 | |
| 
 | |
|     <com.android.settingslib.widget.LayoutPreference
 | |
|         android:key="connection_header"
 | |
|         android:layout="@layout/settings_entity_header"
 | |
|         android:selectable="false"
 | |
|         android:order="-10000"/>
 | |
| 
 | |
|     <com.android.settings.datausage.DataUsageSummaryPreference
 | |
|         android:key="status_header"
 | |
|         android:selectable="false"
 | |
|         settings:isPreferenceVisible="false"/>
 | |
| 
 | |
|     <!-- The preference to display the second summary -->
 | |
|     <com.android.settings.widget.LinkifySummaryPreference
 | |
|         android:key="second_summary"
 | |
|         android:icon="@drawable/ic_info_outline_24dp"
 | |
|         android:selectable="false"/>
 | |
| 
 | |
|     <com.android.settingslib.widget.BannerMessagePreference
 | |
|         android:key="wep_less_secure_warning"
 | |
|         android:title="@string/wep_network_less_secure_warning_title"
 | |
|         settings:controller="com.android.settings.wifi.WepLessSecureWarningController"/>
 | |
| 
 | |
|     <!-- Buttons -->
 | |
|     <com.android.settingslib.widget.ActionButtonsPreference
 | |
|         android:key="buttons"
 | |
|         android:selectable="false"/>
 | |
| 
 | |
|     <!-- Hotspot device details category -->
 | |
|     <PreferenceCategory
 | |
|         android:key="hotspot_device_details_category"
 | |
|         android:title="@string/hotspot_device_details_category"
 | |
|         settings:isPreferenceVisible="false">
 | |
|         <Preference
 | |
|             android:key="hotspot_device_details_internet_source"
 | |
|             android:title="@string/hotspot_device_details_internet_source"
 | |
|             android:selectable="false"
 | |
|             settings:enableCopying="true"/>
 | |
|         <Preference
 | |
|             android:key="hotspot_device_details_battery"
 | |
|             android:icon="@drawable/ic_battery_full"
 | |
|             android:title="@string/power_usage_summary_title"
 | |
|             android:selectable="false"
 | |
|             settings:enableCopying="true"/>
 | |
|     </PreferenceCategory>
 | |
| 
 | |
|     <!-- Hotspot connection category -->
 | |
|     <PreferenceCategory
 | |
|         android:key="hotspot_connection_category"
 | |
|         android:title="@string/hotspot_connection_category"
 | |
|         settings:isPreferenceVisible="false">
 | |
|     </PreferenceCategory>
 | |
| 
 | |
|     <!-- General Details Preferences -->
 | |
|     <Preference
 | |
|         android:key="signal_strength"
 | |
|         android:title="@string/wifi_signal"
 | |
|         android:selectable="false"/>
 | |
| 
 | |
|     <Preference
 | |
|         android:key="frequency"
 | |
|         android:icon="@drawable/ic_frequency_antenna"
 | |
|         android:title="@string/wifi_frequency"
 | |
|         android:selectable="false"/>
 | |
| 
 | |
|     <Preference
 | |
|         android:key="security"
 | |
|         android:icon="@drawable/ic_security_lock_24dp"
 | |
|         android:title="@string/wifi_security"
 | |
|         android:selectable="false"/>
 | |
| 
 | |
|     <ListPreference
 | |
|         android:key="metered"
 | |
|         android:icon="@drawable/ic_attach_money_black_24dp"
 | |
|         android:title="@string/wifi_metered_title"
 | |
|         android:entries="@array/wifi_metered_entries"
 | |
|         android:entryValues="@array/wifi_metered_values"/>
 | |
| 
 | |
|     <ListPreference
 | |
|         android:key="privacy"
 | |
|         android:icon="@drawable/ic_wifi_privacy_24dp"
 | |
|         android:title="@string/wifi_privacy_settings"
 | |
|         android:entries="@array/wifi_privacy_entries"
 | |
|         android:entryValues="@array/wifi_privacy_values"/>
 | |
| 
 | |
|     <com.android.settings.spa.preference.ComposePreference
 | |
|         android:key="privacy_settings"
 | |
|         android:title="@string/wifi_privacy_settings"
 | |
|         settings:controller="com.android.settings.wifi.details2.WifiPrivacyPreferenceController"/>
 | |
| 
 | |
|     <Preference
 | |
|         android:key="subscription_detail"
 | |
|         android:title="@string/wifi_subscription"
 | |
|         android:summary="@string/wifi_subscription_summary"/>
 | |
| 
 | |
|     <SwitchPreferenceCompat
 | |
|         android:key="auto_connect"
 | |
|         android:title="@string/wifi_auto_connect_title"
 | |
|         android:summary="@string/wifi_auto_connect_summary"/>
 | |
| 
 | |
|     <com.android.settings.spa.preference.ComposePreference
 | |
|         android:key="certificate_details"
 | |
|         settings:controller="com.android.settings.wifi.details2.CertificateDetailsPreferenceController"/>
 | |
| 
 | |
|     <!-- Add device Preference -->
 | |
|     <Preference
 | |
|         android:key="add_device_to_network"
 | |
|         android:title="@string/wifi_dpp_add_device"
 | |
|         android:summary="@string/wifi_dpp_connect_network_using_qr_code"/>
 | |
| 
 | |
|     <!-- Network Details -->
 | |
|     <PreferenceCategory
 | |
|             android:key="ip_details_category"
 | |
|             android:title="@string/wifi_setup_detail">
 | |
|         <com.android.settings.spa.preference.ComposePreference
 | |
|             android:key="server_name"
 | |
|             settings:controller="com.android.settings.wifi.details2.ServerNamePreferenceController"/>
 | |
|         <Preference
 | |
|                 android:key="type"
 | |
|                 android:title="@string/wifi_type_title"
 | |
|                 android:selectable="false"
 | |
|                 settings:enableCopying="true"/>
 | |
|         <Preference
 | |
|                 android:key="ssid"
 | |
|                 android:title="@string/wifi_advanced_ssid_title"
 | |
|                 android:selectable="false"
 | |
|                 settings:enableCopying="true"/>
 | |
|         <Preference
 | |
|                 android:key="eap_sim_subscription"
 | |
|                 android:title="@string/sim_card"
 | |
|                 android:selectable="false"
 | |
|                 settings:enableCopying="true"/>
 | |
|         <Preference
 | |
|                 android:key="mac_address"
 | |
|                 android:title="@string/wifi_advanced_randomized_mac_address_title"
 | |
|                 android:selectable="false"
 | |
|                 settings:enableCopying="true"/>
 | |
|         <Preference
 | |
|                 android:key="ip_address"
 | |
|                 android:title="@string/wifi_ip_address"
 | |
|                 android:selectable="false"
 | |
|                 settings:enableCopying="true"/>
 | |
|         <Preference
 | |
|                 android:key="gateway"
 | |
|                 android:title="@string/wifi_gateway"
 | |
|                 android:selectable="false"
 | |
|                 settings:enableCopying="true"/>
 | |
|         <Preference
 | |
|                 android:key="subnet_mask"
 | |
|                 android:title="@string/wifi_details_subnet_mask"
 | |
|                 android:selectable="false"
 | |
|                 settings:enableCopying="true"/>
 | |
|         <Preference
 | |
|                 android:key="dns"
 | |
|                 android:title="@string/wifi_details_dns"
 | |
|                 android:selectable="false"
 | |
|                 settings:enableCopying="true"/>
 | |
|         <Preference
 | |
|                 android:key="tx_link_speed"
 | |
|                 android:title="@string/tx_wifi_speed"
 | |
|                 android:selectable="false"
 | |
|                 settings:enableCopying="true"/>
 | |
|         <Preference
 | |
|                 android:key="rx_link_speed"
 | |
|                 android:title="@string/rx_wifi_speed"
 | |
|                 android:selectable="false"
 | |
|                 settings:enableCopying="true"/>
 | |
|     </PreferenceCategory>
 | |
| 
 | |
|     <!-- IPv6 address -->
 | |
|     <Preference
 | |
|         android:title="@string/wifi_details_ipv6_address_header"
 | |
|         android:key="ipv6_addresses"
 | |
|         android:selectable="false"
 | |
|         settings:enableCopying="true"/>
 | |
| 
 | |
| </PreferenceScreen>
 |