diff --git a/BUILD.gn b/BUILD.gn index d3a69afdc6df0064047172461b91f150da71e54f..a3d02320de9cf65a06ed0715694457db36e287c6 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -204,6 +204,7 @@ ohos_shared_library("usagestatservice") { "common_event_service:cesfwk_innerkits", "eventhandler:libeventhandler", "ffrt:libffrt", + "hicollie:libhicollie", "hilog:libhilog", "init:libbegetutil", "ipc:ipc_single", @@ -285,6 +286,7 @@ ohos_static_library("usagestatservice_static") { "common_event_service:cesfwk_innerkits", "eventhandler:libeventhandler", "ffrt:libffrt", + "hicollie:libhicollie", "hilog:libhilog", "init:libbegetutil", "ipc:ipc_single", diff --git a/bundle.json b/bundle.json index c1b845b8ba37061eab3de8a930376f7754a689de..83e467f68b2516d44018a09ca6330c712ace76b7 100644 --- a/bundle.json +++ b/bundle.json @@ -31,6 +31,7 @@ "ipc", "access_token", "ability_runtime", + "hicollie", "hilog", "samgr", "c_utils", diff --git a/services/common/src/bundle_active_service.cpp b/services/common/src/bundle_active_service.cpp index a865ca4c9e6bb2ca69cee7b59c4a994a39bc034f..3b3ea214a21ddd39959a9f7b06b5a410a55a892f 100644 --- a/services/common/src/bundle_active_service.cpp +++ b/services/common/src/bundle_active_service.cpp @@ -31,6 +31,7 @@ #include "bundle_active_bundle_mgr_helper.h" #include "bundle_active_shutdown_callback_service.h" #include "tokenid_kit.h" +#include "xcollie/watchdog.h" #include "bundle_active_service.h" @@ -124,6 +125,7 @@ void BundleActiveService::InitNecessaryState() void BundleActiveService::InitService() { + HiviewDFX::Watchdog::GetInstance().InitFfrtWatchdog(); if (bundleActiveCore_ == nullptr) { bundleActiveCore_ = std::make_shared(); bundleActiveCore_->Init();