• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
90UPDATE_PERMISSION:
91  __BASE: {type: BEHAVIOR, level: MINOR, desc: grant or revoke permission}
92  TOKENID: {type: UINT32, desc: tokenID}
93  PERMISSION_NAME: {type: STRING, desc: permission name}
94  PERMISSION_FLAG: {type: UINT32, desc: permission flag}
95  GRANTED_FLAG: {type: BOOL, desc: grant or revoke}
96
97UPDATE_HAP:
98  __BASE: {type: STATISTIC, level: MINOR, tag: usability, desc: update hap to device}
99  TOKENID: {type: UINT32, desc: token id}
100  USERID: {type: INT32, desc: user id}
101  BUNDLENAME: {type: STRING, desc: bundle name}
102  INSTINDEX: {type: INT32, desc: inst index}
103
104CLEAR_USER_PERMISSION_STATE:
105  __BASE: {type: BEHAVIOR, level: MINOR, desc: clear user permission state}
106  TOKENID: {type: UINT32, desc: tokenid to be cleared}
107  TOKENID_LEN: {type: UINT32, desc: amount of realated sandbox app accesstoken}
108
109SET_PERMISSION_DIALOG_CAP:
110  __BASE: {type: BEHAVIOR, level: MINOR, desc: set permission dialog capability}
111  TOKENID: {type: UINT32, desc: token id}
112  USERID: {type: INT32, desc: user id}
113  BUNDLENAME: {type: STRING, desc: bundle name}
114  INSTINDEX: {type: INT32, desc: inst index}
115  ENABLE: {type: BOOL, desc: enable or disable}
116
117REQ_PERM_FROM_USER_ERROR:
118  __BASE: {type: FAULT, level: CRITICAL, desc: failed to request permission from user}
119  ERROR_CODE: {type: INT32, desc: error code}
120  SELF_TOKENID: {type: UINT32, desc: self tokenID}
121  CONTEXT_TOKENID: {type: UINT32, desc: context tokenID}
122
123UPDATE_PERMISSION_STATUS_ERROR:
124  __BASE: {type: FAULT, level: CRITICAL, desc: failed to grant or revoke permission}
125  ERROR_CODE: {type: INT32, desc: error code}
126  TOKENID: {type: UINT32, desc: tokenID}
127  PERM: {type: STRING, desc: permission name}
128  BUNDLE_NAME: {type: STRING, desc: bundle name}
129  INT_VAL1: {type: INT32, desc: hap dlp type/return value}
130  INT_VAL2: {type: INT32, desc: permission dlp mode/update permission flag}
131  NEED_KILL: {type: BOOL, desc: need kill hap}
132
133VERIFY_ACCESS_TOKEN_EVENT:
134  __BASE: {type: STATISTIC, level: CRITICAL, desc: verify access token event}
135  EVENT_CODE: {type: INT32, desc: event code}
136  SELF_TOKENID: {type: UINT32, desc: self tokenID}
137  CONTEXT_TOKENID: {type: UINT32, desc: context tokenID}
138
139