UsbTools

object UsbTools

Provider for the USB module: ListUsbDevicesTool and GetUsbDeviceInfoTool.

Requires no permissions; the manifest declares the android.hardware.usb.host feature as optional (required="false"). Tools degrade gracefully when host mode is unavailable.

Functions

Link copied to clipboard
fun all(context: Context): List<McpTool>

All USB tools bound to context.

Link copied to clipboard

Always true; no permissions are required.

Link copied to clipboard

Empty — enumerating USB descriptors needs no runtime permissions.