!240 安装应用关闭看门狗

Merge pull request !240 from shilei91/master
This commit is contained in:
openharmony_ci
2022-12-01 10:51:26 +00:00
committed by Gitee
@@ -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<ToBeInstalledApp *> 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<ToBeInstalledApp *> 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_) {