mirror of
https://github.com/openharmony/bundlemanager_bundle_framework_lite.git
synced 2026-07-20 23:55:24 -04:00
IssueNo:#I56HVU
Description:Turn off the watchdog during scanning third app Sig:appexecfwk Feature or Bugfix:Bugfix Binary Source:No Signed-off-by: wangdengjia <wangdengjia@huawei.com> Change-Id: Idfd3a09ad0d7d7f96c4e4f61a29f5a752efe23f4
This commit is contained in:
@@ -301,6 +301,7 @@ void GtManagerService::InstallPreBundle(List<ToBeInstalledApp *> systemPathList,
|
||||
}
|
||||
|
||||
// scan system apps and third system apps
|
||||
DisableServiceWdg();
|
||||
ScanSystemApp(uninstallRecord, &systemPathList_);
|
||||
if (uninstallRecord != nullptr) {
|
||||
cJSON_Delete(uninstallRecord);
|
||||
@@ -308,6 +309,7 @@ void GtManagerService::InstallPreBundle(List<ToBeInstalledApp *> systemPathList,
|
||||
|
||||
// scan third apps
|
||||
ScanThirdApp(INSTALL_PATH, &systemPathList_);
|
||||
EnableServiceWdg();
|
||||
for (auto node = systemPathList.Begin(); node != systemPathList.End(); node = node->next_) {
|
||||
ToBeInstalledApp *toBeInstalledApp = node->value_;
|
||||
if (!BundleUtil::IsFile(toBeInstalledApp->path) ||
|
||||
@@ -825,9 +827,7 @@ void GtManagerService::TransformJsToBc(const char *codePath, const char *bundleJ
|
||||
return;
|
||||
}
|
||||
|
||||
DisableServiceWdg();
|
||||
EXECRES result = walk_directory(jsPath);
|
||||
EnableServiceWdg();
|
||||
HILOG_INFO(HILOG_MODULE_AAFWK, "[BMS] transform js to bc, result is %{public}d", result);
|
||||
if (result != EXCE_ACE_JERRY_EXEC_OK) {
|
||||
result = walk_del_bytecode(jsPath);
|
||||
@@ -1000,6 +1000,7 @@ void GtManagerService::QueryPreAppInfo(const char *appDir, PreAppList *list)
|
||||
}
|
||||
char *fileName = reinterpret_cast<char *>(AdapterMalloc(MAX_NAME_LEN + 1));
|
||||
if (fileName == nullptr) {
|
||||
closedir(dir);
|
||||
return;
|
||||
}
|
||||
while ((ent = readdir(dir)) != nullptr) {
|
||||
@@ -1035,6 +1036,7 @@ void GtManagerService::QueryPreAppInfo(const char *appDir, PreAppList *list)
|
||||
AdapterFree(appPath);
|
||||
}
|
||||
AdapterFree(fileName);
|
||||
closedir(dir);
|
||||
}
|
||||
|
||||
void GtManagerService::InsertPreAppInfo(const char *filePath, PreAppList *list)
|
||||
|
||||
Reference in New Issue
Block a user