Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8cc730d5 authored by Benjamin Miller's avatar Benjamin Miller Committed by Rubin Xu
Browse files

docs: recommend that DISALLOW_CROSS_PROFILE_COPY_PASTE is accompanied by...

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
parent 82cfc42a
Loading
Loading
Loading
Loading
+7 −4
Original line number Diff line number Diff line
@@ -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 <code>false</code>.
     * 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}.
     *
     * <p><strong>Note</strong>: 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)}.
     *
     * <p>Key for user restrictions.
     * <p>Type: Boolean