diff --git a/services/bundlemgr_lite/src/gt_bundle_extractor.cpp b/services/bundlemgr_lite/src/gt_bundle_extractor.cpp index 32de443a60d93e28d4c1a9f2044cfed06ddaeb33..c83c377cad73c967c31a8c55af23ffd6bbd1ee3b 100644 --- a/services/bundlemgr_lite/src/gt_bundle_extractor.cpp +++ b/services/bundlemgr_lite/src/gt_bundle_extractor.cpp @@ -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; } diff --git a/services/bundlemgr_lite/src/gt_bundle_parser.cpp b/services/bundlemgr_lite/src/gt_bundle_parser.cpp index 91d2e09232f8875a6baf12a2e576fae491311698..6787af8122cfa6b939ac1336366a621b5c4a3da2 100644 --- a/services/bundlemgr_lite/src/gt_bundle_parser.cpp +++ b/services/bundlemgr_lite/src/gt_bundle_parser.cpp @@ -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) {