mirror of
https://github.com/openharmony/bundlemanager_bundle_framework_lite.git
synced 2026-07-18 17:54:39 -04:00
fix installatin timeout problem
Signed-off-by: shilei <shilei91@huawei.com> Change-Id: I040397a56eb3fd6454c182a68f5f4ad6c5fe87fd
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user