Skip to content

Commit

Permalink
add setting for default value of per-app clipboard setting
Browse files Browse the repository at this point in the history
  • Loading branch information
octocorvus committed May 9, 2024
1 parent de0679e commit 731dbfb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions res/values/strings_ext.xml
Original file line number Diff line number Diff line change
Expand Up @@ -166,4 +166,7 @@ Native code debugging (ptrace) slightly weakens the app sandbox. Some apps (most
<string name="clipboard_footer">"Manage this app\'s access to clipboard content. If this is set to Blocked, the app cannot access clipboard content set by other apps."</string>
<string name="clipboard_ir_preinstalled_app">Clipboard setting is not supported for a preinstalled app</string>

<string name="clipboard_toggle_title">Block clipboard access</string>
<string name="clipboard_toggle_summary">For apps. If this setting is on, a foreground app may still access clipboard content set by itself.</string>

</resources>
7 changes: 7 additions & 0 deletions res/xml/privacy_dashboard_settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,13 @@
android:summary="@string/content_capture_summary"
settings:controller="com.android.settings.privacy.EnableContentCaptureWithServiceSettingsPreferenceController"/>

<!-- Clipboard toggle -->
<SwitchPreferenceCompat
android:key="privacy_clipboard_toggle"
android:title="@string/clipboard_toggle_title"
android:summary="@string/clipboard_toggle_summary"
settings:boolSettingField="android.ext.settings.ExtSettings DENY_CLIPBOARD_READ_BY_DEFAULT"/>

<!-- Clipboard access notifications -->
<SwitchPreferenceCompat
android:key="show_clip_access_notification"
Expand Down

0 comments on commit 731dbfb

Please sign in to comment.