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="privacy_dashboard_page" 22 android:title="@string/privacy_dashboard_title"> 23 24 <!-- Work Policy info --> 25 <Preference 26 android:key="work_policy_info" 27 android:title="@string/work_policy_privacy_settings" 28 android:summary="@string/work_policy_privacy_settings_summary" 29 settings:controller="com.android.settings.privacy.WorkPolicyInfoPreferenceController"/> 30 31 <!-- Connected work and personal apps --> 32 <Preference 33 android:key="interact_across_profiles_privacy" 34 android:title="@string/interact_across_profiles_title" 35 android:fragment="com.android.settings.applications.specialaccess.interactacrossprofiles.InteractAcrossProfilesSettings" 36 settings:searchable="false" 37 settings:controller="com.android.settings.applications.specialaccess.interactacrossprofiles.InteractAcrossProfilesController" /> 38 39 <!-- Accessibility usage --> 40 <Preference 41 android:key="privacy_accessibility_usage" 42 android:title="@string/accessibility_usage_title" 43 settings:controller="com.android.settings.privacy.AccessibilityUsagePreferenceController"> 44 <intent android:action="android.intent.action.REVIEW_ACCESSIBILITY_SERVICES"/> 45 </Preference> 46 47 <!-- Permissions usage --> 48 <Preference 49 android:key="privacy_permissions_usage" 50 android:title="@string/permissions_usage_title" 51 android:summary="@string/permissions_usage_summary" 52 settings:controller="com.android.settings.privacy.PrivacyHubPreferenceController"> 53 <intent android:action="android.intent.action.REVIEW_PERMISSION_USAGE"/> 54 </Preference> 55 56 <!-- App permissions --> 57 <Preference 58 android:key="privacy_manage_perms" 59 android:title="@string/app_permissions" 60 android:summary="@string/runtime_permissions_summary_control_app_access"> 61 <intent android:action="android.intent.action.MANAGE_PERMISSIONS"/> 62 </Preference> 63 64 <!-- App Data Sharing Update --> 65 <Preference 66 android:key="privacy_app_data_sharing_updates" 67 android:title="@string/app_data_sharing_updates_title" 68 android:summary="@string/app_data_sharing_updates_summary" 69 settings:controller="com.android.settings.privacy.AppDataSharingUpdatesPreferenceController"> 70 <intent android:action="android.intent.action.REVIEW_APP_DATA_SHARING_UPDATES"/> 71 </Preference> 72 73 74 <!-- Camera toggle --> 75 <com.android.settingslib.RestrictedSwitchPreference 76 android:key="privacy_camera_toggle" 77 android:title="@string/camera_toggle_title" 78 android:summary="@string/perm_toggle_description" 79 settings:controller="com.android.settings.privacy.CameraToggleController"/> 80 81 <!-- Microphone toggle --> 82 <com.android.settingslib.RestrictedSwitchPreference 83 android:key="privacy_mic_toggle" 84 android:title="@string/mic_toggle_title" 85 android:summary="@string/mic_toggle_description" 86 settings:controller="com.android.settings.privacy.MicToggleController"/> 87 88 <!-- Show passwords --> 89 <SwitchPreference 90 android:key="show_password" 91 android:title="@string/show_password" 92 android:summary="@string/show_password_summary" 93 settings:controller="com.android.settings.security.ShowPasswordPreferenceController"/> 94 95 <!-- On lock screen notifications --> 96 <com.android.settings.RestrictedListPreference 97 android:key="privacy_lock_screen_notifications" 98 android:title="@string/lock_screen_notifs_title" 99 android:summary="@string/summary_placeholder"/> 100 101 <!-- Show media on lock screen --> 102 <SwitchPreference 103 android:key="privacy_media_controls_lockscreen" 104 android:title="@string/media_controls_lockscreen_title" 105 android:summary="@string/media_controls_lockscreen_description" 106 settings:controller= 107 "com.android.settings.sound.MediaControlsLockScreenPreferenceController" /> 108 109 <!-- Privacy Service --> 110 <PreferenceCategory 111 android:key="privacy_services" 112 android:layout="@layout/preference_category_no_label"/> 113 114 <PreferenceCategory 115 android:key="dashboard_tile_placeholder"/> 116 117 <!-- Work profile settings are at the bottom with high order value to avoid users thinking that 118 any of the above settings (including dynamic) are specific to the work profile. --> 119 <PreferenceCategory 120 android:key="privacy_work_profile_notifications_category" 121 android:title="@string/profile_section_header" 122 android:order="998" 123 settings:searchable="false"> 124 125 <com.android.settings.RestrictedListPreference 126 android:key="privacy_lock_screen_work_profile_notifications" 127 android:title="@string/locked_work_profile_notification_title" 128 android:summary="@string/summary_placeholder" 129 android:order="999"/> 130 </PreferenceCategory> 131 132 <!-- Content Capture --> 133 134 <!-- NOTE: content capture has a different preference, depending whether or not the 135 ContentCaptureService implementations defines a custom settings activitiy on its manifest. 136 Hence, we show both here, but the controller itself will decide if it's available or not. 137 --> 138 139 <SwitchPreference 140 android:key="content_capture" 141 android:title="@string/content_capture" 142 android:summary="@string/content_capture_summary" 143 settings:controller="com.android.settings.privacy.EnableContentCapturePreferenceController"/> 144 145 <com.android.settingslib.PrimarySwitchPreference 146 android:key="content_capture_custom_settings" 147 android:title="@string/content_capture" 148 android:summary="@string/content_capture_summary" 149 settings:controller="com.android.settings.privacy.EnableContentCaptureWithServiceSettingsPreferenceController"/> 150 151 <!-- Clipboard access notifications --> 152 <SwitchPreference 153 android:key="show_clip_access_notification" 154 android:title="@string/show_clip_access_notification" 155 android:summary="@string/show_clip_access_notification_summary" 156 settings:controller="com.android.settings.privacy.ShowClipAccessNotificationPreferenceController"/> 157 158</PreferenceScreen> 159