Skip to content

Commit 1b41673

Browse files
RovicnowYoyipopoaichuiniu
authored andcommitted
[Optimize]Add hdc start logic
To ensure that DebugRouterConnector can use hdc normally when trying to connect to the device, start hdc in advance.
1 parent 031a44b commit 1b41673

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

debug_router_connector/src/utils/hdc.validator.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ export async function getHdcInstance(hdcOption: any) {
1313
const hdcVersion = await exeCmd("hdc --version");
1414
defaultLogger.debug("You already have hdc tool installed");
1515
defaultLogger.debug("hdc tool info :" + hdcVersion);
16+
await exeCmd("hdc start");
17+
defaultLogger.debug("hdc tool start success");
1618
} catch (error) {
1719
const message = (error as Error).message;
1820
defaultLogger.debug(message);

0 commit comments

Comments
 (0)