UserManager.DisallowUsbFileTransfer Field
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specifies if a user is disallowed from transferring files over USB.
[Android.Runtime.Register("DISALLOW_USB_FILE_TRANSFER")]
public const string DisallowUsbFileTransfer;
[<Android.Runtime.Register("DISALLOW_USB_FILE_TRANSFER")>]
val mutable DisallowUsbFileTransfer : string
Field Value
- Attributes
Remarks
Specifies if a user is disallowed from transferring files over USB.
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 user on the device is able to use file transfer over USB because the UI for file transfer is always associated with the primary user.
Holders of the permission android.Manifest.permission#MANAGE_DEVICE_POLICY_USB_FILE_TRANSFER
can set this restriction using the DevicePolicyManager APIs mentioned below.
The default value is false
.
Key for user restrictions.
Type: Boolean
Java documentation for android.os.UserManager.DISALLOW_USB_FILE_TRANSFER
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.