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: ACCESS_TOKEN
15
16ACCESSTOKEN_SERVICE_START:
17  __BASE: {type: STATISTIC, level: CRITICAL, tag: usability, desc: service startup}
18  PID: {type: INT32, desc: access token service pid}
19  HAP_SIZE: {type: UINT32, desc: hap token size}
20  NATIVE_SIZE: {type: UINT32, desc: native token size}
21  PERM_DEFINITION_SIZE: {type: UINT32, desc: permission definition size}
22
23ACCESSTOKEN_SERVICE_START_ERROR:
24  __BASE: {type: FAULT, level: CRITICAL, desc: service startup error}
25  SCENE_CODE: {type: INT32, desc: scene code}
26  ERROR_CODE: {type: INT32, desc: error code}
27  ERROR_MSG: {type: STRING, desc: error reason}
28
29PERMISSION_VERIFY_REPORT:
30  __BASE: {type: SECURITY, level: CRITICAL, desc: permission verification error}
31  CODE: {type: INT32, desc: error code}
32  CALLER_TOKENID: {type: UINT32, desc: caller token id}
33  PERMISSION_NAME: {type: STRING, desc: permission name}
34  INTERFACE: {type: STRING, desc: interface information}
35
36PERMISSION_CHECK:
37  __BASE: {type: FAULT, level: CRITICAL, desc: permission check error}
38  CODE: {type: INT32, desc: error code}
39  CALLER_TOKENID: {type: UINT32, desc: caller token id}
40  PERMISSION_NAME: {type: STRING, desc: permission name}
41  ERROR_REASON: {type: STRING, desc: error reason}
42
43PERMISSION_CHECK_EVENT:
44  __BASE: {type: BEHAVIOR, level: MINOR, desc: permission check event}
45  CODE: {type: INT32, desc: event code}
46  CALLER_TOKENID: {type: UINT32, desc: caller token id}
47  PERMISSION_NAME: {type: STRING, desc: permission name}
48  FLAG: {type: INT32, desc: permission flag}
49  PERMISSION_GRANT_TYPE: {type: INT32, desc: grant type}
50  PID_INFO: {type: INT32, desc: access token service pid}
51  REASON: {type: STRING, desc: check report reason}
52
53PERMISSION_SYNC:
54  __BASE: {type: FAULT, level: CRITICAL, tag: usability, desc: permission sync error}
55  CODE: {type: INT32, desc: error code}
56  REMOTE_ID: {type: STRING, desc: remote id}
57  REASON: {type: STRING, desc: error reason}
58
59ADD_HAP:
60  __BASE: {type: STATISTIC, level: MINOR, tag: usability, desc: add a hap to device}
61  TOKENID: {type: UINT32, desc: token id}
62  USERID: {type: INT32, desc: user id}
63  BUNDLENAME: {type: STRING, desc: bundle name}
64  INSTINDEX: {type: INT32, desc: inst index}
65
66DEL_HAP:
67  __BASE: {type: STATISTIC, level: MINOR, tag: usability, desc: delete a hap from device}
68  TOKENID: {type: UINT32, desc: tokenID}
69  USERID: {type: INT32, desc: user id}
70  BUNDLENAME: {type: STRING, desc: bundle name}
71  INSTINDEX: {type: INT32, desc: inst index}
72
73PERM_DIALOG_STATUS_INFO:
74  __BASE: {type: STATISTIC, level: MINOR, desc: status information of permission dialog}
75  USERID: {type: INT32, desc: user id}
76  PERMISSION_NAME: {type: STRING, desc: permission name}
77  TOGGLE_STATUS: {type: UINT32, desc: toggle status of permission dialog}
78
79GRANT_TEMP_PERMISSION:
80  __BASE: {type: BEHAVIOR, level: MINOR, desc: grant temp permission}
81  TOKENID: {type: UINT32, desc: tokenID}
82  BUNDLENAME: {type: STRING, desc: bundle name}
83  PERMISSION_NAME: {type: STRING, desc: permission name}
84
85REQUEST_PERMISSIONS_FROM_USER:
86  __BASE: {type: BEHAVIOR, level: MINOR, desc: request permissions from user}
87  BUNDLENAME: {type: STRING, desc: bundle name}
88  UIEXTENSION_FLAG: {type: BOOL, desc: uiextension flag}
89