From dff0fbab7133808ed2e950cdbaaabaefe51a4b1e Mon Sep 17 00:00:00 2001 From: zxf Date: Mon, 18 Aug 2025 09:40:42 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=8D=B8=E8=BD=BD?= =?UTF-8?q?=E4=BA=8B=E4=BB=B6=E9=BB=98=E8=AE=A4=E5=8D=B8=E8=BD=BD=E4=B8=BB?= =?UTF-8?q?=E5=BA=94=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zxf --- services/common/src/bundle_active_core.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/common/src/bundle_active_core.cpp b/services/common/src/bundle_active_core.cpp index 0c918ec..2c51173 100644 --- a/services/common/src/bundle_active_core.cpp +++ b/services/common/src/bundle_active_core.cpp @@ -168,7 +168,7 @@ void BundleActiveCommonEventSubscriber::HandlePackageRemoveEvent(const CommonEve action.c_str(), userId, bundleName.c_str()); BundleActiveReportHandlerObject tmpHandlerObject(userId, bundleName); tmpHandlerObject.uid_ = data.GetWant().GetIntParam("uid", -1); - tmpHandlerObject.appIndex_ = data.GetWant().GetIntParam("appIndex", -1); + tmpHandlerObject.appIndex_ = data.GetWant().GetIntParam("appIndex", 0); std::shared_ptr handlerobjToPtr = std::make_shared(tmpHandlerObject); auto bundleActiveReportHandler = BundleActiveReportController::GetInstance().GetBundleReportHandler(); -- Gitee From b3792367f36cc0dee574762d5cf0e519759061f1 Mon Sep 17 00:00:00 2001 From: zxf Date: Tue, 19 Aug 2025 20:59:10 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=A0=88=E4=BF=9D=E6=8A=A4=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zxf --- BUILD.gn | 1 + 1 file changed, 1 insertion(+) diff --git a/BUILD.gn b/BUILD.gn index c7e3014..576fc0c 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -79,6 +79,7 @@ ohos_shared_library("usagestatsinner") { "interfaces/innerkits/src/bundle_active_high_frequency_period.cpp", ] public_configs = [ ":usagestats_public_config" ] + cflags_cc = [ "-fstack-protector-strong" ] deps = [ ":app_group_callback_interface", ":bundle_active_interface", -- Gitee