From f647325d5439e1902595107cdcfebb8e294ce81e Mon Sep 17 00:00:00 2001 From: small_leek Date: Thu, 11 Sep 2025 09:32:34 +0800 Subject: [PATCH] add apiversion/uid/isabccompressed to yaml Signed-off-by: small_leek --- hisysevent.yaml | 10 ++++++++++ services/bundlemgr/src/bundle_parser.cpp | 5 +++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/hisysevent.yaml b/hisysevent.yaml index 28bc93afdc..d00fb12e99 100644 --- a/hisysevent.yaml +++ b/hisysevent.yaml @@ -124,6 +124,11 @@ BUNDLE_INSTALL: HASH_VALUE: {type: STRING, arrsize: 99, desc: the hash value of the hap file} INSTALL_TIME: {type: INT64, desc: the install time or the bundle} APP_INDEX: {type: INT32, desc: app index} + MIN_API_VERSION: {type: INT32, desc: minApiVersion} + TARGET_API_VERSION: {type: INT32, desc: targetApiVersion} + COMPILE_SDK_VERSION: {type: STRING, arrsize: 99, desc: compileSdkVersion} + UID: {type: INT32, desc: uid} + IS_ABC_COMPRESSED: {type: BOOL, desc: isAbcCompressed} BUNDLE_UNINSTALL: __BASE: {type: BEHAVIOR, level: MINOR, desc: bundle uninstall} @@ -155,6 +160,11 @@ BUNDLE_UPDATE: FILE_PATH: {type: STRING, arrsize: 99, desc: the path of the hap file} HASH_VALUE: {type: STRING, arrsize: 99, desc: the hash value of the hap file} INSTALL_TIME: {type: INT64, desc: the install time or the bundle} + MIN_API_VERSION: {type: INT32, desc: minApiVersion} + TARGET_API_VERSION: {type: INT32, desc: targetApiVersion} + COMPILE_SDK_VERSION: {type: STRING, arrsize: 99, desc: compileSdkVersion} + UID: {type: INT32, desc: uid} + IS_ABC_COMPRESSED: {type: BOOL, desc: isAbcCompressed} PRE_BUNDLE_RECOVER: __BASE: {type: BEHAVIOR, level: MINOR, desc: prebundle recover} diff --git a/services/bundlemgr/src/bundle_parser.cpp b/services/bundlemgr/src/bundle_parser.cpp index 34b5a77282..19574eac68 100644 --- a/services/bundlemgr/src/bundle_parser.cpp +++ b/services/bundlemgr/src/bundle_parser.cpp @@ -112,6 +112,9 @@ ErrCode BundleParser::Parse( APP_LOGE("bundle extractor init failed"); return ERR_APPEXECFWK_PARSE_UNEXPECTED; } + + // check abc is compressed or not + bundleExtractor.IsHapCompress(isAbcCompressed); // to extract config.json std::ostringstream outStream; @@ -144,8 +147,6 @@ ErrCode BundleParser::Parse( iter->second.isStageBasedModel = info.second.isStageBasedModel; } } - - bundleExtractor.IsHapCompress(isAbcCompressed); return ERR_OK; } -- Gitee