usbDataAccess property

String? usbDataAccess
getter/setter pair

Controls what files and/or data can be transferred via USB.

Supported only on company-owned devices. Possible string values are:

  • "USB_DATA_ACCESS_UNSPECIFIED" : Unspecified. Defaults to ALLOW_USB_DATA_TRANSFER, unless usbFileTransferDisabled is set to true. If usbFileTransferDisabled is set to true, this is equivalent to DISALLOW_USB_FILE_TRANSFER.
  • "ALLOW_USB_DATA_TRANSFER" : All types of USB data transfers are allowed. usbFileTransferDisabled is ignored.
  • "DISALLOW_USB_FILE_TRANSFER" : Transferring files over USB is disallowed. Other types of USB data connections, such as mouse and keyboard connection, are allowed. usbFileTransferDisabled is ignored.
  • "DISALLOW_USB_DATA_TRANSFER" : When set, all types of USB data transfers are prohibited. Supported for devices running Android 12 or above with USB HAL 1.3 or above. If the setting is not supported, DISALLOW_USB_FILE_TRANSFER will be set. A nonComplianceDetail with API_LEVEL is reported if the Android version is less than 12. A nonComplianceDetail with DEVICE_INCOMPATIBLE is reported if the device does not have USB HAL 1.3 or above. usbFileTransferDisabled is ignored.

Implementation

core.String? usbDataAccess;