# Copyright (c) 2022-2023 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. domain: BUNDLE_MANAGER ################################################################################ # FAULT EVENT # ################################################################################ BUNDLE_INSTALL_EXCEPTION: __BASE: {type: FAULT, level: MINOR, desc: used to fault happened when bundle install} USERID: {type: INT32, desc: userId of the bundle} BUNDLE_NAME: {type: STRING, desc: bundleName} VERSION: {type: UINT32, desc: versionCode} INSTALL_TYPE: {type: STRING, desc: normal prebundle or freeInstall} SCENE: {type: STRING, desc: boot reboot or createUser} ERROR_CODE: {type: INT32, desc: error code} BUNDLE_UNINSTALL_EXCEPTION: __BASE: {type: FAULT, level: MINOR, desc: used to fault happened when bundle uninstall} USERID: {type: INT32, desc: userId of the bundle} BUNDLE_NAME: {type: STRING, desc: bundleName} VERSION: {type: UINT32, desc: versionCode} INSTALL_TYPE: {type: STRING, desc: normal prebundle or freeInstall} ERROR_CODE: {type: INT32, desc: error code} BUNDLE_UPDATE_EXCEPTION: __BASE: {type: FAULT, level: MINOR, desc: used to fault happened when bundle update} USERID: {type: INT32, desc: userId of the bundle} BUNDLE_NAME: {type: STRING, desc: bundleName} VERSION: {type: UINT32, desc: versionCode} INSTALL_TYPE: {type: STRING, desc: normal prebundle or freeInstall} ERROR_CODE: {type: INT32, desc: error code} PRE_BUNDLE_RECOVER_EXCEPTION: __BASE: {type: FAULT, level: MINOR, desc: used to fault happened when prebundle recover} USERID: {type: INT32, desc: userId of the bundle} BUNDLE_NAME: {type: STRING, desc: bundleName} VERSION: {type: UINT32, desc: versionCode} INSTALL_TYPE: {type: STRING, desc: only prebundle} ERROR_CODE: {type: INT32, desc: error code} BUNDLE_STATE_CHANGE_EXCEPTION: __BASE: {type: FAULT, level: MINOR, desc: used to fault happened when state change} USERID: {type: INT32, desc: userId of the bundle} BUNDLE_NAME: {type: STRING, desc: bundleName} ABILITY_NAME: {type: STRING, desc: abilityName} TYPE: {type: STRING, desc: application or ability} BUNDLE_CLEAN_CACHE_EXCEPTION: __BASE: {type: FAULT, level: MINOR, desc: used to fault happened when clean cache or clean data} USERID: {type: INT32, desc: userId of the bundle} BUNDLE_NAME: {type: STRING, desc: bundleName} CLEAN_TYPE: {type: STRING, desc: clean cache or clean data} ################################################################################ # BEHAVIOR EVENT # ################################################################################ BOOT_SCAN_START: __BASE: {type: BEHAVIOR, level: MINOR, desc: boot scan start} TIME: {type: INT64, desc: time stamp} BOOT_SCAN_END: __BASE: {type: BEHAVIOR, level: MINOR, desc: boot scan end} TIME: {type: INT64, desc: time stamp} BUNDLE_INSTALL: __BASE: {type: BEHAVIOR, level: MINOR, desc: bundle install} USERID: {type: INT32, desc: userId of the bundle} BUNDLE_NAME: {type: STRING, desc: bundleName} VERSION: {type: UINT32, desc: versionCode} INSTALL_TYPE: {type: STRING, desc: normal prebundle or freeInstall} SCENE: {type: STRING, desc: boot reboot or createUser} CALLING_UID: {type: INT32, desc: calling uid} CALLING_APP_ID: {type: STRING, desc: calling appId} CALLING_BUNDLE_NAME: {type: STRING, desc: calling bundleName} FINGERPRINT: {type: STRING, desc: fingerprint of the bundle} HIDE_DESKTOP_ICON: {type: BOOL, desc: whether hide desktop icon} APP_DISTRIBUTION_TYPE: {type: STRING, desc: app distribution type} 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} BUNDLE_UNINSTALL: __BASE: {type: BEHAVIOR, level: MINOR, desc: bundle uninstall} USERID: {type: INT32, desc: userId of the bundle} BUNDLE_NAME: {type: STRING, desc: bundleName} VERSION: {type: UINT32, desc: versionCode} INSTALL_TYPE: {type: STRING, desc: normal prebundle or freeInstall} CALLING_UID: {type: INT32, desc: calling uid} CALLING_APP_ID: {type: STRING, desc: calling appId} CALLING_BUNDLE_NAME: {type: STRING, desc: calling bundleName} BUNDLE_UPDATE: __BASE: {type: BEHAVIOR, level: MINOR, desc: bundle update} USERID: {type: INT32, desc: userId of the bundle} BUNDLE_NAME: {type: STRING, desc: bundleName} VERSION: {type: UINT32, desc: versionCode} INSTALL_TYPE: {type: STRING, desc: normal prebundle or freeInstall} CALLING_UID: {type: INT32, desc: calling uid} CALLING_APP_ID: {type: STRING, desc: calling appId} CALLING_BUNDLE_NAME: {type: STRING, desc: calling bundleName} FINGERPRINT: {type: STRING, desc: fingerprint of the bundle} HIDE_DESKTOP_ICON: {type: BOOL, desc: whether hide desktop icon} APP_DISTRIBUTION_TYPE: {type: STRING, desc: app distribution type} 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} PRE_BUNDLE_RECOVER: __BASE: {type: BEHAVIOR, level: MINOR, desc: prebundle recover} USERID: {type: INT32, desc: userId of the bundle} BUNDLE_NAME: {type: STRING, desc: bundleName} VERSION: {type: UINT32, desc: versionCode} CALLING_UID: {type: INT32, desc: calling uid} CALLING_APP_ID: {type: STRING, desc: calling appId} CALLING_BUNDLE_NAME: {type: STRING, desc: calling bundleName} FINGERPRINT: {type: STRING, desc: fingerprint of the bundle} HIDE_DESKTOP_ICON: {type: BOOL, desc: whether hide desktop icon} APP_DISTRIBUTION_TYPE: {type: STRING, desc: app distribution type} 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} INSTALL_TYPE: {type: STRING, desc: only prebundle} BUNDLE_STATE_CHANGE: __BASE: {type: BEHAVIOR, level: MINOR, desc: bundle or component disable or enable} USERID: {type: INT32, desc: userId of the bundle} BUNDLE_NAME: {type: STRING, desc: bundleName} ABILITY_NAME: {type: STRING, desc: abilityName} TYPE: {type: STRING, desc: application or ability} STATE: {type: STRING, desc: isEnable} BUNDLE_CLEAN_CACHE: __BASE: {type: BEHAVIOR, level: MINOR, desc: bundle clean cache} USERID: {type: INT32, desc: userId of the bundle} BUNDLE_NAME: {type: STRING, desc: bundleName} CLEAN_TYPE: {type: STRING, desc: clean cache or clean data} GET_REMOTE_ABILITY_INFO: __BASE: {type: BEHAVIOR, level: MINOR, desc: get remote abilityInfo} DEVICE_ID: {type: STRING, desc: deviceId} BUNDLE_NAME: {type: STRING, desc: bundleName} LOCALE_INFO: {type: STRING, desc: localeInfo} ABILITY_NAME: {type: STRING, desc: abilityName} RESULT_CODE: {type: INT32, desc: result code} GET_REMOTE_ABILITY_INFOS: __BASE: {type: BEHAVIOR, level: MINOR, desc: get remote abilityInfos} DEVICE_ID: {type: STRING, desc: deviceId} BUNDLE_NAME: {type: STRING, desc: bundleName} LOCALE_INFO: {type: STRING, desc: localeInfo} ABILITY_NAME: {type: STRING, desc: abilityName} RESULT_CODE: {type: INT32, desc: result code} BMS_USER_EVENT: __BASE: {type: BEHAVIOR, level: MINOR, desc: user event} TYPE: {type: STRING, desc: user event type} USERID: {type: INT32, desc: userId of the bundle} TIME: {type: INT64, desc: time stamp} BUNDLE_QUICK_FIX: __BASE: {type: BEHAVIOR, level: MINOR, desc: bundle apply quick fix} BUNDLE_NAME: {type: STRING, desc: bundleName} APP_DISTRIBUTION_TYPE: {type: STRING, desc: app distribution type} APPLY_QUICK_FIX_FREQUENCY: {type: INT32, desc: apply quick fix frequency} FILE_PATH: {type: STRING, arrsize: 99, desc: the path of the hqf file} HASH_VALUE: {type: STRING, arrsize: 99, desc: the hash value of the hqf file}