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 <SwitchPreferenceCompat 46 android:key="visiblepattern_profile" 47 android:title="@string/lockpattern_settings_enable_visible_pattern_title_profile" 48 settings:controller="com.android.settings.security.VisiblePatternProfilePreferenceController" /> 49 50 <com.android.settings.RestrictedListPreference 51 android:key="privacy_lock_screen_work_profile_notifications" 52 android:title="@string/locked_work_profile_notification_title" 53 android:summary="@string/summary_placeholder" 54 settings:searchable="false"/> 55 56 <!-- Connected work and personal apps --> 57 <Preference 58 android:key="interact_across_profiles_privacy" 59 android:title="@string/interact_across_profiles_title" 60 android:fragment="com.android.settings.applications.specialaccess.interactacrossprofiles.InteractAcrossProfilesSettings" 61 settings:searchable="false" 62 settings:controller="com.android.settings.applications.specialaccess.interactacrossprofiles.InteractAcrossProfilesController" /> 63 64 </PreferenceCategory> 65 66 67 <!-- Privacy section --> 68 <!-- The order is -1 to make sure it is above all the privacy entries. Some dynamically injected entries have order 0. --> 69 <PreferenceCategory 70 android:order="-1" 71 android:key="privacy_category" 72 android:title="@string/privacy_header"> 73 <!-- Accessibility usage --> 74 <Preference 75 android:key="privacy_accessibility_usage" 76 android:title="@string/accessibility_usage_title" 77 settings:controller="com.android.settings.privacy.AccessibilityUsagePreferenceController"/> 78 79 <!-- On lock screen notifications --> 80 <com.android.settings.RestrictedListPreference 81 android:key="privacy_lock_screen_notifications" 82 android:title="@string/lock_screen_notifs_title" 83 android:summary="@string/summary_placeholder" 84 settings:searchable="false"/> 85 86 <Preference 87 android:key="more_security_lock_screen_notifications_page" 88 android:title="@string/lock_screen_notifs_title" 89 android:fragment="com.android.settings.notification.LockScreenNotificationsPreferencePageFragment" 90 settings:controller="com.android.settings.notification.LockScreenNotificationsPreferencePageController" /> 91 92 <!-- Show media on lock screen --> 93 <SwitchPreferenceCompat 94 android:key="privacy_media_controls_lockscreen" 95 android:title="@string/media_controls_lockscreen_title" 96 android:summary="@string/media_controls_lockscreen_description" 97 settings:controller= 98 "com.android.settings.sound.MediaControlsLockScreenPreferenceController" /> 99 100 <!-- Allow software fallback for camera extensions --> 101 <SwitchPreferenceCompat 102 android:key="privacy_camera_extensions_fallback" 103 android:title="@string/camera_extensions_fallback_title" 104 android:summary="@string/camera_extensions_fallback_description" 105 settings:controller= 106 "com.android.settings.privacy.CameraExtensionsFallbackPreferenceController" /> 107 108 <!-- Content Capture --> 109 <!-- NOTE: content capture has a different preference, depending whether or not the 110 ContentCaptureService implementations defines a custom settings activitiy on its manifest. 111 Hence, we show both here, but the controller itself will decide if it's available or not. 112 --> 113 <SwitchPreferenceCompat 114 android:key="content_capture" 115 android:title="@string/content_capture" 116 android:summary="@string/content_capture_summary" 117 settings:controller="com.android.settings.privacy.EnableContentCapturePreferenceController"/> 118 119 <com.android.settingslib.PrimarySwitchPreference 120 android:key="content_capture_custom_settings" 121 android:title="@string/content_capture" 122 android:summary="@string/content_capture_summary" 123 settings:controller="com.android.settings.privacy.EnableContentCaptureWithServiceSettingsPreferenceController"/> 124 125 <Preference 126 android:key="cellular_security_settings_privacy" 127 android:title="@string/cellular_security_title" 128 android:summary="@string/cellular_security_summary" 129 android:fragment="com.android.settings.network.telephony.CellularSecuritySettingsFragment" 130 settings:controller="com.android.settings.network.CellularSecurityPreferenceController" 131 settings:searchable="false"/> 132 </PreferenceCategory> 133 134 <!-- Security section. --> 135 <!-- "security_category" is used to add trust agents by TrustAgentListPreferenceController --> 136 <PreferenceCategory 137 android:order="200" 138 android:key="security_category" 139 android:title="@string/security_header" /> 140 141 <Preference 142 android:order="230" 143 android:key="content_protection_preference" 144 android:title="@string/content_protection_preference_title" 145 android:summary="@string/content_protection_preference_summary" 146 android:fragment="com.android.settings.security.ContentProtectionPreferenceFragment" 147 settings:keywords="@string/content_protection_preference_title" 148 settings:controller="com.android.settings.security.ContentProtectionPreferenceController" /> 149 150 <PreferenceCategory 151 android:order="240" 152 android:key="security_settings_device_admin_category" 153 android:layout="@layout/preference_category_no_label"> 154 155 <Preference 156 android:key="manage_device_admin" 157 android:title="@string/manage_device_admin" 158 android:summary="@string/summary_placeholder" 159 android:fragment= 160 "com.android.settings.applications.specialaccess.deviceadmin.DeviceAdminSettings" 161 settings:controller= 162 "com.android.settings.enterprise.ManageDeviceAdminPreferenceController" /> 163 164 <Preference 165 android:key="enterprise_privacy" 166 android:title="@string/enterprise_privacy_settings" 167 android:summary="@string/summary_placeholder" 168 android:fragment="com.android.settings.enterprise.EnterprisePrivacySettings" 169 settings:controller="com.android.settings.enterprise.EnterprisePrivacyPreferenceController"/> 170 171 <Preference 172 android:key="financed_privacy" 173 android:title="@string/financed_privacy_settings" 174 android:summary="@string/summary_placeholder" 175 android:fragment="com.android.settings.enterprise.EnterprisePrivacySettings" 176 settings:controller="com.android.settings.enterprise.FinancedPrivacyPreferenceController"/> 177 178 <Preference 179 android:key="financed_device_info" 180 android:title="@string/financed_device_info" 181 android:summary="@string/summary_placeholder" 182 settings:controller="com.android.settings.devicelock.DeviceLockPreferenceController"> 183 <intent android:action="com.android.devicelockcontroller.action.DEVICE_INFO_SETTINGS" 184 android:targetPackage="@string/config_device_lock_controller_package_name"/> 185 </Preference> 186 </PreferenceCategory> 187 188 <Preference 189 android:order="250" 190 android:key="sim_lock_settings" 191 android:title="@string/sim_lock_settings_category" 192 settings:isPreferenceVisible="@bool/config_show_sim_info" 193 settings:controller="com.android.settings.security.SimLockPreferenceController"> 194 195 <intent 196 android:action="android.intent.action.MAIN" 197 android:targetPackage="com.android.settings" 198 android:targetClass="com.android.settings.Settings$IccLockSettingsActivity" /> 199 200 </Preference> 201 202 <Preference 203 android:order="260" 204 android:key="encryption_and_credential" 205 android:title="@string/encryption_and_credential_settings_title" 206 android:summary="@string/encryption_and_credential_settings_summary" 207 android:fragment="com.android.settings.security.EncryptionAndCredential" 208 settings:controller="com.android.settings.security.EncryptionStatusPreferenceController" /> 209 210 <Preference 211 android:order="270" 212 android:key="manage_trust_agents" 213 android:title="@string/manage_trust_agents" 214 android:summary="@string/summary_placeholder" 215 android:fragment="com.android.settings.security.trustagent.TrustAgentSettings" 216 settings:controller="com.android.settings.security.trustagent.ManageTrustAgentsPreferenceController" /> 217 218 <Preference 219 android:order="280" 220 android:key="screen_pinning_settings" 221 android:title="@string/screen_pinning_title" 222 android:summary="@string/summary_placeholder" 223 android:fragment="com.android.settings.security.ScreenPinningSettings" 224 settings:keywords="@string/keywords_app_pinning" 225 settings:controller="com.android.settings.security.ScreenPinningPreferenceController" /> 226 227 <Preference 228 android:order="300" 229 android:id="@+id/memtag_page" 230 android:key="memtag_page" 231 android:title="@string/memtag_title" 232 android:fragment="com.android.settings.security.MemtagPage" 233 settings:controller="com.android.settings.security.MemtagPagePreferenceController" /> 234 235 236 237</PreferenceScreen> 238