fix installatin timeout problem

Signed-off-by: shilei <shilei91@huawei.com>
Change-Id: I040397a56eb3fd6454c182a68f5f4ad6c5fe87fd
This commit is contained in:
shilei
2023-05-27 10:18:00 +00:00
parent d07fd606a1
commit 74894ea507
2 changed files with 9 additions and 2 deletions
@@ -145,7 +145,9 @@ bool GtBundleExtractor::ExtractResourceFile(const char *path, int32_t fp, uint32
HILOG_ERROR(HILOG_MODULE_AAFWK, "[BMS] extract file data pos failed!");
return false;
}
#ifdef _MINI_BMS_PERMISSION_
RefreshAllServiceTimeStamp();
#endif
while (index < totalFileSize) {
if (GtExtractorUtil::ExtractFileAttr(fp, &fileName, &relativeFilePath, fileSize) != ERR_OK) {
HILOG_ERROR(HILOG_MODULE_AAFWK, "[BMS] get file attr failed!");
@@ -183,6 +185,9 @@ bool GtBundleExtractor::ExtractResourceFile(const char *path, int32_t fp, uint32
uint8_t GtBundleExtractor::ExtractInstallMsg(const char *path, char **bundleName, char **label, char **smallIconPath,
char **bigIconPath)
{
#ifdef _MINI_BMS_PERMISSION_
RefreshAllServiceTimeStamp();
#endif
if (!BundleUtil::CheckRealPath(path)) {
return ERR_APPEXECFWK_INSTALL_FAILED_PARAM_ERROR;
}
@@ -398,7 +398,9 @@ BundleInfo *GtBundleParser::CreateBundleInfo(const char *path, const BundleProfi
BundleInfoUtils::FreeBundleInfo(bundleInfo);
return nullptr;
}
#ifdef _MINI_BMS_PERMISSION_
RefreshAllServiceTimeStamp();
#endif
uint8_t errorCode = ConvertResInfoToBundleInfo(path, bundleRes.abilityRes->labelId, bundleRes.abilityRes->iconId,
bundleInfo);
if (errorCode != ERR_OK) {