From dd2f8d69a1157a774b2c779554e2449b55af2c20 Mon Sep 17 00:00:00 2001 From: "Pietro F. Maggi" Date: Mon, 7 Nov 2022 17:54:27 +0100 Subject: [PATCH] docs: Explanation on "profile owner on the primary user" staging: https://android.devsite.corp.google.com/reference/android/os/UserManager?db=pmaggi#DISALLOW_USB_FILE_TRANSFER Bug: 224648697 Test: documentation fix Change-Id: Ie3efcc71542753fc5e2a3d023e31b361ae2b4a83 --- core/java/android/os/UserManager.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/core/java/android/os/UserManager.java b/core/java/android/os/UserManager.java index 0ffdfc6cbcb18..6e2f15948202e 100644 --- a/core/java/android/os/UserManager.java +++ b/core/java/android/os/UserManager.java @@ -595,8 +595,11 @@ public class UserManager { /** * Specifies if a user is disallowed from transferring files over USB. * - *

This restriction can only be set by a device owner, a profile owner on the primary - * user or a profile owner of an organization-owned managed profile on the parent profile. + *

This restriction can only be set by a + * device owner or a + * profile owner on the primary user's profile or a profile owner of an organization-owned + * + * managed profile on the parent profile. * When it is set by a device owner, it applies globally. When it is set by a profile owner * on the primary user or by a profile owner of an organization-owned managed profile on * the parent profile, it disables the primary user from transferring files over USB. No other