diff --git a/services/bundlemgr/src/bundle_mgr_service_event_handler.cpp b/services/bundlemgr/src/bundle_mgr_service_event_handler.cpp index 58407b6b828602fee6e8502e2c2b9e159fcdc2f9..b17538db473afa71f8b8c765980076f6e5d57120 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",