diff --git a/zh-cn/application-dev/reference/apis/js-apis-usbManager.md b/zh-cn/application-dev/reference/apis/js-apis-usbManager.md index 4d4b694f7ded0314d274209755474931d66fa8a8..e95d7c069f99e026f7a4f09b9816641fca4a9e50 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-usbManager.md +++ b/zh-cn/application-dev/reference/apis/js-apis-usbManager.md @@ -606,6 +606,14 @@ setCurrentFunctions(funcs: FunctionType): Promise\ | ------ | ------------------------------ | ---- | ----------------- | | funcs | [FunctionType](#functiontype) | 是 | USB功能数字掩码。 | +**错误码:** + +以下错误码的详细介绍请参见[USB错误码](../errorcodes/errorcode-usb.md)。 + +| 错误码ID | 错误码信息 | +| -------- | ---------------------------------------------------- | +| 14400002 | Permission denied.The HDC is disabled by the system. | + **返回值:** | 类型 | 说明 | diff --git a/zh-cn/application-dev/reference/errorcodes/errorcode-usb.md b/zh-cn/application-dev/reference/errorcodes/errorcode-usb.md index cdd4f5e38be8927562d57490898158220d7f1f7e..3ee69e3a6a9199a8e22cd84ce2af35810af20b3a 100644 --- a/zh-cn/application-dev/reference/errorcodes/errorcode-usb.md +++ b/zh-cn/application-dev/reference/errorcodes/errorcode-usb.md @@ -20,4 +20,22 @@ Permission denied. Need call requestRight to get permission. **处理步骤** -调用requestRight方法申请设备的使用权限。 \ No newline at end of file +调用requestRight方法申请设备的使用权限。 + +## 14400002 HDC功能被禁用 + +**错误信息** + +Permission denied.The HDC is disabled by the system. + +**错误描述** + +HDC被系统禁用。 + +**可能原因** + +没有申请USB调试权限。 + +**处理步骤** + +申请USB调试权限。 \ No newline at end of file