1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 Copyright (C) 2018 The Android Open Source Project 4 5 Licensed under the Apache License, Version 2.0 (the "License"); 6 you may not use this file except in compliance with the License. 7 You may obtain a copy of the License at 8 9 http://www.apache.org/licenses/LICENSE-2.0 10 11 Unless required by applicable law or agreed to in writing, software 12 distributed under the License is distributed on an "AS IS" BASIS, 13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 See the License for the specific language governing permissions and 15 limitations under the License. 16 --> 17 18<PreferenceScreen 19 xmlns:android="http://schemas.android.com/apk/res/android" 20 xmlns:settings="http://schemas.android.com/apk/res-auto" 21 android:key="my_device_info_pref_screen" 22 android:title="@string/about_settings"> 23 24 <com.android.settingslib.widget.LayoutPreference 25 android:key="my_device_info_header" 26 android:order="0" 27 android:layout="@layout/settings_entity_header" 28 android:selectable="false" 29 settings:isPreferenceVisible="false"/> 30 31 <PreferenceCategory 32 android:key="basic_info_category" 33 android:selectable="false" 34 android:title="@string/my_device_info_basic_info_category_title"> 35 36 <!-- Device name --> 37 <com.android.settings.widget.ValidatedEditTextPreference 38 android:key="device_name" 39 android:order="1" 40 android:title="@string/my_device_info_device_name_preference_title" 41 android:summary="@string/summary_placeholder" 42 settings:controller="com.android.settings.deviceinfo.DeviceNamePreferenceController" 43 settings:enableCopying="true"/> 44 45 <!-- Account name --> 46 <Preference 47 android:key="branded_account" 48 android:order="2" 49 android:title="@string/my_device_info_account_preference_title" 50 android:summary="@string/summary_placeholder" 51 settings:enableCopying="true" 52 settings:controller="com.android.settings.deviceinfo.BrandedAccountPreferenceController"/> 53 54 <!-- Phone number --> 55 <Preference 56 android:key="phone_number" 57 android:order="3" 58 android:title="@string/status_number" 59 android:summary="@string/summary_placeholder" 60 android:selectable="false" 61 settings:isPreferenceVisible="@bool/config_show_sim_info" 62 settings:controller="com.android.settings.deviceinfo.PhoneNumberPreferenceController" 63 settings:enableCopying="true"/> 64 </PreferenceCategory> 65 66 <PreferenceCategory 67 android:title="@string/my_device_info_legal_category_title"> 68 69 <!-- Legal information --> 70 <Preference 71 android:key="legal_container" 72 android:order="15" 73 android:title="@string/legal_information" 74 android:fragment="com.android.settings.LegalSettings"/> 75 76 <!-- Regulatory labels --> 77 <Preference 78 android:key="regulatory_info" 79 android:order="16" 80 android:title="@string/regulatory_labels"> 81 <intent android:action="android.settings.SHOW_REGULATORY_INFO" 82 android:targetPackage="${applicationId}"/> 83 </Preference> 84 85 <!-- Safety & regulatory manual --> 86 <Preference 87 android:key="safety_info" 88 android:order="17" 89 android:title="@string/safety_and_regulatory_info"/> 90 </PreferenceCategory> 91 92 <PreferenceCategory 93 android:key="device_detail_category" 94 android:selectable="false" 95 android:title="@string/my_device_info_device_details_category_title"> 96 97 <!-- SIM status --> 98 <Preference 99 android:key="sim_status" 100 android:order="18" 101 android:title="@string/sim_status_title" 102 settings:keywords="@string/keywords_sim_status" 103 android:summary="@string/summary_placeholder" 104 settings:isPreferenceVisible="@bool/config_show_sim_info" 105 settings:controller="com.android.settings.deviceinfo.simstatus.SimStatusPreferenceController"/> 106 107 <!-- Model & hardware --> 108 <Preference 109 android:key="device_model" 110 android:order="30" 111 android:title="@string/model_info" 112 android:summary="@string/summary_placeholder" 113 android:fragment="com.android.settings.deviceinfo.hardwareinfo.HardwareInfoFragment" 114 settings:enableCopying="true" 115 settings:keywords="@string/keywords_model_and_hardware" 116 settings:controller="com.android.settings.deviceinfo.HardwareInfoPreferenceController"/> 117 118 <!-- EID --> 119 <com.android.settingslib.CustomDialogPreferenceCompat 120 android:key="eid_info" 121 android:order="31" 122 android:title="@string/status_eid" 123 android:positiveButtonText="@string/dlg_ok" 124 android:dialogLayout="@layout/dialog_eid_status" 125 settings:isPreferenceVisible="@bool/config_show_sim_info" 126 settings:enableCopying="true" 127 settings:controller="com.android.settings.deviceinfo.simstatus.SimEidPreferenceController"/> 128 129 <!-- IMEI --> 130 <Preference 131 android:key="imei_info" 132 android:order="32" 133 android:title="@string/status_imei" 134 android:summary="@string/summary_placeholder" 135 settings:keywords="@string/keywords_imei_info" 136 settings:enableCopying="true" 137 settings:isPreferenceVisible="@bool/config_show_sim_info" 138 settings:controller="com.android.settings.deviceinfo.imei.ImeiInfoPreferenceController"/> 139 140 <!-- Android version --> 141 <Preference 142 android:key="firmware_version" 143 android:order="42" 144 android:title="@string/firmware_version" 145 android:summary="@string/summary_placeholder" 146 android:fragment="com.android.settings.deviceinfo.firmwareversion.FirmwareVersionSettings" 147 settings:controller="com.android.settings.deviceinfo.firmwareversion.FirmwareVersionPreferenceController"/> 148 149 <!-- Battery information --> 150 <Preference 151 android:key="battery_info" 152 android:order="43" 153 android:title="@string/battery_info" 154 android:fragment="com.android.settings.deviceinfo.batteryinfo.BatteryInfoFragment" 155 settings:keywords="@string/keywords_battery_info" 156 settings:controller="com.android.settings.deviceinfo.batteryinfo.BatteryInfoPreferenceController"/> 157 </PreferenceCategory> 158 159 <PreferenceCategory 160 android:title="@string/my_device_info_device_identifiers_category_title"> 161 162 <!--IP address --> 163 <Preference 164 android:key="wifi_ip_address" 165 android:order="44" 166 android:title="@string/wifi_ip_address" 167 android:summary="@string/summary_placeholder" 168 android:selectable="false" 169 settings:enableCopying="true"/> 170 171 <!-- Wi-Fi MAC address --> 172 <Preference 173 android:key="saved_accesspoints_wifi_mac_address" 174 android:order="45" 175 android:title="@string/status_wifi_mac_address" 176 android:summary="@string/view_saved_network" 177 android:fragment="com.android.settings.wifi.savedaccesspoints2.SavedAccessPointsWifiSettings2" 178 settings:enableCopying="false"/> 179 180 <!-- Factory Wi-Fi MAC address --> 181 <Preference 182 android:key="wifi_mac_address" 183 android:order="46" 184 android:title="@string/status_device_wifi_mac_address" 185 android:summary="@string/summary_placeholder" 186 android:selectable="false" 187 settings:enableCopying="true"/> 188 189 <!-- Bluetooth address --> 190 <Preference 191 android:key="bt_address" 192 android:order="47" 193 android:title="@string/status_bt_address" 194 android:summary="@string/summary_placeholder" 195 android:selectable="false" 196 settings:enableCopying="true"/> 197 198 <!-- Device up time --> 199 <Preference 200 android:key="up_time" 201 android:order="48" 202 android:title="@string/status_up_time" 203 android:summary="@string/summary_placeholder" 204 android:selectable="false"/> 205 206 <!-- Manual --> 207 <Preference 208 android:key="manual" 209 android:order="50" 210 android:title="@string/manual"> 211 <intent android:action="android.settings.SHOW_MANUAL" 212 android:targetPackage="${applicationId}"/> 213 </Preference> 214 215 <!-- Feedback on the device --> 216 <Preference 217 android:key="device_feedback" 218 android:order="51" 219 android:title="@string/device_feedback" 220 settings:keywords="@string/keywords_device_feedback"/> 221 222 <!-- Device FCC equipment id --> 223 <Preference 224 android:key="fcc_equipment_id" 225 android:order="52" 226 android:title="@string/fcc_equipment_id" 227 android:summary="@string/summary_placeholder"/> 228 229 <!-- Build number --> 230 <Preference 231 android:key="build_number" 232 android:order="53" 233 android:title="@string/build_number" 234 android:summary="@string/summary_placeholder" 235 settings:enableCopying="true" 236 settings:controller="com.android.settings.deviceinfo.BuildNumberPreferenceController"/> 237 </PreferenceCategory> 238 239</PreferenceScreen> 240