mirror of
https://github.com/openharmony/bundlemanager_bundle_framework_lite.git
synced 2026-07-18 17:54:39 -04:00
@@ -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_) {
|
||||
|
||||
Reference in New Issue
Block a user