From 944d879cbd6d15da91be659671fa80f9db8918a8 Mon Sep 17 00:00:00 2001 From: daiyujia Date: Sat, 23 Aug 2025 18:02:20 +0800 Subject: [PATCH] =?UTF-8?q?IssueNo:#ICUE2C=20Description:=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E9=A2=84=E7=BD=AE=E4=B8=89=E6=96=B9=E5=BA=94=E7=94=A8?= =?UTF-8?q?OTA=E9=94=99=E8=AF=AF=E5=AE=89=E8=A3=85=20Sig:bundleManager=20F?= =?UTF-8?q?eature=20or=20Bugfix: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: I594f30175a1307505a98055e3765b8458e9146f7 --- services/bundlemgr/src/bundle_mgr_service_event_handler.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/services/bundlemgr/src/bundle_mgr_service_event_handler.cpp b/services/bundlemgr/src/bundle_mgr_service_event_handler.cpp index 58407b6b82..b17538db47 100644 --- a/services/bundlemgr/src/bundle_mgr_service_event_handler.cpp +++ b/services/bundlemgr/src/bundle_mgr_service_event_handler.cpp @@ -2163,6 +2163,12 @@ void BMSEventHandler::InnerProcessRebootBundleInstall( bundleName.c_str()); continue; } + if (!hasBundleInstalled && scanPathIter.find(ServiceConstants::PRELOAD_APP_DIR) == 0 && + dataMgr->GetAllUser().size() > USER_ID_SIZE) { + LOG_NOFUNC_W(BMS_TAG_DEFAULT, "app(%{public}s) is new preload app and do not need OTA install", + bundleName.c_str()); + continue; + } std::vector currentBundleUserIds; if (HotPatchAppProcessing(bundleName, hasInstalledInfo.versionCode, hapVersionCode, currentBundleUserIds)) { LOG_I(BMS_TAG_DEFAULT, "OTA Install prefab bundle(%{public}s) by path(%{public}s) for hotPatch upgrade", -- Gitee