diff --git a/services/bundlemgr_lite/src/gt_bundle_manager_service.cpp b/services/bundlemgr_lite/src/gt_bundle_manager_service.cpp index 5b646f859d7e853571e9ad692ebf9f9b381e0647..92875db414e5f0e3cee5251244fb181d57621a96 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_) {