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