From 5ce2163085dd223b9a2c0f7a4b29520be7a82e74 Mon Sep 17 00:00:00 2001 From: shilei Date: Thu, 1 Dec 2022 17:13:43 +0800 Subject: [PATCH] add macro for wdg Signed-off-by: shilei Change-Id: Ie078842fe9bd4ba658e5bfe1a512e8aaf75a6c7e --- .../bundlemgr_lite/src/gt_bundle_manager_service.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/services/bundlemgr_lite/src/gt_bundle_manager_service.cpp b/services/bundlemgr_lite/src/gt_bundle_manager_service.cpp index adcb1f5..c50874e 100644 --- a/services/bundlemgr_lite/src/gt_bundle_manager_service.cpp +++ b/services/bundlemgr_lite/src/gt_bundle_manager_service.cpp @@ -126,11 +126,11 @@ bool GtManagerService::Install(const char *hapPath, const InstallParam *installP SetCurrentBundle(bundleInstallMsg_->bundleName); (void) ReportInstallCallback(OPERATION_DOING, 0, BMS_INSTALLATION_START, installerCallback); -#ifdef _MINI_BMS_ +#ifdef _MINI_BMS_PERMISSION_ DisableServiceWdg(); #endif ret = installer_->Install(path, installerCallback); -#ifdef _MINI_BMS_ +#ifdef _MINI_BMS_PERMISSION_ EnableServiceWdg(); #endif HILOG_INFO(HILOG_MODULE_AAFWK, "[BMS] Install ret is %d", ret); @@ -171,11 +171,11 @@ bool GtManagerService::Uninstall(const char *bundleName, const InstallParam *ins (void) ReportUninstallCallback(OPERATION_DOING, BUNDLE_UNINSTALL_DOING, innerBundleName, BMS_UNINSTALLATION_START, installerCallback); -#ifdef _MINI_BMS_ +#ifdef _MINI_BMS_PERMISSION_ DisableServiceWdg(); #endif uint8_t ret = installer_->Uninstall(innerBundleName); -#ifdef _MINI_BMS_ +#ifdef _MINI_BMS_PERMISSION_ EnableServiceWdg(); #endif HILOG_INFO(HILOG_MODULE_AAFWK, "[BMS] Uninstall ret is %d", ret); @@ -310,7 +310,7 @@ void GtManagerService::InstallPreBundle(List systemPathList, } // scan system apps and third system apps -#ifdef _MINI_BMS_ +#ifdef _MINI_BMS_PERMISSION_ DisableServiceWdg(); #endif ScanSystemApp(uninstallRecord, &systemPathList_); @@ -320,7 +320,7 @@ void GtManagerService::InstallPreBundle(List systemPathList, // scan third apps ScanThirdApp(INSTALL_PATH, &systemPathList_); -#ifdef _MINI_BMS_ +#ifdef _MINI_BMS_PERMISSION_ EnableServiceWdg(); #endif for (auto node = systemPathList.Begin(); node != systemPathList.End(); node = node->next_) { -- Gitee