diff --git a/services/bundlemgr/src/installd/installd_operator.cpp b/services/bundlemgr/src/installd/installd_operator.cpp index c14201eb54f53b1434ffb348edc02ac64516aa71..c489719d6fc54a8d5fbdb856af51a68bc20a54ce 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());