1# USB Subsystem API Changelog
2
3## cl.usb_manager.1 System API Change
4
5Runtime authentication is performed for system APIs of the USB manager. An asynchronous API throws an error code via **Promise.reject**.
6
7If your application is developed based on earlier versions, modify the return values of functions. Otherwise, the original service logic will be affected.
8
9**Key API/Component Changes**
10
11| Bundle Name           | Original API                                                      | New API                                                      |
12| --------------- | ------------------------------------------------------------ | ------------------------------------------------------------ |
13| ohos.usbV9.d.ts | function setCurrentFunctions(funcs: FunctionType): Promise<boolean>; | function setCurrentFunctions(funcs: FunctionType): Promise<void>; |
14| ohos.usbV9.d.ts | function setPortRoles(portId: number, powerRole: PowerRoleType, dataRole: DataRoleType): Promise<boolean>; | function setPortRoles(portId: number, powerRole: PowerRoleType, dataRole: DataRoleType): Promise<void>; |
15
16## cl.usb_manager.2 SDK API Deletion
17
18The **@ohos.usbV9.d.ts** file was deleted in OpenHarmony 4.0.5.5.
19
20You need to import **@ohos.usbManager** to use USB service APIs.
21
22  ```ts
23  import usbManager from '@ohos.usbManager';
24  ```
25
26**Adaptation Guide**
27
28For details about usage of each API, see the [API Reference](../../../application-dev/reference/apis/js-apis-usbManager.md).
29