1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 Copyright (C) 2023 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="more_security_privacy_settings" 22 android:title="@string/more_security_privacy_settings"> 23 24 <!-- work profile security section. See also: security_advanced_settings.xml and 25 privacy_advanced_settings.xml. That page also has these same entries. 26 The order is -10 to make sure it is always at the top. --> 27 <PreferenceCategory 28 android:order="-10" 29 android:key="work_profile_category" 30 android:title="@string/work_profile_category_header"> 31 32 <!-- security_settings_unification --> 33 <com.android.settingslib.RestrictedSwitchPreference 34 android:key="unification" 35 android:title="@string/lock_settings_profile_unification_title" 36 android:summary="@string/lock_settings_profile_unification_summary" 37 settings:keywords="@string/keywords_unification" /> 38 39 <com.android.settingslib.RestrictedPreference 40 android:key="unlock_set_or_change_profile" 41 android:title="@string/unlock_set_unlock_launch_picker_title_profile" 42 android:summary="@string/unlock_set_unlock_mode_pattern" 43 settings:keywords="@string/keywords_lockscreen" /> 44 45 <SwitchPreference 46 android:key="visiblepattern_profile" 47 android:title="@string/lockpattern_settings_enable_visible_pattern_title_profile" /> 48 49 <com.android.settings.RestrictedListPreference 50 android:key="privacy_lock_screen_work_profile_notifications" 51 android:title="@string/locked_work_profile_notification_title" 52 android:summary="@string/summary_placeholder" 53 settings:searchable="false"/> 54 55 <!-- Connected work and personal apps --> 56 <Preference 57 android:key="interact_across_profiles_privacy" 58 android:title="@string/interact_across_profiles_title" 59 android:fragment="com.android.settings.applications.specialaccess.interactacrossprofiles.InteractAcrossProfilesSettings" 60 settings:searchable="false" 61 settings:controller="com.android.settings.applications.specialaccess.interactacrossprofiles.InteractAcrossProfilesController" /> 62 63 </PreferenceCategory> 64 65 66 <!-- Privacy section --> 67 <!-- The order is -1 to make sure it is above all the privacy entries. Some dynamically injected entries have order 0. --> 68 <PreferenceCategory 69 android:order="-1" 70 android:key="privacy_category" 71 android:title="@string/privacy_header"> 72 <!-- Accessibility usage --> 73 <Preference 74 android:key="privacy_accessibility_usage" 75 android:title="@string/accessibility_usage_title" 76 settings:controller="com.android.settings.privacy.AccessibilityUsagePreferenceController"> 77 <intent android:action="android.intent.action.REVIEW_ACCESSIBILITY_SERVICES"/> 78 </Preference> 79 80 <!-- On lock screen notifications --> 81 <com.android.settings.RestrictedListPreference 82 android:key="privacy_lock_screen_notifications" 83 android:title="@string/lock_screen_notifs_title" 84 android:summary="@string/summary_placeholder" 85 settings:searchable="false"/> 86 87 <!-- Show media on lock screen --> 88 <SwitchPreference 89 android:key="privacy_media_controls_lockscreen" 90 android:title="@string/media_controls_lockscreen_title" 91 android:summary="@string/media_controls_lockscreen_description" 92 settings:controller= 93 "com.android.settings.sound.MediaControlsLockScreenPreferenceController" /> 94 95 <!-- Content Capture --> 96 <!-- NOTE: content capture has a different preference, depending whether or not the 97 ContentCaptureService implementations defines a custom settings activitiy on its manifest. 98 Hence, we show both here, but the controller itself will decide if it's available or not. 99 --> 100 <SwitchPreference 101 android:key="content_capture" 102 android:title="@string/content_capture" 103 android:summary="@string/content_capture_summary" 104 settings:controller="com.android.settings.privacy.EnableContentCapturePreferenceController"/> 105 106 <com.android.settingslib.PrimarySwitchPreference 107 android:key="content_capture_custom_settings" 108 android:title="@string/content_capture" 109 android:summary="@string/content_capture_summary" 110 settings:controller="com.android.settings.privacy.EnableContentCaptureWithServiceSettingsPreferenceController"/> 111 112 </PreferenceCategory> 113 114 <!-- Security section. --> 115 <!-- "security_category" is used to add trust agents by TrustAgentListPreferenceController --> 116 <PreferenceCategory 117 android:order="200" 118 android:key="security_category" 119 android:title="@string/security_header" /> 120 121 <PreferenceCategory 122 android:order="240" 123 android:key="security_settings_device_admin_category" 124 android:layout="@layout/preference_category_no_label"> 125 126 <Preference 127 android:key="manage_device_admin" 128 android:title="@string/manage_device_admin" 129 android:summary="@string/summary_placeholder" 130 android:fragment= 131 "com.android.settings.applications.specialaccess.deviceadmin.DeviceAdminSettings" 132 settings:controller= 133 "com.android.settings.enterprise.ManageDeviceAdminPreferenceController" /> 134 135 <Preference 136 android:key="enterprise_privacy" 137 android:title="@string/enterprise_privacy_settings" 138 android:summary="@string/summary_placeholder" 139 android:fragment="com.android.settings.enterprise.EnterprisePrivacySettings" 140 settings:controller="com.android.settings.enterprise.EnterprisePrivacyPreferenceController"/> 141 142 <Preference 143 android:key="financed_privacy" 144 android:title="@string/financed_privacy_settings" 145 android:summary="@string/summary_placeholder" 146 android:fragment="com.android.settings.enterprise.EnterprisePrivacySettings" 147 settings:controller="com.android.settings.enterprise.FinancedPrivacyPreferenceController"/> 148 149 <Preference 150 android:key="financed_device_info" 151 android:title="@string/financed_device_info" 152 android:summary="@string/summary_placeholder" 153 settings:controller="com.android.settings.devicelock.DeviceLockPreferenceController"> 154 <intent android:action="com.android.devicelockcontroller.action.DEVICE_INFO_SETTINGS"/> 155 </Preference> 156 </PreferenceCategory> 157 158 <Preference 159 android:order="250" 160 android:key="sim_lock_settings" 161 android:title="@string/sim_lock_settings_category" 162 settings:isPreferenceVisible="@bool/config_show_sim_info" 163 settings:controller="com.android.settings.security.SimLockPreferenceController"> 164 165 <intent 166 android:action="android.intent.action.MAIN" 167 android:targetPackage="com.android.settings" 168 android:targetClass="com.android.settings.Settings$IccLockSettingsActivity" /> 169 170 </Preference> 171 172 <Preference 173 android:order="260" 174 android:key="encryption_and_credential" 175 android:title="@string/encryption_and_credential_settings_title" 176 android:summary="@string/encryption_and_credential_settings_summary" 177 android:fragment="com.android.settings.security.EncryptionAndCredential" 178 settings:controller="com.android.settings.security.EncryptionStatusPreferenceController" /> 179 180 <Preference 181 android:order="270" 182 android:key="manage_trust_agents" 183 android:title="@string/manage_trust_agents" 184 android:summary="@string/summary_placeholder" 185 android:fragment="com.android.settings.security.trustagent.TrustAgentSettings" 186 settings:controller="com.android.settings.security.trustagent.ManageTrustAgentsPreferenceController" /> 187 188 <Preference 189 android:order="280" 190 android:key="screen_pinning_settings" 191 android:title="@string/screen_pinning_title" 192 android:summary="@string/summary_placeholder" 193 android:fragment="com.android.settings.security.ScreenPinningSettings" 194 settings:keywords="@string/keywords_app_pinning" 195 settings:controller="com.android.settings.security.ScreenPinningPreferenceController" /> 196 197 <SwitchPreference 198 android:order="290" 199 android:key="confirm_sim_deletion" 200 android:title="@string/confirm_sim_deletion_title" 201 android:summary="@string/confirm_sim_deletion_description" 202 settings:isPreferenceVisible="@bool/config_show_sim_info" 203 settings:controller="com.android.settings.security.ConfirmSimDeletionPreferenceController" /> 204 205 <Preference 206 android:order="300" 207 android:id="@+id/memtag_page" 208 android:key="memtag_page" 209 android:title="@string/memtag_title" 210 android:fragment="com.android.settings.security.MemtagPage" 211 settings:controller="com.android.settings.security.MemtagPagePreferenceController" /> 212 213 214 215</PreferenceScreen>