diff --git a/services/flashd/BUILD.gn b/services/flashd/BUILD.gn index de7eb02cafb391ae07238e07006b6024c192bd25..03118d99a244c24efa014ed9e45e2c781ed50396 100644 --- a/services/flashd/BUILD.gn +++ b/services/flashd/BUILD.gn @@ -71,6 +71,7 @@ common_sources = [ "${HDC_PATH}/common/tlv.cpp", "${HDC_PATH}/common/transfer.cpp", "${HDC_PATH}/common/usb.cpp", + "${HDC_PATH}/common/uv_status.cpp", ] config("flashd_hdc_config") { diff --git a/services/flashd/daemon/daemon.cpp b/services/flashd/daemon/daemon.cpp index 4b6f1fe9c479a06edbc3bc8be2e3cfaddf671e8f..491f0f02e253a95744d0ebbc32e60309826689ad 100644 --- a/services/flashd/daemon/daemon.cpp +++ b/services/flashd/daemon/daemon.cpp @@ -84,7 +84,8 @@ void HdcDaemon::InitMod(bool bEnableTCP, bool bEnableUSB) ((HdcDaemonUSB *)clsUSBServ)->Initial(); } - clsJdwp = new HdcJdwp(&loopMain); + LoopStatus ls(&loopMain, "not support"); + clsJdwp = new HdcJdwp(&loopMain, &ls); ((HdcJdwp *)clsJdwp)->Initial(); // enable security diff --git a/test/unittest/flashd_test/BUILD.gn b/test/unittest/flashd_test/BUILD.gn index 6fb16a940051ed37e452c73618aa440c1da430e4..e62da6444e1265e6f9d220c6f86bb6b30b5ad24c 100644 --- a/test/unittest/flashd_test/BUILD.gn +++ b/test/unittest/flashd_test/BUILD.gn @@ -43,6 +43,7 @@ ohos_unittest("flashd_unittest") { "${HDC_PATH}/common/tcp.cpp", "${HDC_PATH}/common/transfer.cpp", "${HDC_PATH}/common/usb.cpp", + "${HDC_PATH}/common/uv_status.cpp", "${HDC_PATH}/daemon/daemon_app.cpp", "${HDC_PATH}/daemon/daemon_forward.cpp", "${HDC_PATH}/daemon/daemon_tcp.cpp",