1# Copyright (c) 2022-2024 Huawei Device Co., Ltd.
2# Licensed under the Apache License, Version 2.0 (the "License");
3# you may not use this file except in compliance with the License.
4# You may obtain a copy of the License at
5#
6#     http://www.apache.org/licenses/LICENSE-2.0
7#
8# Unless required by applicable law or agreed to in writing, software
9# distributed under the License is distributed on an "AS IS" BASIS,
10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11# See the License for the specific language governing permissions and
12# limitations under the License.
13
14domain: BUNDLEMANAGER_UE
15
16################################################################################
17#                                   FAULT EVENT                                #
18################################################################################
19BUNDLE_INSTALL_EXCEPTION:
20  __BASE: {type: FAULT, level: MINOR, desc: used to fault happened when bundle install}
21  PNAMEID: {type: STRING, desc: package name}
22  PVERSIONID: {type: STRING, desc: application version}
23  USERID: {type: INT32, desc: userId of the bundle}
24  BUNDLE_NAME: {type: STRING, desc: bundleName}
25  VERSION: {type: UINT32, desc: versionCode}
26  INSTALL_TYPE: {type: STRING, desc: normal prebundle or freeInstall}
27  SCENE: {type: STRING, desc: boot reboot or createUser}
28  ERROR_CODE: {type: INT32, desc: error code}
29
30BUNDLE_UNINSTALL_EXCEPTION:
31  __BASE: {type: FAULT, level: MINOR, desc: used to fault happened when bundle uninstall}
32  PNAMEID: {type: STRING, desc: package name}
33  PVERSIONID: {type: STRING, desc: application version}
34  USERID: {type: INT32, desc: userId of the bundle}
35  BUNDLE_NAME: {type: STRING, desc: bundleName}
36  VERSION: {type: UINT32, desc: versionCode}
37  INSTALL_TYPE: {type: STRING, desc: normal prebundle or freeInstall}
38  ERROR_CODE: {type: INT32, desc: error code}
39
40BUNDLE_UPDATE_EXCEPTION:
41  __BASE: {type: FAULT, level: MINOR, desc: used to fault happened when bundle update}
42  PNAMEID: {type: STRING, desc: package name}
43  PVERSIONID: {type: STRING, desc: application version}
44  USERID: {type: INT32, desc: userId of the bundle}
45  BUNDLE_NAME: {type: STRING, desc: bundleName}
46  VERSION: {type: UINT32, desc: versionCode}
47  INSTALL_TYPE: {type: STRING, desc: normal prebundle or freeInstall}
48  ERROR_CODE: {type: INT32, desc: error code}
49
50PRE_BUNDLE_RECOVER_EXCEPTION:
51  __BASE: {type: FAULT, level: MINOR, desc: used to fault happened when prebundle recover}
52  PNAMEID: {type: STRING, desc: package name}
53  PVERSIONID: {type: STRING, desc: application version}
54  USERID: {type: INT32, desc: userId of the bundle}
55  BUNDLE_NAME: {type: STRING, desc: bundleName}
56  VERSION: {type: UINT32, desc: versionCode}
57  INSTALL_TYPE: {type: STRING, desc: only prebundle}
58  ERROR_CODE: {type: INT32, desc: error code}
59
60BUNDLE_STATE_CHANGE_EXCEPTION:
61  __BASE: {type: FAULT, level: MINOR, desc: used to fault happened when state change}
62  PNAMEID: {type: STRING, desc: package name}
63  PVERSIONID: {type: STRING, desc: application version}
64  USERID: {type: INT32, desc: userId of the bundle}
65  BUNDLE_NAME: {type: STRING, desc: bundleName}
66  ABILITY_NAME: {type: STRING, desc: abilityName}
67  TYPE: {type: STRING, desc: application or ability}
68
69BUNDLE_CLEAN_CACHE_EXCEPTION:
70  __BASE: {type: FAULT, level: MINOR, desc: used to fault happened when clean cache or clean data}
71  PNAMEID: {type: STRING, desc: package name}
72  PVERSIONID: {type: STRING, desc: application version}
73  USERID: {type: INT32, desc: userId of the bundle}
74  BUNDLE_NAME: {type: STRING, desc: bundleName}
75  CLEAN_TYPE: {type: STRING, desc: clean cache or clean data}
76
77################################################################################
78#                                 BEHAVIOR EVENT                               #
79################################################################################
80BOOT_SCAN_START:
81  __BASE: {type: BEHAVIOR, level: MINOR, desc: boot scan start}
82  PNAMEID: {type: STRING, desc: package name}
83  PVERSIONID: {type: STRING, desc: application version}
84  TIME: {type: INT64, desc: time stamp}
85
86BOOT_SCAN_END:
87  __BASE: {type: BEHAVIOR, level: MINOR, desc: boot scan end}
88  PNAMEID: {type: STRING, desc: package name}
89  PVERSIONID: {type: STRING, desc: application version}
90  TIME: {type: INT64, desc: time stamp}
91
92BUNDLE_INSTALL:
93  __BASE: {type: BEHAVIOR, level: MINOR, desc: bundle install}
94  PNAMEID: {type: STRING, desc: package name}
95  PVERSIONID: {type: STRING, desc: application version}
96  USERID: {type: INT32, desc: userId of the bundle}
97  BUNDLE_NAME: {type: STRING, desc: bundleName}
98  VERSION: {type: UINT32, desc: versionCode}
99  INSTALL_TYPE: {type: STRING, desc: normal prebundle or freeInstall}
100  SCENE: {type: STRING, desc: boot reboot or createUser}
101  CALLING_UID: {type: INT32, desc: calling uid}
102  CALLING_APP_ID: {type: STRING, desc: calling appId}
103  CALLING_BUNDLE_NAME: {type: STRING, desc: calling bundleName}
104  FINGERPRINT: {type: STRING, desc: fingerprint of the bundle}
105  HIDE_DESKTOP_ICON: {type: BOOL, desc: whether hide desktop icon}
106  APP_DISTRIBUTION_TYPE: {type: STRING, desc: app distribution type}
107  FILE_PATH: {type: STRING, arrsize: 99, desc: the path of the hap file}
108  HASH_VALUE: {type: STRING, arrsize: 99, desc: the hash value of the hap file}
109  INSTALL_TIME: {type: INT64, desc: the install time or the bundle}
110
111BUNDLE_UNINSTALL:
112  __BASE: {type: BEHAVIOR, level: MINOR, desc: bundle uninstall}
113  PNAMEID: {type: STRING, desc: package name}
114  PVERSIONID: {type: STRING, desc: application version}
115  USERID: {type: INT32, desc: userId of the bundle}
116  BUNDLE_NAME: {type: STRING, desc: bundleName}
117  VERSION: {type: UINT32, desc: versionCode}
118  INSTALL_TYPE: {type: STRING, desc: normal prebundle or freeInstall}
119  CALLING_UID: {type: INT32, desc: calling uid}
120  CALLING_APP_ID: {type: STRING, desc: calling appId}
121  CALLING_BUNDLE_NAME: {type: STRING, desc: calling bundleName}
122
123BUNDLE_UPDATE:
124  __BASE: {type: BEHAVIOR, level: MINOR, desc: bundle update}
125  PNAMEID: {type: STRING, desc: package name}
126  PVERSIONID: {type: STRING, desc: application version}
127  USERID: {type: INT32, desc: userId of the bundle}
128  BUNDLE_NAME: {type: STRING, desc: bundleName}
129  VERSION: {type: UINT32, desc: versionCode}
130  INSTALL_TYPE: {type: STRING, desc: normal prebundle or freeInstall}
131  CALLING_UID: {type: INT32, desc: calling uid}
132  CALLING_APP_ID: {type: STRING, desc: calling appId}
133  CALLING_BUNDLE_NAME: {type: STRING, desc: calling bundleName}
134  FINGERPRINT: {type: STRING, desc: fingerprint of the bundle}
135  HIDE_DESKTOP_ICON: {type: BOOL, desc: whether hide desktop icon}
136  APP_DISTRIBUTION_TYPE: {type: STRING, desc: app distribution type}
137  FILE_PATH: {type: STRING, arrsize: 99, desc: the path of the hap file}
138  HASH_VALUE: {type: STRING, arrsize: 99, desc: the hash value of the hap file}
139  INSTALL_TIME: {type: INT64, desc: the install time or the bundle}
140
141PRE_BUNDLE_RECOVER:
142  __BASE: {type: BEHAVIOR, level: MINOR, desc: prebundle recover}
143  PNAMEID: {type: STRING, desc: package name}
144  PVERSIONID: {type: STRING, desc: application version}
145  USERID: {type: INT32, desc: userId of the bundle}
146  BUNDLE_NAME: {type: STRING, desc: bundleName}
147  VERSION: {type: UINT32, desc: versionCode}
148  CALLING_UID: {type: INT32, desc: calling uid}
149  CALLING_APP_ID: {type: STRING, desc: calling appId}
150  CALLING_BUNDLE_NAME: {type: STRING, desc: calling bundleName}
151  FINGERPRINT: {type: STRING, desc: fingerprint of the bundle}
152  HIDE_DESKTOP_ICON: {type: BOOL, desc: whether hide desktop icon}
153  APP_DISTRIBUTION_TYPE: {type: STRING, desc: app distribution type}
154  FILE_PATH: {type: STRING, arrsize: 99, desc: the path of the hap file}
155  HASH_VALUE: {type: STRING, arrsize: 99, desc: the hash value of the hap file}
156  INSTALL_TIME: {type: INT64, desc: the install time or the bundle}
157  INSTALL_TYPE: {type: STRING, desc: only prebundle}
158
159BUNDLE_STATE_CHANGE:
160  __BASE: {type: BEHAVIOR, level: MINOR, desc: bundle or component disable or enable}
161  PNAMEID: {type: STRING, desc: package name}
162  PVERSIONID: {type: STRING, desc: application version}
163  USERID: {type: INT32, desc: userId of the bundle}
164  BUNDLE_NAME: {type: STRING, desc: bundleName}
165  ABILITY_NAME: {type: STRING, desc: abilityName}
166  TYPE: {type: STRING, desc: application or ability}
167  STATE: {type: STRING, desc: isEnable}
168
169BUNDLE_CLEAN_CACHE:
170  __BASE: {type: BEHAVIOR, level: MINOR, desc: bundle clean cache}
171  PNAMEID: {type: STRING, desc: package name}
172  PVERSIONID: {type: STRING, desc: application version}
173  USERID: {type: INT32, desc: userId of the bundle}
174  BUNDLE_NAME: {type: STRING, desc: bundleName}
175  CLEAN_TYPE: {type: STRING, desc: clean cache or clean data}
176
177GET_REMOTE_ABILITY_INFO:
178  __BASE: {type: BEHAVIOR, level: MINOR, desc: get remote abilityInfo}
179  PNAMEID: {type: STRING, desc: package name}
180  PVERSIONID: {type: STRING, desc: application version}
181  DEVICE_ID: {type: STRING, desc: deviceId}
182  BUNDLE_NAME: {type: STRING, desc: bundleName}
183  LOCALE_INFO: {type: STRING, desc: localeInfo}
184  ABILITY_NAME: {type: STRING, desc: abilityName}
185  RESULT_CODE: {type: INT32, desc: result code}
186
187GET_REMOTE_ABILITY_INFOS:
188  __BASE: {type: BEHAVIOR, level: MINOR, desc: get remote abilityInfos}
189  PNAMEID: {type: STRING, desc: package name}
190  PVERSIONID: {type: STRING, desc: application version}
191  DEVICE_ID: {type: STRING, desc: deviceId}
192  BUNDLE_NAME: {type: STRING, desc: bundleName}
193  LOCALE_INFO: {type: STRING, desc: localeInfo}
194  ABILITY_NAME: {type: STRING, desc: abilityName}
195  RESULT_CODE: {type: INT32, desc: result code}
196
197BMS_USER_EVENT:
198  __BASE: {type: BEHAVIOR, level: MINOR, desc: user event}
199  PNAMEID: {type: STRING, desc: package name}
200  PVERSIONID: {type: STRING, desc: application version}
201  TYPE: {type: STRING, desc: user event type}
202  USERID: {type: INT32, desc: userId of the bundle}
203  TIME: {type: INT64, desc: time stamp}
204
205BUNDLE_QUICK_FIX:
206  __BASE: {type: BEHAVIOR, level: MINOR, desc: bundle apply quick fix}
207  PNAMEID: {type: STRING, desc: package name}
208  PVERSIONID: {type: STRING, desc: application version}
209  BUNDLE_NAME: {type: STRING, desc: bundleName}
210  APP_DISTRIBUTION_TYPE: {type: STRING, desc: app distribution type}
211  APPLY_QUICK_FIX_FREQUENCY: {type: INT32, desc: apply quick fix frequency}
212  FILE_PATH: {type: STRING, arrsize: 99, desc: the path of the hqf file}
213  HASH_VALUE: {type: STRING, arrsize: 99, desc: the hash value of the hqf file}
214
215CPU_SCENE_ENTRY:
216  __BASE: {type: BEHAVIOR, level: MINOR, desc: CPU Scenario Code, preserve: true}
217  PACKAGE_NAME: {type: STRING, desc: package name}
218  SCENE_ID: {type: STRING, desc: customized application scenario id}
219  HAPPEN_TIME: {type: UINT16, desc: timestamp}
220
221AOT_COMPILE_SUMMARY:
222  __BASE: {type: BEHAVIOR, level: MINOR, desc: AOT compile summary result in OTA scene}
223  TOTAL_BUNDLE_NAMES: {type: STRING, arrsize: 99, desc: bundle names from MSDP}
224  TOTAL_SIZE: {type: UINT32, desc: compile total bundle size}
225  SUCCESS_SIZE: {type: UINT32, desc: compile success bundle size}
226  COST_TIME_SECONDS: {type: INT64, desc: total compile cost time}
227  TIME_STAMP: {type: INT64, desc: time stamp}
228
229AOT_COMPILE_RECORD:
230  __BASE: {type: BEHAVIOR, level: MINOR, desc: AOT compile record result in OTA scene}
231  BUNDLE_NAME: {type: STRING, desc: bundle name}
232  COMPILE_RESULT: {type: BOOL, desc: compile result}
233  FAILURE_REASON: {type: STRING, desc: compile bundle failure reason}
234  COST_TIME_SECONDS: {type: INT64, desc: compile cost time}
235  COMPILE_MODE: {type: STRING, desc: compile mode}
236  TIME_STAMP: {type: INT64, desc: time stamp}
237
238QUERY_OF_CONTINUE_TYPE:
239  __BASE: {type: BEHAVIOR, level: MINOR, desc: query abilityInfo by continuetype and bundleName}
240  PNAMEID: {type: STRING, desc: package name}
241  PVERSIONID: {type: STRING, desc: application version}
242  BUNDLE_NAME: {type: STRING, desc: bundleName}
243  ABILITY_NAME: {type: STRING, desc: abilityName}
244  CONTINUE_TYPE: {type: STRING, desc: continueType}
245  ERROR_CODE: {type: INT32, desc: apply quick fix frequency}
246  USERID: {type: INT32, desc: userId of the bundle}
247
248FREE_INSTALL_EVENT:
249  __BASE: {type: BEHAVIOR, level: MINOR, desc: free install event}
250  BUNDLE_NAME: {type: STRING, desc: bundle name}
251  MODULE_NAME: {type: STRING, desc: module name}
252  ABILITY_NAME: {type: STRING, desc: ability name}
253  IS_FREE_INSTALL: {type: BOOL, desc: is free install}
254  TIME_STAMP: {type: INT64, desc: time stamp}
255
256BMS_DISK_SPACE:
257  __BASE: {type: BEHAVIOR, level: MINOR, desc: description the disk space in insufficient when an applicaiton is begin installed ir uninstall}
258  FILE_NAME: {type: STRING, desc: file name}
259  FREE_SIZE: {type: INT64, desc: free size}
260  OPERATION_TYPE: {type: INT32, desc: operation type}