From 638f7637b8abfb7f5518424a303a4ef397662782 Mon Sep 17 00:00:00 2001 From: daiyujia Date: Fri, 12 Sep 2025 11:04:36 +0800 Subject: [PATCH] =?UTF-8?q?IssueNo:#ICXO44=20Description:=E5=AE=89?= =?UTF-8?q?=E8=A3=85=E7=9B=AE=E5=BD=95=E6=B7=BB=E5=8A=A0=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E7=BB=B4=E6=B5=8B=20Sig:bundleManager=20Feature=20or=20Bugfix:?= =?UTF-8?q?Bugfix=20Binary=20Source:No?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: daiyujia Change-Id: Ia71c9db1c7195fe255bb170bcdf26a7037362079 --- services/bundlemgr/src/installd/installd_operator.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/services/bundlemgr/src/installd/installd_operator.cpp b/services/bundlemgr/src/installd/installd_operator.cpp index c14201eb54..c489719d6f 100644 --- a/services/bundlemgr/src/installd/installd_operator.cpp +++ b/services/bundlemgr/src/installd/installd_operator.cpp @@ -2487,6 +2487,10 @@ void InstalldOperator::AddDeleteDfx(const std::string &path) void InstalldOperator::RmvDeleteDfx(const std::string &path) { + if (path.find(BUNDLE_BASE_CODE_DIR)) { + LOG_D(BMS_TAG_INSTALLD, "codeDir:%{public}s not need delete", path.c_str()); + return; + } int32_t fd = open(path.c_str(), O_RDONLY); if (fd < 0) { LOG_D(BMS_TAG_INSTALLD, "open dfx path %{public}s failed", path.c_str()); -- Gitee