Skip to content
This repository has been archived by the owner on Oct 29, 2024. It is now read-only.

Commit

Permalink
fixup! add global per-user clipboard setting
Browse files Browse the repository at this point in the history
  • Loading branch information
octocorvus committed Aug 16, 2024
1 parent 31071f2 commit f41869c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion core/java/android/ext/settings/ExtSettings.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public class ExtSettings {
"persist.native_debug", defaultBool(R.bool.setting_default_allow_native_debugging));

public static final IntSetting CLIPBOARD_READ_ACCESS = new IntSetting(
Setting.Scope.PER_USER, "clipboard_read_access",
Setting.Scope.PER_USER, Settings.Secure.CLIPBOARD_READ_ACCESS,
ClipboardReadSetting.DEFAULT, ClipboardReadSetting.VALID_VALUES);

// AppCompatConfig specifies which hardening features are compatible/incompatible with a
Expand Down
3 changes: 3 additions & 0 deletions core/java/android/provider/Settings.java
Original file line number Diff line number Diff line change
Expand Up @@ -6757,6 +6757,9 @@ public static final class Secure extends NameValueTable {
/** @hide */
public static final String SCRAMBLE_SIM_PIN_LAYOUT = "scramble_sim_pin_layout";

/** @hide */
public static final String CLIPBOARD_READ_ACCESS = "clipboard_read_access";

// ExtSettings END

// NOTE: If you add new settings here, be sure to add them to
Expand Down

0 comments on commit f41869c

Please sign in to comment.