From 8cc730d57db7d7359ec62937ab068b582ba48a85 Mon Sep 17 00:00:00 2001 From: Benjamin Miller Date: Fri, 18 Jan 2019 19:03:40 +0000 Subject: [PATCH] docs: recommend that DISALLOW_CROSS_PROFILE_COPY_PASTE is accompanied by setScreenCaptureDisabled(). Clarified the scope of the restriction (export-only). Bug: 77204173 Test: javadoc UserManager.java and inspect generated HTML Change-Id: Iec4cf141741dfec6942decf6ef3f237d5eaa48f2 --- core/java/android/os/UserManager.java | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/core/java/android/os/UserManager.java b/core/java/android/os/UserManager.java index 0a60764428dc7..e2b5730e10f40 100644 --- a/core/java/android/os/UserManager.java +++ b/core/java/android/os/UserManager.java @@ -734,10 +734,13 @@ public class UserManager { public static final String DISALLOW_SYSTEM_ERROR_DIALOGS = "no_system_error_dialogs"; /** - * Specifies if what is copied in the clipboard of this profile can - * be pasted in related profiles. Does not restrict if the clipboard of related profiles can be - * pasted in this profile. - * The default value is false. + * Specifies if the clipboard contents can be exported by pasting the data into other users or + * profiles. This restriction doesn't prevent import, such as someone pasting clipboard data + * from other profiles or users. The default value is {@code false}. + * + *

Note: Because it's possible to extract data from screenshots using + * optical character recognition (OCR), we strongly recommend combining this user restriction + * with {@link DevicePolicyManager#setScreenCaptureDisabled(ComponentName, boolean)}. * *

Key for user restrictions. *

Type: Boolean