1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  Copyright (C) 2017 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:title="@string/reset_dashboard_title">
22
23    <!-- Mobile Network reset -->
24    <com.android.settingslib.RestrictedPreference
25        android:key="network_reset_mobile_network_settings_pref"
26        android:title="@string/reset_mobile_network_settings_title"
27        settings:userRestriction="no_network_reset"
28        settings:useAdminDisabledSummary="true"
29        settings:isPreferenceVisible="@bool/config_show_sim_info"
30        android:fragment="com.android.settings.ResetNetwork" />
31
32    <!-- Bluetooth and WiFi reset -->
33    <com.android.settings.spa.preference.ComposePreference
34        android:key="network_reset_bluetooth_wifi_pref"
35        android:title="@string/reset_bluetooth_wifi_title"
36        settings:controller="com.android.settings.network.BluetoothWiFiResetPreferenceController" />
37
38    <!-- Reset app preferences -->
39    <com.android.settingslib.RestrictedPreference
40        android:key="reset_app_prefs"
41        android:title="@string/reset_app_preferences"
42        settings:userRestriction="no_control_apps" />
43
44    <!-- Erase Euicc data -->
45    <Preference
46        android:key="erase_euicc_data"
47        android:title="@string/reset_esim_title"
48        settings:isPreferenceVisible="@bool/config_show_sim_info"
49        settings:controller="com.android.settings.network.EraseEuiccDataController" />
50
51    <!-- Delete private space -->
52    <Preference
53        android:key="reset_delete_private_space"
54        android:title="@string/reset_private_space_delete_title"
55        settings:controller="com.android.settings.privatespace.delete.ResetOptionsDeletePrivateSpaceController" />
56
57    <!-- Factory reset -->
58    <com.android.settingslib.RestrictedPreference
59        android:key="factory_reset"
60        android:title="@string/main_clear_title"
61        settings:keywords="@string/keywords_factory_data_reset"
62        settings:userRestriction="no_factory_reset"
63        settings:useAdminDisabledSummary="true"
64        settings:controller="com.android.settings.system.FactoryResetPreferenceController"
65        android:fragment="com.android.settings.MainClear" />
66
67    <Preference
68        android:key="factory_reset_demo_user"
69        android:title="@string/main_clear_title"
70        settings:keywords="@string/keywords_factory_data_reset"
71        settings:controller="com.android.settings.system.FactoryResetDemoUserPreferenceController"
72        android:fragment="com.android.settings.MainClear" />
73</PreferenceScreen>
74