错误信息
Permission denied. Call requestRight to get the permission first.
错误描述
当调用USB模块部分接口时,如果没有相关权限,会报此错误码。
可能原因
没有获取到设备的使用权限。
处理步骤
调用requestRight方法申请设备的使用权限。
错误信息
Permission denied. The HDC is disabled by the system.
错误描述
HDC被系统禁用。
可能原因
没有申请USB调试权限。
处理步骤
申请USB调试权限。
错误信息
Unsupported operation. The current device does not support port role switching.
错误描述
不支持的操作。当前设备不支持端口角色切换。
可能原因
不是正确的端口角色。
处理步骤
使用正确的端口角色。
错误信息
Service exception. Possible causes: No accessory is plugged in.
错误描述
服务异常。
可能原因:
没有配件插入。
处理步骤
插入配件。
错误信息
Unsupported operation. The function is not supported.
错误描述
不支持的操作。当前设备不支持该USB设备侧功能切换。
可能原因
不是正确的USB设备侧功能。
处理步骤
使用正确的USB设备侧功能。