summaryrefslogtreecommitdiff
path: root/core/java/android
diff options
context:
space:
mode:
authorChad Brubaker <cbrubaker@google.com>2018-08-27 12:29:53 -0700
committerChad Brubaker <cbrubaker@google.com>2018-08-28 14:46:10 -0700
commit92e0291fa7e42b8bcdf6bd9e4a7299e1bf1b90dd (patch)
tree21ff23fbc787691a94ba85a724315801cc7c2b41 /core/java/android
parent342df6ddd178d55aa94e01ff94e5be00457f3440 (diff)
Allow apps to write to the clipboard without input focus
Blocking writes breaks common share UI flow in apps. Since common write abuse cases rely on modifying the contents (e.g. injecting spam links) only blocking reads still gives the intended privacy properties. Test: atest tests/tests/content/src/android/content/cts/ClipboardManagerTest.java Fixes: 112844309 Change-Id: I18fdba192fcf9c8d3fb4cbaeaea1468657e5131e
Diffstat (limited to 'core/java/android')
-rw-r--r--core/java/android/content/ClipboardManager.java6
1 files changed, 0 insertions, 6 deletions
diff --git a/core/java/android/content/ClipboardManager.java b/core/java/android/content/ClipboardManager.java
index 3fe17840488e..8760efeafd8c 100644
--- a/core/java/android/content/ClipboardManager.java
+++ b/core/java/android/content/ClipboardManager.java
@@ -95,9 +95,6 @@ public class ClipboardManager extends android.text.ClipboardManager {
* Sets the current primary clip on the clipboard. This is the clip that
* is involved in normal cut and paste operations.
*
- * <em>If the application is not the default IME or does not have input focus this will have
- * no effect.</em>
- *
* @param clip The clipped data item to set.
* @see #getPrimaryClip()
* @see #clearPrimaryClip()
@@ -115,9 +112,6 @@ public class ClipboardManager extends android.text.ClipboardManager {
/**
* Clears any current primary clip on the clipboard.
*
- * <em>If the application is not the default IME or does not have input focus this will have
- * no effect.</em>
- *
* @see #setPrimaryClip(ClipData)
*/
public void clearPrimaryClip() {