mirror of
https://github.com/openharmony/bundlemanager_bundle_framework_lite.git
synced 2026-07-20 23:55:24 -04:00
add macro for wdg
Signed-off-by: shilei <shilei91@huawei.com> Change-Id: Ie078842fe9bd4ba658e5bfe1a512e8aaf75a6c7e
This commit is contained in:
@@ -126,11 +126,11 @@ bool GtManagerService::Install(const char *hapPath, const InstallParam *installP
|
|||||||
|
|
||||||
SetCurrentBundle(bundleInstallMsg_->bundleName);
|
SetCurrentBundle(bundleInstallMsg_->bundleName);
|
||||||
(void) ReportInstallCallback(OPERATION_DOING, 0, BMS_INSTALLATION_START, installerCallback);
|
(void) ReportInstallCallback(OPERATION_DOING, 0, BMS_INSTALLATION_START, installerCallback);
|
||||||
#ifdef _MINI_BMS_
|
#ifdef _MINI_BMS_PERMISSION_
|
||||||
DisableServiceWdg();
|
DisableServiceWdg();
|
||||||
#endif
|
#endif
|
||||||
ret = installer_->Install(path, installerCallback);
|
ret = installer_->Install(path, installerCallback);
|
||||||
#ifdef _MINI_BMS_
|
#ifdef _MINI_BMS_PERMISSION_
|
||||||
EnableServiceWdg();
|
EnableServiceWdg();
|
||||||
#endif
|
#endif
|
||||||
HILOG_INFO(HILOG_MODULE_AAFWK, "[BMS] Install ret is %d", ret);
|
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,
|
(void) ReportUninstallCallback(OPERATION_DOING, BUNDLE_UNINSTALL_DOING, innerBundleName,
|
||||||
BMS_UNINSTALLATION_START, installerCallback);
|
BMS_UNINSTALLATION_START, installerCallback);
|
||||||
#ifdef _MINI_BMS_
|
#ifdef _MINI_BMS_PERMISSION_
|
||||||
DisableServiceWdg();
|
DisableServiceWdg();
|
||||||
#endif
|
#endif
|
||||||
uint8_t ret = installer_->Uninstall(innerBundleName);
|
uint8_t ret = installer_->Uninstall(innerBundleName);
|
||||||
#ifdef _MINI_BMS_
|
#ifdef _MINI_BMS_PERMISSION_
|
||||||
EnableServiceWdg();
|
EnableServiceWdg();
|
||||||
#endif
|
#endif
|
||||||
HILOG_INFO(HILOG_MODULE_AAFWK, "[BMS] Uninstall ret is %d", ret);
|
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
|
// scan system apps and third system apps
|
||||||
#ifdef _MINI_BMS_
|
#ifdef _MINI_BMS_PERMISSION_
|
||||||
DisableServiceWdg();
|
DisableServiceWdg();
|
||||||
#endif
|
#endif
|
||||||
ScanSystemApp(uninstallRecord, &systemPathList_);
|
ScanSystemApp(uninstallRecord, &systemPathList_);
|
||||||
@@ -320,7 +320,7 @@ void GtManagerService::InstallPreBundle(List<ToBeInstalledApp *> systemPathList,
|
|||||||
|
|
||||||
// scan third apps
|
// scan third apps
|
||||||
ScanThirdApp(INSTALL_PATH, &systemPathList_);
|
ScanThirdApp(INSTALL_PATH, &systemPathList_);
|
||||||
#ifdef _MINI_BMS_
|
#ifdef _MINI_BMS_PERMISSION_
|
||||||
EnableServiceWdg();
|
EnableServiceWdg();
|
||||||
#endif
|
#endif
|
||||||
for (auto node = systemPathList.Begin(); node != systemPathList.End(); node = node->next_) {
|
for (auto node = systemPathList.Begin(); node != systemPathList.End(); node = node->next_) {
|
||||||
|
|||||||
Reference in New Issue
Block a user