diff --git a/hisysevent.yaml b/hisysevent.yaml index 28bc93afdcab94d05d02e9a29d07d1dca7504e18..d00fb12e99abcb12d376018988bdd46458acf694 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 34b5a7728297b4236e14d4f53a72f7594b69b792..19574eac68404c7d6edb852f56082a9301f54ce9 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; }