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:searchable="false" 53 settings:controller="com.android.settings.privacy.PrivacyHubPreferenceController"> 54 <intent android:action="android.intent.action.REVIEW_PERMISSION_USAGE"/> 55 </Preference> 56 57 <!-- App permissions --> 58 <Preference 59 android:key="privacy_manage_perms" 60 android:title="@string/app_permissions" 61 android:summary="@string/runtime_permissions_summary_control_app_access" 62 settings:searchable="false"> 63 <intent android:action="android.intent.action.MANAGE_PERMISSIONS"/> 64 </Preference> 65 66 <!-- Camera toggle --> 67 <com.android.settingslib.RestrictedSwitchPreference 68 android:key="privacy_camera_toggle" 69 android:title="@string/camera_toggle_title" 70 android:summary="@string/sensor_toggle_description" 71 settings:controller="com.android.settings.privacy.CameraToggleController"/> 72 73 <!-- Microphone toggle --> 74 <com.android.settingslib.RestrictedSwitchPreference 75 android:key="privacy_mic_toggle" 76 android:title="@string/mic_toggle_title" 77 android:summary="@string/sensor_toggle_description" 78 settings:controller="com.android.settings.privacy.MicToggleController"/> 79 80 <!-- Show passwords --> 81 <SwitchPreference 82 android:key="show_password" 83 android:title="@string/show_password" 84 android:summary="@string/show_password_summary" 85 settings:controller="com.android.settings.security.ShowPasswordPreferenceController"/> 86 87 <!-- On lock screen notifications --> 88 <com.android.settings.RestrictedListPreference 89 android:key="privacy_lock_screen_notifications" 90 android:title="@string/lock_screen_notifs_title" 91 android:summary="@string/summary_placeholder" 92 settings:searchable="false"/> 93 94 <!-- Privacy Service --> 95 <PreferenceCategory 96 android:key="privacy_services" 97 android:layout="@layout/preference_category_no_label"/> 98 99 <PreferenceCategory 100 android:key="dashboard_tile_placeholder"/> 101 102 <!-- Work profile settings are at the bottom with high order value to avoid users thinking that 103 any of the above settings (including dynamic) are specific to the work profile. --> 104 <PreferenceCategory 105 android:key="privacy_work_profile_notifications_category" 106 android:title="@string/profile_section_header" 107 android:order="998" 108 settings:searchable="false"> 109 110 <com.android.settings.RestrictedListPreference 111 android:key="privacy_lock_screen_work_profile_notifications" 112 android:title="@string/locked_work_profile_notification_title" 113 android:summary="@string/summary_placeholder" 114 android:order="999" 115 settings:searchable="false"/> 116 </PreferenceCategory> 117 118 <!-- Content Capture --> 119 120 <!-- NOTE: content capture has a different preference, depending whether or not the 121 ContentCaptureService implementations defines a custom settings activitiy on its manifest. 122 Hence, we show both here, but the controller itself will decide if it's available or not. 123 --> 124 125 <SwitchPreference 126 android:key="content_capture" 127 android:title="@string/content_capture" 128 android:summary="@string/content_capture_summary" 129 settings:controller="com.android.settings.privacy.EnableContentCapturePreferenceController"/> 130 131 <com.android.settings.widget.PrimarySwitchPreference 132 android:key="content_capture_custom_settings" 133 android:title="@string/content_capture" 134 android:summary="@string/content_capture_summary" 135 settings:controller="com.android.settings.privacy.EnableContentCaptureWithServiceSettingsPreferenceController"> 136 </com.android.settings.widget.PrimarySwitchPreference> 137 138 <!-- Clipboard access notifications --> 139 <SwitchPreference 140 android:key="show_clip_access_notification" 141 android:title="@string/show_clip_access_notification" 142 android:summary="@string/show_clip_access_notification_summary" 143 settings:controller="com.android.settings.privacy.ShowClipAccessNotificationPreferenceController"/> 144 145</PreferenceScreen> 146