diff --git a/capi_parser/package.json b/capi_parser/package.json new file mode 100644 index 0000000000000000000000000000000000000000..b9fb5d735ca6d144ad8ba1218625935dfa81f731 --- /dev/null +++ b/capi_parser/package.json @@ -0,0 +1,14 @@ +{ + "name": "capi_parser", + "version": "1.0.0", + "description": "", + "main": "main.py", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "author": "", + "license": "ISC", + "dependencies": { + "comment-parser": "^1.4.1" + } +} diff --git a/capi_parser/src/coreImpl/check/check_doc.py b/capi_parser/src/coreImpl/check/check_doc.py new file mode 100644 index 0000000000000000000000000000000000000000..73debb42565362a1731a58e530312eff40a79802 --- /dev/null +++ b/capi_parser/src/coreImpl/check/check_doc.py @@ -0,0 +1,338 @@ +#!/usr/bin/env python +# coding=utf-8 +############################################## +# Copyright (c) 2021-2022 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. +############################################## +import json +import re +import subprocess +from clang.cindex import CursorKind +from typedef.check.check import ApiResultInfo, DocInfo, ErrorType, ErrorMessage, FileDocInfo, LogType, TAGS + +permission_tag_rules = ['ohos.permission.HEALTH_DATA', 'ohos.permission.HEART_RATE', 'ohos.permission.ACCELERATION'] +with open('./src/coreImpl/check/rules/perssion_rule.json') as json_file: + permission_file_content = json.load(json_file) + permission_tag_rules.extend([item['name'] for item in permission_file_content['module']['definePermissions']]) +syscap_tag_rules: list[str] = [] +with open('./src/coreImpl/check/rules/syscap_rule.json') as json_file: + syscap_tag_rules = json.load(json_file) + + +def create_api_result_info_by_doc(error_type: ErrorType, error: ErrorMessage, params: list[str], api_info): + error_info = str(error.value) + for param in params: + error_info = error_info.replace('$$', str(param), 1) + api_result_info = ApiResultInfo(error_type.value, error_info, api_info['name']) + api_result_info.set_type(LogType.LOG_JSDOC.value) + api_result_info.set_location(api_info['location']['location_path']) + api_result_info.set_location_line(api_info['location']['location_line']) + api_result_info.set_location_column(api_info['location']['location_column']) + return api_result_info + + +def create_api_result_info_by_file(error_type: ErrorType, error: ErrorMessage, params: list[str], file_info): + error_info = str(error.value) + for param in params: + error_info = error_info.replace('$$', str(param), 1) + api_result_info = ApiResultInfo(error_type.value, error_info, file_info['name']) + api_result_info.set_type(LogType.LOG_FILE.value) + return api_result_info + + +def process_tag_addtogroup(tag_info, file_doc_info: FileDocInfo, api_info) -> list[ApiResultInfo]: + api_result_infos = [] + group_name = tag_info['name'] + if group_name == "": + api_result_info = create_api_result_info_by_doc( + ErrorType.EMPTY_TAG, ErrorMessage.EMPTY_TAG, [tag_info['tag']], api_info) + api_result_infos.append(api_result_info) + return api_result_infos + + +def process_tag_brief(tag_info, file_doc_info: FileDocInfo, api_info) -> list[ApiResultInfo]: + doc_info = file_doc_info.curr_doc_info + api_result_infos = [] + brief = tag_info['name'] + tag_info['description'] + doc_info.brief = brief + return api_result_infos + + +def process_tag_deprecated(tag_info, file_doc_info: FileDocInfo, api_info) -> list[ApiResultInfo]: + doc_info = file_doc_info.curr_doc_info + api_result_infos = [] + name = tag_info['name'] + version: str = tag_info['description'] + if name != "since" or not version.isdigit(): + api_result_info = create_api_result_info_by_doc( + ErrorType.UNKNOW_DEPRECATED, ErrorMessage.ERROR_INFO_VALUE_TAG, [tag_info['tag']], api_info) + api_result_infos.append(api_result_info) + doc_info.deprecated = version + return api_result_infos + + +def process_tag_file(tag_info, file_doc_info: FileDocInfo, api_info) -> list[ApiResultInfo]: + doc_info = file_doc_info.curr_doc_info + api_result_infos = [] + file_name = tag_info['name'] + if file_name == "": + api_result_info = create_api_result_info_by_doc( + ErrorType.EMPTY_TAG, ErrorMessage.EMPTY_TAG, [tag_info['tag']], api_info) + api_result_infos.append(api_result_info) + doc_info.file = file_name + return api_result_infos + + +def process_tag_library(tag_info, file_doc_info: FileDocInfo, api_info) -> list[ApiResultInfo]: + api_result_infos = [] + library: str = tag_info['name'] + tag_info['description'] + if not library.endswith(('.so', '.a')) and library != "NA": + api_result_info = create_api_result_info_by_doc( + ErrorType.WRONG_VALUE, ErrorMessage.ERROR_INFO_VALUE_LIBRARY, [], api_info) + api_result_infos.append(api_result_info) + return api_result_infos + + +def process_tag_param(tag_info, file_doc_info: FileDocInfo, api_info) -> list[ApiResultInfo]: + api_result_infos = [] + if api_info['kind'] != CursorKind.FUNCTION_DECL.name: + return api_result_infos + index = file_doc_info.curr_doc_info.param_index + param = api_info['parm'][index] + if tag_info['name'] != param['name']: + api_result_info = create_api_result_info_by_doc( + ErrorType.WRONG_VALUE, ErrorMessage.ERROR_INFO_VALUE_PARAM, [index + 1, index + 1], api_info) + api_result_infos.append(api_result_info) + + return api_result_infos + + +def process_tag_permission(tag_info, file_doc_info: FileDocInfo, api_info) -> list[ApiResultInfo]: + doc_info = file_doc_info.curr_doc_info + api_result_infos = [] + permission: str = tag_info['name'] + ' ' + tag_info['description'] + permission_blank = re.sub(re.compile(r'\(|\)'), '', permission) + permission_join = re.sub(re.compile(r'( or | and )'), '$', permission_blank) + permission_list = permission_join.split('$') + error_permission_list = list(filter(lambda item: permission_tag_rules.index(item) == -1, permission_list)) + if error_permission_list: + api_result_info = create_api_result_info_by_doc( + ErrorType.WRONG_VALUE, ErrorMessage.ERROR_INFO_VALUE_PERMISSION, [], api_info) + api_result_infos.append(api_result_info) + doc_info.permission = permission + return api_result_infos + + +def process_tag_return(tag_info, file_doc_info: FileDocInfo, api_info) -> list[ApiResultInfo]: + api_result_infos = [] + return api_result_infos + + +def process_tag_since(tag_info, file_doc_info: FileDocInfo, api_info) -> list[ApiResultInfo]: + doc_info = file_doc_info.curr_doc_info + api_result_infos = [] + value: str = tag_info['name'] + tag_info['description'] + if value == "": + api_result_info = create_api_result_info_by_doc( + ErrorType.EMPTY_TAG, ErrorMessage.EMPTY_TAG, [tag_info['tag']], api_info) + api_result_infos.append(api_result_info) + if not value.isdigit(): + api_result_info = create_api_result_info_by_doc( + ErrorType.WRONG_VALUE, ErrorMessage.ERROR_INFO_VALUE_SINCE, [], api_info) + api_result_infos.append(api_result_info) + doc_info.since = tag_info['name'] + return api_result_infos + + +def process_tag_syscap(tag_info, file_doc_info: FileDocInfo, api_info) -> list[ApiResultInfo]: + doc_info = file_doc_info.curr_doc_info + api_result_infos = [] + syscap = tag_info['name'] + tag_info['description'] + if syscap == "": + api_result_info = create_api_result_info_by_doc( + ErrorType.EMPTY_TAG, ErrorMessage.EMPTY_TAG, [tag_info['tag']], api_info) + api_result_infos.append(api_result_info) + if syscap_tag_rules.index(syscap) == -1: + api_result_info = create_api_result_info_by_doc( + ErrorType.WRONG_VALUE, ErrorMessage.ERROR_INFO_VALUE_SYSCAP, [], api_info) + api_result_infos.append(api_result_info) + doc_info.syscap = syscap + return api_result_infos + + +def process_tag_left_brace(tag_info, file_doc_info: FileDocInfo, api_info) -> list[ApiResultInfo]: + api_result_infos = [] + if not file_doc_info.is_in_group_tag: + api_result_info = create_api_result_info_by_doc( + ErrorType.WRONG_SCENE, ErrorMessage.ERROR_USE_LEFT_BRACE, [], api_info) + api_result_infos.append(api_result_info) + return api_result_infos + + +def process_tag_right_brace(tag_info, file_doc_info: FileDocInfo, api_info) -> list[ApiResultInfo]: + api_result_infos = [] + if not file_doc_info.has_group_end: + file_doc_info.has_group_end = True + return api_result_infos + api_result_info = create_api_result_info_by_doc( + ErrorType.WRONG_SCENE, ErrorMessage.ERROR_USE_RIGHT_BRACE, [], api_info) + api_result_infos.append(api_result_info) + return api_result_infos + + +process_tag_function = { + TAGS['ADD_TO_GROUP'].value: process_tag_addtogroup, + TAGS['BRIEF'].value: process_tag_brief, + TAGS['DEPRECATED'].value: process_tag_deprecated, + TAGS['FILE'].value: process_tag_file, + TAGS['LIBRARY'].value: process_tag_library, + TAGS['PARAM'].value: process_tag_param, + TAGS['PERMISSION'].value: process_tag_permission, + TAGS['RETURN'].value: process_tag_return, + TAGS['SINCE'].value: process_tag_since, + TAGS['SYSCAP'].value: process_tag_syscap, + TAGS['LEFT_BRACE'].value: process_tag_left_brace, + TAGS['RIGHT_BRACE'].value: process_tag_right_brace, +} + + +def process_each_tags(tag_info, file_doc_info: FileDocInfo, api_info) -> list[ApiResultInfo]: + ''' + 处理解析出来的每个tag标签 + ''' + doc_info = file_doc_info.curr_doc_info + tag = tag_info['tag'] + if tag not in process_tag_function.keys(): + return [] + tag_process = process_tag_function[tag] + if tag == TAGS['PARAM'].value: + doc_info.param_index += 1 + api_result_infos = tag_process( + tag_info, file_doc_info, api_info) + return api_result_infos + + +def process_file_doc_group(file_doc_info: FileDocInfo, item, api_info) -> list[ApiResultInfo]: + ''' + 处理每个文件中头文件中的addtogroup + ''' + api_result_infos = [] + if item['tag'] == 'addtogroup': + if file_doc_info.group_name is None: + file_doc_info.group_name = item['name'] + file_doc_info.is_in_group_tag = True + else: + api_result_info = create_api_result_info_by_doc( + ErrorType.WRONG_SCENE, ErrorMessage.REPEAT_FILE_TAG, [item['tag']], api_info) + api_result_infos.append(api_result_info) + if item['tag'] == '{': + if not file_doc_info.has_group_start: + file_doc_info.has_group_start = True + else: + api_result_info = create_api_result_info_by_doc( + ErrorType.WRONG_SCENE, ErrorMessage.ERROR_REPEAT_LEFT_BRACE, [item['tag']], api_info) + api_result_infos.append(api_result_info) + + return api_result_infos + + +def process_file_doc_file(file_doc_info: FileDocInfo, item, api_info) -> list[ApiResultInfo]: + ''' + 处理每个文件中头文件中的file + ''' + api_result_infos = [] + if item['tag'] == 'file': + if file_doc_info.file_name is None: + file_doc_info.file_name = item['name'] + file_doc_info.is_in_file_tag = True + else: + api_result_info = create_api_result_info_by_doc( + ErrorType.WRONG_SCENE, ErrorMessage.REPEAT_FILE_TAG, [item['tag']], api_info) + api_result_infos.append(api_result_info) + elif item['tag'] == 'brief': + file_doc_info.file_brief = item['name'] + item['description'] + elif item['tag'] == 'library': + file_doc_info.file_library = item['name'] + item['description'] + elif item['tag'] == 'syscap': + file_doc_info.file_syscap = item['name'] + item['description'] + return api_result_infos + + +def process_comment(comment: str, file_doc_info: FileDocInfo, api_info) -> list[ApiResultInfo]: + ''' + 处理comment数据,通过node调用comment-parser解析doc注释 + ''' + api_result_infos = [] + result = subprocess.check_output(['node', './src/coreImpl/check/comment_parser.js', comment]) # 解析comment + result_json = json.loads(result.decode('utf-8')) + tags = result_json[0]['tags'] + file_doc_info.curr_doc_info = DocInfo() # 每段doc返回的数据格式 + for item in tags: + # 处理文件组数据,一个文件只有一个,是否需要判断多个存在? + if item['tag'] == 'addtogroup' or file_doc_info.is_in_group_tag: + api_result_infos.extend(process_file_doc_group(file_doc_info, item, api_info)) + # 处理文件中file说明,一个文件只有一个,是否需要判断多个存在? + if item['tag'] == 'file' or file_doc_info.is_in_file_tag: + api_result_infos.extend(process_file_doc_file(file_doc_info, item, api_info)) + api_result_infos.extend(process_each_tags(item, file_doc_info, api_info)) + # 判断param标签的数量和方法参数的数量是否对应 + if api_info['kind'] == CursorKind.FUNCTION_DECL.name: + if len(api_info['parm']) != file_doc_info.curr_doc_info.param_index + 1: + api_result_info = create_api_result_info_by_doc( + ErrorType.WRONG_SCENE, ErrorMessage.ERROR_INFO_COUNT_PARAM, [], api_info) + api_result_infos.append(api_result_info) + # 判断group标签的开头 + if file_doc_info.is_in_group_tag and not file_doc_info.has_group_start: + api_result_info = create_api_result_info_by_doc( + ErrorType.WRONG_SCENE, ErrorMessage.ERROR_FILE_HAS_ONE_LOSE_OTHER, ['group tag', 'start tag {'], api_info) + api_result_infos.append(api_result_info) + # 处理file标签的值 + if file_doc_info.is_in_file_tag: + if file_doc_info.file_brief is None: + api_result_info = create_api_result_info_by_doc( + ErrorType.WRONG_SCENE, ErrorMessage.ERROR_FILE_HAS_ONE_LOSE_OTHER, ['file tag', 'brief tag'], api_info) + api_result_infos.append(api_result_info) + if file_doc_info.file_library is None: + api_result_info = create_api_result_info_by_doc( + ErrorType.WRONG_SCENE, ErrorMessage.ERROR_FILE_HAS_ONE_LOSE_OTHER, ['file tag', 'library tag'], api_info) + api_result_infos.append(api_result_info) + if file_doc_info.file_syscap is None: + api_result_info = create_api_result_info_by_doc( + ErrorType.WRONG_SCENE, ErrorMessage.ERROR_FILE_HAS_ONE_LOSE_OTHER, ['file tag', 'syscap tag'], api_info) + api_result_infos.append(api_result_info) + + file_doc_info.is_in_group_tag = False # 初始化group标签判断 + file_doc_info.is_in_file_tag = False # 初始化file标签判断 + return api_result_infos + + +def process_file_doc_info(file_doc_info: FileDocInfo, file_info): + api_result_infos = [] + # 处理group说明 + if file_doc_info.group_name is None: + api_result_info = create_api_result_info_by_file( + ErrorType.WRONG_SCENE, ErrorMessage.ERROR_FILE_LOSE_ONE, ['group doc'], file_info) + api_result_infos.append(api_result_info) + else: + # 判断group标签的结尾 + if not file_doc_info.has_group_end: + api_result_info = create_api_result_info_by_file( + ErrorType.WRONG_SCENE, ErrorMessage.ERROR_LOSE_GROUP_END, ['group tag', 'end tag }'], file_info) + api_result_infos.append(api_result_info) + # 处理file说明 + if file_doc_info.file_name is None: + api_result_info = create_api_result_info_by_file( + ErrorType.WRONG_SCENE, ErrorMessage.ERROR_FILE_LOSE_ONE, ['file doc'], file_info) + api_result_infos.append(api_result_info) + + return api_result_infos diff --git a/capi_parser/src/coreImpl/check/comment_parser.js b/capi_parser/src/coreImpl/check/comment_parser.js new file mode 100644 index 0000000000000000000000000000000000000000..0a26c334d72ca14b0b57ab343425e7974fdc1eb6 --- /dev/null +++ b/capi_parser/src/coreImpl/check/comment_parser.js @@ -0,0 +1,31 @@ +/* + * Copyright (c) 2021-2022 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. + */ + +const { parse } = require('comment-parser'); +const SECOND_PARAM = 2; + +/** + * 解析节点的JSDoc信息,可能包含多段。 + * + * @param {string[]} jsdocText + * @returns {Array} + */ +function parseJSDocs(jsdocText) { + const result = parse(jsdocText); + return result; +} +const commentStr = process.argv[SECOND_PARAM]; +const value = parseJSDocs(commentStr); +console.log(JSON.stringify(value)); diff --git a/capi_parser/src/coreImpl/check/rules/perssion_rule.json b/capi_parser/src/coreImpl/check/rules/perssion_rule.json new file mode 100644 index 0000000000000000000000000000000000000000..86ddddeac950a971810d86068338181c2df0608f --- /dev/null +++ b/capi_parser/src/coreImpl/check/rules/perssion_rule.json @@ -0,0 +1,2587 @@ +{ + "app": { + "bundleName": "ohos.global.systemres", + "icon": "$media:ohos_app_icon", + "label": "$string:ohos_app_name", + "singleton": true, + "vendor": "ohos", + "version": { + "code": 2, + "name": "2.0.0.1" + }, + "apiVersion": { + "compatible": 3, + "target": 3 + } + }, + "deviceConfig": { + "default": { + } + }, + "module": { + "package": "ohos.global.systemres", + "generateBuildHash":true, + "deviceType": [ + "default", + "tv", + "car", + "wearable", + "tablet", + "2in1" + ], + "distro": { + "deliveryWithInstall": true, + "moduleName": "entry", + "moduleType": "entry" + }, + "definePermissions": [ + { + "name": "ohos.permission.ANSWER_CALL", + "grantMode": "user_grant", + "since": 9, + "deprecated": "", + "availableLevel": "system_basic", + "provisionEnable": true, + "distributedSceneEnable": false, + "label": "$string:ohos_lab_answer_call", + "description": "$string:ohos_desc_answer_call" + }, + { + "name": "ohos.permission.USE_BLUETOOTH", + "grantMode": "system_grant", + "availableLevel": "normal", + "since": 8, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.DISCOVER_BLUETOOTH", + "grantMode": "system_grant", + "availableLevel": "normal", + "since": 8, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.MANAGE_BLUETOOTH", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 7, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.ACCESS_BLUETOOTH", + "grantMode": "user_grant", + "availableLevel": "normal", + "since": 10, + "deprecated": "", + "provisionEnable": false, + "distributedSceneEnable": false, + "label": "$string:ohos_lab_access_bluetooth", + "description": "$string:ohos_desc_access_bluetooth" + }, + { + "name": "ohos.permission.INTERNET", + "grantMode": "system_grant", + "availableLevel": "normal", + "since": 9, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false, + "label": "$string:ohos_lab_internet", + "description": "$string:ohos_desc_internet" + }, + { + "name": "ohos.permission.MODIFY_AUDIO_SETTINGS", + "grantMode": "system_grant", + "availableLevel": "normal", + "since": 8, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false, + "label": "$string:ohos_lab_modify_audio_settings", + "description": "$string:ohos_desc_modify_audio_settings" + }, + { + "name": "ohos.permission.ACCESS_NOTIFICATION_POLICY", + "grantMode": "system_grant", + "availableLevel": "normal", + "since": 7, + "deprecated": "", + "provisionEnable": false, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.READ_CALENDAR", + "grantMode": "user_grant", + "availableLevel": "normal", + "since": 8, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false, + "label": "$string:ohos_lab_read_calendar", + "description": "$string:ohos_desc_read_calendar" + }, + { + "name": "ohos.permission.READ_CALL_LOG", + "grantMode": "user_grant", + "availableLevel": "system_basic", + "since": 8, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false, + "label": "$string:ohos_lab_read_call_log", + "description": "$string:ohos_desc_read_call_log" + }, + { + "name": "ohos.permission.READ_CELL_MESSAGES", + "grantMode": "user_grant", + "availableLevel": "system_basic", + "since": 8, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false, + "label": "$string:ohos_lab_read_cell_messages", + "description": "$string:ohos_desc_read_cell_messages" + }, + { + "name": "ohos.permission.READ_CONTACTS", + "grantMode": "user_grant", + "availableLevel": "system_basic", + "since": 8, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false, + "label": "$string:ohos_lab_read_contacts", + "description": "$string:ohos_desc_read_contacts" + }, + { + "name": "ohos.permission.GET_TELEPHONY_STATE", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 8, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false, + "label": "$string:ohos_lab_get_telephony_state", + "description": "$string:ohos_desc_get_telephony_state" + }, + { + "name": "ohos.permission.GET_PHONE_NUMBERS", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 10, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false, + "label": "$string:ohos_lab_get_phone_numbers", + "description": "$string:ohos_desc_get_phone_numbers" + }, + { + "name": "ohos.permission.READ_MESSAGES", + "grantMode": "user_grant", + "availableLevel": "system_basic", + "since": 8, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false, + "label": "$string:ohos_lab_read_messages", + "description": "$string:ohos_desc_read_messages" + }, + { + "name": "ohos.permission.RECEIVE_MMS", + "grantMode": "user_grant", + "availableLevel": "system_basic", + "since": 8, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false, + "label": "$string:ohos_lab_receive_mms", + "description": "$string:ohos_desc_receive_mms" + }, + { + "name": "ohos.permission.RECEIVE_SMS", + "grantMode": "user_grant", + "availableLevel": "system_basic", + "since": 8, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false, + "label": "$string:ohos_lab_receive_sms", + "description": "$string:ohos_desc_receive_sms" + }, + { + "name": "ohos.permission.RECEIVE_WAP_MESSAGES", + "grantMode": "user_grant", + "availableLevel": "system_basic", + "since": 8, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false, + "label": "$string:ohos_lab_receive_wap_messages", + "description": "$string:ohos_desc_receive_wap_messages" + }, + { + "name": "ohos.permission.MICROPHONE", + "grantMode": "user_grant", + "availableLevel": "normal", + "since": 8, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false, + "label": "$string:ohos_lab_microphone", + "description": "$string:ohos_desc_microphone" + }, + { + "name": "ohos.permission.SEND_MESSAGES", + "grantMode": "user_grant", + "availableLevel": "system_basic", + "since": 8, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false, + "label": "$string:ohos_lab_send_messages", + "description": "$string:ohos_desc_send_messages" + }, + { + "name": "ohos.permission.WRITE_CALENDAR", + "grantMode": "user_grant", + "availableLevel": "normal", + "since": 8, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false, + "label": "$string:ohos_lab_write_calendar", + "description": "$string:ohos_desc_write_calendar" + }, + { + "name": "ohos.permission.WRITE_CALL_LOG", + "grantMode": "user_grant", + "availableLevel": "system_basic", + "since": 8, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false, + "label": "$string:ohos_lab_write_call_log", + "description": "$string:ohos_desc_write_call_log" + }, + { + "name": "ohos.permission.WRITE_CONTACTS", + "grantMode": "user_grant", + "availableLevel": "system_basic", + "since": 8, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false, + "label": "$string:ohos_lab_write_contacts", + "description": "$string:ohos_desc_write_contacts" + }, + { + "name": "ohos.permission.DISTRIBUTED_DATASYNC", + "grantMode": "user_grant", + "availableLevel": "normal", + "since": 7, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": true, + "label": "$string:ohos_lab_distributed_datasync", + "description": "$string:ohos_desc_distributed_datasync" + }, + { + "name": "ohos.permission.DISTRIBUTED_SOFTBUS_CENTER", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 9, + "deprecated": "", + "provisionEnable": false, + "distributedSceneEnable": true + }, + { + "name": "ohos.permission.MANAGE_VOICEMAIL", + "grantMode": "user_grant", + "availableLevel": "system_basic", + "since": 8, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false, + "label": "$string:ohos_lab_manage_voicemail", + "description": "$string:ohos_desc_manage_voicemail" + }, + { + "name": "ohos.permission.REQUIRE_FORM", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 7, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.AGENT_REQUIRE_FORM", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 11, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.LOCATION_IN_BACKGROUND", + "grantMode": "user_grant", + "availableLevel": "normal", + "since": 7, + "deprecated": "", + "provisionEnable": false, + "distributedSceneEnable": false, + "label": "$string:ohos_lab_location_in_background", + "description": "$string:ohos_desc_location_in_background" + }, + { + "name": "ohos.permission.LOCATION", + "grantMode": "user_grant", + "availableLevel": "normal", + "since": 7, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": true, + "label": "$string:ohos_lab_location", + "description": "$string:ohos_desc_location" + }, + { + "name": "ohos.permission.APPROXIMATELY_LOCATION", + "grantMode": "user_grant", + "availableLevel": "normal", + "since": 9, + "deprecated": "", + "provisionEnable": false, + "distributedSceneEnable": true, + "label": "$string:ohos_lab_approximately_location", + "description": "$string:ohos_desc_approximately_location" + }, + { + "name": "ohos.permission.MEDIA_LOCATION", + "grantMode": "user_grant", + "availableLevel": "normal", + "since": 7, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": true, + "label": "$string:ohos_lab_media_location", + "description": "$string:ohos_desc_media_location" + }, + { + "name": "ohos.permission.GET_NETWORK_INFO", + "grantMode": "system_grant", + "availableLevel": "normal", + "since": 8, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false, + "label": "$string:ohos_lab_get_network_info", + "description": "$string:ohos_desc_get_network_info" + }, + { + "name": "ohos.permission.PLACE_CALL", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 8, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": true, + "label": "$string:ohos_lab_place_call", + "description": "$string:ohos_desc_place_call" + }, + { + "name": "ohos.permission.CAMERA", + "grantMode": "user_grant", + "availableLevel": "normal", + "since": 9, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false, + "label": "$string:ohos_lab_camera", + "description": "$string:ohos_desc_camera" + }, + { + "name": "ohos.permission.SET_NETWORK_INFO", + "grantMode": "system_grant", + "availableLevel": "normal", + "since": 8, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false, + "label": "$string:ohos_lab_set_network_info", + "description": "$string:ohos_desc_set_network_info" + }, + { + "name": "ohos.permission.REMOVE_CACHE_FILES", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 7, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.READ_MEDIA", + "grantMode": "user_grant", + "availableLevel": "normal", + "since": 7, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": true, + "label": "$string:ohos_lab_read_media", + "description": "$string:ohos_desc_read_media" + }, + { + "name": "ohos.permission.REBOOT", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 7, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.RUNNING_LOCK", + "grantMode": "system_grant", + "availableLevel": "normal", + "since": 7, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.WRITE_MEDIA", + "grantMode": "user_grant", + "availableLevel": "normal", + "since": 7, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": true, + "label": "$string:ohos_lab_write_media", + "description": "$string:ohos_desc_write_media" + }, + { + "name": "ohos.permission.SET_TIME", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 7, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false, + "label": "$string:ohos_lab_set_time", + "description": "$string:ohos_desc_set_time" + }, + { + "name": "ohos.permission.SET_TIME_ZONE", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 7, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false, + "label": "$string:ohos_lab_set_time_zone", + "description": "$string:ohos_desc_set_time_zone" + }, + { + "name": "ohos.permission.DOWNLOAD_SESSION_MANAGER", + "grantMode": "system_grant", + "availableLevel": "system_core", + "since": 7, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false, + "label": "$string:ohos_lab_download_session_manager", + "description": "$string:ohos_desc_download_session_manager" + }, + { + "name": "ohos.permission.COMMONEVENT_STICKY", + "grantMode": "system_grant", + "availableLevel": "normal", + "since": 7, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": true, + "label": "$string:ohos_lab_commonevent_sticky", + "description": "$string:ohos_desc_commonevent_sticky" + }, + { + "name": "ohos.permission.SYSTEM_FLOAT_WINDOW", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 7, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.PRIVACY_WINDOW", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 9, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.POWER_MANAGER", + "grantMode": "system_grant", + "availableLevel": "system_core", + "since": 7, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.REFRESH_USER_ACTION", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 7, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.POWER_OPTIMIZATION", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 7, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.REBOOT_RECOVERY", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 7, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.MANAGE_LOCAL_ACCOUNTS", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 7, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false, + "label": "$string:ohos_lab_manage_local_accounts", + "description": "$string:ohos_desc_manage_local_accounts" + }, + { + "name": "ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 7, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false, + "label": "$string:ohos_lab_interact_across_local_accounts", + "description": "$string:ohos_desc_interact_across_local_accounts" + }, + { + "name": "ohos.permission.VIBRATE", + "grantMode": "system_grant", + "availableLevel": "normal", + "since": 7, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false, + "label": "$string:ohos_lab_vibrate", + "description": "$string:ohos_desc_vibrate" + }, + { + "name": "ohos.permission.ACTIVITY_MOTION", + "grantMode": "user_grant", + "availableLevel": "normal", + "since": 7, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false, + "label": "$string:ohos_lab_activity_motion", + "description": "$string:ohos_desc_activity_motion" + }, + { + "name": "ohos.permission.READ_HEALTH_DATA", + "grantMode": "user_grant", + "availableLevel": "normal", + "since": 7, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false, + "label": "$string:ohos_lab_read_health_data", + "description": "$string:ohos_desc_read_health_data" + }, + { + "name": "ohos.permission.CONNECT_IME_ABILITY", + "grantMode": "system_grant", + "availableLevel": "system_core", + "since": 7, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false, + "label": "$string:ohos_lab_connect_ime_ability", + "description": "$string:ohos_desc_connect_ime_ability" + }, + { + "name": "ohos.permission.CONNECT_SCREEN_SAVER_ABILITY", + "grantMode": "system_grant", + "availableLevel": "system_core", + "since": 7, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.READ_SCREEN_SAVER", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 7, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.WRITE_SCREEN_SAVER", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 7, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.SET_WALLPAPER", + "grantMode": "system_grant", + "availableLevel": "normal", + "since": 7, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false, + "label": "$string:ohos_lab_set_wallpaper", + "description": "$string:ohos_desc_set_wallpaper" + }, + { + "name": "ohos.permission.GET_WALLPAPER", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "provisionEnable": true, + "since": 7, + "deprecated": "", + "distributedSceneEnable": false, + "label": "$string:ohos_lab_get_wallpaper", + "description": "$string:ohos_desc_get_wallpaper" + }, + { + "name": "ohos.permission.CHANGE_ABILITY_ENABLED_STATE", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 7, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.ACCESS_MISSIONS", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 7, + "deprecated": "since 9", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.CLEAN_BACKGROUND_PROCESSES", + "grantMode": "system_grant", + "availableLevel": "normal", + "since": 7, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.KEEP_BACKGROUND_RUNNING", + "grantMode": "system_grant", + "availableLevel": "normal", + "since": 8, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.UPDATE_CONFIGURATION", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 7, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.UPDATE_SYSTEM", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 8, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.FACTORY_RESET", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 8, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.UPDATE_MIGRATE", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 10, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.GRANT_SENSITIVE_PERMISSIONS", + "grantMode": "system_grant", + "availableLevel": "system_core", + "since": 8, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.REVOKE_SENSITIVE_PERMISSIONS", + "grantMode": "system_grant", + "availableLevel": "system_core", + "since": 8, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.GET_SENSITIVE_PERMISSIONS", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 8, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS_EXTENSION", + "grantMode": "system_grant", + "availableLevel": "system_core", + "since": 7, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false, + "label": "$string:ohos_lab_interact_across_local_accounts_extension", + "description": "$string:ohos_desc_interact_across_local_accounts_extension" + }, + { + "name": "ohos.permission.LISTEN_BUNDLE_CHANGE", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 7, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.GET_BUNDLE_INFO", + "grantMode": "system_grant", + "availableLevel": "normal", + "since": 7, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.ACCELEROMETER", + "grantMode": "system_grant", + "availableLevel": "normal", + "since": 7, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false, + "label": "$string:ohos_lab_accelerometer", + "description": "$string:ohos_desc_accelerometer" + }, + { + "name": "ohos.permission.GYROSCOPE", + "grantMode": "system_grant", + "availableLevel": "normal", + "since": 7, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false, + "label": "$string:ohos_lab_gyroscope", + "description": "$string:ohos_desc_gyroscope" + }, + { + "name": "ohos.permission.GET_BUNDLE_INFO_PRIVILEGED", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 7, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.INSTALL_BUNDLE", + "grantMode": "system_grant", + "availableLevel": "system_core", + "since": 7, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.MANAGE_SHORTCUTS", + "grantMode": "system_grant", + "availableLevel": "system_core", + "since": 7, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.radio.ACCESS_FM_AM", + "grantMode": "system_grant", + "availableLevel": "system_core", + "since":7 , + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.SET_TELEPHONY_STATE", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 8, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false, + "label": "$string:ohos_lab_set_telephony_state", + "description": "$string:ohos_desc_set_telephony_state" + }, + { + "name": "ohos.permission.START_ABILIIES_FROM_BACKGROUND", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 7, + "deprecated": "since 9", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.START_ABILITIES_FROM_BACKGROUND", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 9, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.BUNDLE_ACTIVE_INFO", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 7, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false, + "label": "$string:ohos_lab_bundle_active_info", + "description": "$string:ohos_desc_bundle_active_info" + }, + { + "name": "ohos.permission.START_INVISIBLE_ABILITY", + "grantMode": "system_grant", + "availableLevel": "system_core", + "since": 9, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.sec.ACCESS_UDID", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 7, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.LAUNCH_DATA_PRIVACY_CENTER", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 7, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.MANAGE_MEDIA_RESOURCES", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 9, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.PUBLISH_AGENT_REMINDER", + "grantMode": "system_grant", + "availableLevel": "normal", + "since": 7, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false, + "label": "$string:ohos_lab_publish_agent_reminder", + "description": "$string:ohos_desc_publish_agent_reminder" + }, + { + "name": "ohos.permission.CONTROL_TASK_SYNC_ANIMATOR", + "grantMode": "system_grant", + "availableLevel": "system_core", + "since": 7, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false, + "label": "$string:ohos_lab_control_task_sync_animator", + "description": "$string:ohos_desc_control_task_sync_animator" + }, + { + "name": "ohos.permission.INPUT_MONITORING", + "grantMode": "system_grant", + "availableLevel": "system_core", + "since": 7, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.MANAGE_MISSIONS", + "grantMode": "system_grant", + "availableLevel": "system_core", + "since": 9, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.NOTIFICATION_CONTROLLER", + "grantMode": "system_grant", + "availableLevel": "system_core", + "since": 8, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false, + "label": "$string:ohos_lab_notification_controller", + "description": "$string:ohos_desc_notification_controller" + }, + { + "name": "ohos.permission.CONNECTIVITY_INTERNAL", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 8, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.MANAGE_NET_STRATEGY", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 10, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.GET_NETWORK_STATS", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 10, + "deprecated": "", + "provisionEnable": false, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.MANAGE_VPN", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 10, + "deprecated": "", + "provisionEnable": false, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.SET_ABILITY_CONTROLLER", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 9, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.USE_USER_IDM", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 8, + "deprecated": "", + "provisionEnable": false, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.MANAGE_USER_IDM", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 8, + "deprecated": "", + "provisionEnable": false, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.NETSYS_INTERNAL", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 10, + "deprecated": "", + "provisionEnable": false, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.ACCESS_BIOMETRIC", + "grantMode": "system_grant", + "availableLevel": "normal", + "since": 6, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.ACCESS_USER_AUTH_INTERNAL", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 8, + "deprecated": "", + "provisionEnable": false, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.ACCESS_PIN_AUTH", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 8, + "deprecated": "", + "provisionEnable": false, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.ACCESS_AUTH_RESPOOL", + "grantMode": "system_grant", + "availableLevel": "system_core", + "since": 9, + "deprecated": "", + "provisionEnable": false, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.ENFORCE_USER_IDM", + "grantMode": "system_grant", + "availableLevel": "system_core", + "since": 9, + "deprecated": "", + "provisionEnable": false, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.GET_RUNNING_INFO", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 7, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.CLEAN_APPLICATION_DATA", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 7, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.RUNNING_STATE_OBSERVER", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 7, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.CAPTURE_SCREEN", + "grantMode": "system_grant", + "availableLevel": "system_core", + "since": 7, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.GET_WIFI_INFO", + "grantMode": "system_grant", + "availableLevel": "normal", + "since": 8, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.GET_WIFI_INFO_INTERNAL", + "grantMode": "system_grant", + "availableLevel": "system_core", + "since":8 , + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.SET_WIFI_INFO", + "grantMode": "system_grant", + "availableLevel": "normal", + "since": 8, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.GET_WIFI_PEERS_MAC", + "grantMode": "system_grant", + "availableLevel": "system_core", + "since": 8, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.GET_WIFI_LOCAL_MAC", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 8, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.GET_WIFI_CONFIG", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 8, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.SET_WIFI_CONFIG", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 8, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.MANAGE_WIFI_CONNECTION", + "grantMode": "system_grant", + "availableLevel": "system_core", + "since": 8, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.DUMP", + "grantMode": "system_grant", + "availableLevel": "system_core", + "since": 9, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.MANAGE_WIFI_HOTSPOT", + "grantMode": "system_grant", + "availableLevel": "system_core", + "since": 8, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.GET_ALL_APP_ACCOUNTS", + "grantMode": "system_grant", + "availableLevel": "system_core", + "since": 7, + "deprecated": "", + "provisionEnable": false, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.MANAGE_SECURE_SETTINGS", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 7, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.READ_DFX_SYSEVENT", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 8, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.READ_HIVIEW_SYSTEM", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 10, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.WRITE_HIVIEW_SYSTEM", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 10, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.MANAGE_ENTERPRISE_DEVICE_ADMIN", + "grantMode": "system_grant", + "availableLevel": "system_core", + "since": 9, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.SET_ENTERPRISE_INFO", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "availableType": "MDM", + "since": 9, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.ACCESS_BUNDLE_DIR", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 9, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.ENTERPRISE_SUBSCRIBE_MANAGED_EVENT", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "availableType": "MDM", + "since": 9, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.ENTERPRISE_SET_DATETIME", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "availableType": "MDM", + "since": 9, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.ENTERPRISE_GET_DEVICE_INFO", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "availableType": "MDM", + "since": 10, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.ENTERPRISE_RESET_DEVICE", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "availableType": "MDM", + "since": 10, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.ENTERPRISE_SET_WIFI", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "availableType": "MDM", + "since": 10, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.ENTERPRISE_GET_NETWORK_INFO", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "availableType": "MDM", + "since": 10, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.ENTERPRISE_SET_ACCOUNT_POLICY", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "availableType": "MDM", + "since": 10, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.ENTERPRISE_SET_BUNDLE_INSTALL_POLICY", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "availableType": "MDM", + "since": 10, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.ENTERPRISE_SET_NETWORK", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "availableType": "MDM", + "since": 10, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.ENTERPRISE_MANAGE_SET_APP_RUNNING_POLICY", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "availableType": "MDM", + "since": 10, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.ENTERPRISE_SET_SCREENOFF_TIME", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "availableType": "MDM", + "since": 10, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.ENTERPRISE_MANAGE_SECURITY", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "availableType": "MDM", + "since": 11, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.ENTERPRISE_MANAGE_BLUETOOTH", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "availableType": "MDM", + "since": 11, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.ENTERPRISE_MANAGE_WIFI", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "availableType": "MDM", + "since": 11, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.ENTERPRISE_MANAGE_RESTRICTIONS", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "availableType": "MDM", + "since": 11, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.ENTERPRISE_MANAGE_APPLICATION", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "availableType": "MDM", + "since": 11, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.ENTERPRISE_MANAGE_LOCATION", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "availableType": "MDM", + "since": 11, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.ENTERPRISE_REBOOT", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "availableType": "MDM", + "since": 11, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.ENTERPRISE_LOCK_DEVICE", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "availableType": "MDM", + "since": 11, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.ENTERPRISE_GET_SETTINGS", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "availableType": "MDM", + "since": 10, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.ENTERPRISE_MANAGE_SETTINGS", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "availableType": "MDM", + "since": 11, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.ENTERPRISE_INSTALL_BUNDLE", + "grantMode": "system_grant", + "availableLevel": "system_core", + "availableType": "MDM", + "since": 10, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.ENTERPRISE_MANAGE_CERTIFICATE", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "availableType": "MDM", + "since": 10, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.ENTERPRISE_MANAGE_SYSTEM", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "availableType": "MDM", + "since": 11, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.ENTERPRISE_RESTRICT_POLICY", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "availableType": "MDM", + "since": 10, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.ENTERPRISE_MANAGE_USB", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "availableType": "MDM", + "since": 10, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.ENTERPRISE_MANAGE_NETWORK", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "availableType": "MDM", + "since": 10, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.ENTERPRISE_SET_BROWSER_POLICY", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "availableType": "MDM", + "since": 10, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.NFC_TAG", + "grantMode": "system_grant", + "availableLevel": "normal", + "since": 7, + "deprecated": "", + "provisionEnable": false, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.NFC_CARD_EMULATION", + "grantMode": "system_grant", + "availableLevel": "normal", + "since": 8, + "deprecated": "", + "provisionEnable": false, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.PERMISSION_USED_STATS", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 9, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.NOTIFICATION_AGENT_CONTROLLER", + "grantMode": "system_grant", + "availableLevel": "system_core", + "since": 9, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.MOUNT_UNMOUNT_MANAGER", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 9, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.MOUNT_FORMAT_MANAGER", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 9, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.STORAGE_MANAGER", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 9, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.BACKUP", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 9, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.CLOUDFILE_SYNC_MANAGER", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 10, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.CLOUDFILE_SYNC", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 10, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.FILE_ACCESS_MANAGER", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 9, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.GET_DEFAULT_APPLICATION", + "grantMode": "system_grant", + "availableLevel": "system_core", + "since": 9, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.SET_DEFAULT_APPLICATION", + "grantMode": "system_grant", + "availableLevel": "system_core", + "since": 9, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.ACCESS_IDS", + "grantMode": "system_grant", + "availableLevel": "system_core", + "since": 9, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.MANAGE_DISPOSED_APP_STATUS", + "grantMode": "system_grant", + "availableLevel": "system_core", + "since": 9, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.ACCESS_DLP_FILE", + "grantMode": "system_grant", + "availableLevel": "system_core", + "since": 9, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.PROVISIONING_MESSAGE", + "grantMode": "system_grant", + "availableLevel": "system_core", + "since": 9, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.ACCESS_SYSTEM_SETTINGS", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 9, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.READ_IMAGEVIDEO", + "grantMode": "user_grant", + "availableLevel": "system_basic", + "since": 9, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false, + "label": "$string:ohos_lab_read_imagevideo", + "description": "$string:ohos_desc_read_imagevideo" + }, + { + "name": "ohos.permission.READ_AUDIO", + "grantMode": "user_grant", + "availableLevel": "system_basic", + "since": 9, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false, + "label": "$string:ohos_lab_read_audio", + "description": "$string:ohos_desc_read_audio" + }, + { + "name": "ohos.permission.READ_DOCUMENT", + "grantMode": "user_grant", + "availableLevel": "system_basic", + "since": 9, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false, + "label": "$string:ohos_lab_read_document", + "description": "$string:ohos_desc_read_document" + }, + { + "name": "ohos.permission.WRITE_IMAGEVIDEO", + "grantMode": "user_grant", + "availableLevel": "system_basic", + "since": 9, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false, + "label": "$string:ohos_lab_write_imagevideo", + "description": "$string:ohos_desc_write_imagevideo" + }, + { + "name": "ohos.permission.WRITE_AUDIO", + "grantMode": "user_grant", + "availableLevel": "system_basic", + "since": 9, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false, + "label": "$string:ohos_lab_write_audio", + "description": "$string:ohos_desc_write_audio" + }, + { + "name": "ohos.permission.WRITE_DOCUMENT", + "grantMode": "user_grant", + "availableLevel": "system_basic", + "since": 9, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false, + "label": "$string:ohos_lab_write_document", + "description": "$string:ohos_desc_write_document" + }, + { + "name": "ohos.permission.ABILITY_BACKGROUND_COMMUNICATION", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 9, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.securityguard.REPORT_SECURITY_INFO", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 9, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.securityguard.REQUEST_SECURITY_MODEL_RESULT", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 9, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": true + }, + { + "name": "ohos.permission.securityguard.REQUEST_SECURITY_EVENT_INFO", + "grantMode": "system_grant", + "availableLevel": "system_core", + "since": 9, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": true + }, + { + "name": "ohos.permission.ACCESS_CERT_MANAGER_INTERNAL", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 9, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.ACCESS_CERT_MANAGER", + "grantMode": "system_grant", + "availableLevel": "normal", + "since": 9, + "deprecated": "", + "provisionEnable": false, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.GET_LOCAL_ACCOUNTS", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 9, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.MANAGE_DISTRIBUTED_ACCOUNTS", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 9, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.GET_DISTRIBUTED_ACCOUNTS", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 9, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.READ_ACCESSIBILITY_CONFIG", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 9, + "deprecated": "", + "provisionEnable": false, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.WRITE_ACCESSIBILITY_CONFIG", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 9, + "deprecated": "", + "provisionEnable": false, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.ACCESS_PUSH_SERVICE", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 9, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.READ_APP_PUSH_DATA", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 10, + "deprecated": "", + "provisionEnable": false, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.WRITE_APP_PUSH_DATA", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 10, + "deprecated": "", + "provisionEnable": false, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.MANAGE_AUDIO_CONFIG", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 9, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.MANAGE_CAMERA_CONFIG", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 9, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.RECEIVER_STARTUP_COMPLETED", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 9, + "deprecated": "", + "provisionEnable": false, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.READ_WHOLE_CALENDAR", + "grantMode": "user_grant", + "availableLevel": "system_basic", + "since": 9, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false, + "label": "$string:ohos_lab_read_whole_calendar", + "description": "$string:ohos_desc_read_whole_calendar" + }, + { + "name": "ohos.permission.WRITE_WHOLE_CALENDAR", + "grantMode": "user_grant", + "availableLevel": "system_basic", + "since": 9, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false, + "label": "$string:ohos_lab_write_whole_calendar", + "description": "$string:ohos_desc_write_whole_calendar" + }, + { + "name": "ohos.permission.ACCESS_SERVICE_DM", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 10, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.RUN_ANY_CODE", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 10, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.APP_TRACKING_CONSENT", + "grantMode": "user_grant", + "availableLevel": "normal", + "since": 9, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": true, + "label": "$string:ohos_lab_app_tracking_consent", + "description": "$string:ohos_desc_app_tracking_consent" + }, + { + "name": "ohos.permission.PUBLISH_SYSTEM_COMMON_EVENT", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 10, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.ACCESS_SCREEN_LOCK_INNER", + "grantMode": "system_grant", + "availableLevel": "system_core", + "since": 10, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.PRINT", + "grantMode": "system_grant", + "since": 10, + "deprecated": "", + "availableLevel": "normal", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.MANAGE_PRINT_JOB", + "grantMode": "system_grant", + "since": 10, + "deprecated": "", + "availableLevel": "system_basic", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.CHANGE_OVERLAY_ENABLED_STATE", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 10, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.CONNECT_CELLULAR_CALL_SERVICE", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 10, + "deprecated": "", + "provisionEnable": false, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.CONNECT_IMS_SERVICE", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 10, + "deprecated": "", + "provisionEnable": false, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.ACCESS_SENSING_WITH_ULTRASOUND", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 11, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.PROXY_AUTHORIZATION_URI", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 10, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.INSTALL_ENTERPRISE_BUNDLE", + "grantMode": "system_grant", + "availableLevel": "system_core", + "since": 10, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.GET_INSTALLED_BUNDLE_LIST", + "grantMode": "user_grant", + "availableLevel": "system_basic", + "since": 10, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false, + "label": "$string:ohos_lab_get_installed_bundle_list", + "description": "$string:ohos_desc_get_installed_bundle_list" + }, + { + "name": "ohos.permission.ACCESS_CAST_ENGINE_MIRROR", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 10, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.ACCESS_CAST_ENGINE_STREAM", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 10, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.CLOUDDATA_CONFIG", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 10, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.DEVICE_STANDBY_EXEMPTION", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 10, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.RESTRICT_APPLICATION_ACTIVE", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 10, + "deprecated": "", + "provisionEnable": false, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.MANAGE_SENSOR", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 10, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.UPLOAD_SESSION_MANAGER", + "grantMode": "system_grant", + "availableLevel": "system_core", + "since": 10, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.PREPARE_APP_TERMINATE", + "grantMode": "system_grant", + "availableLevel": "normal", + "since": 10, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.MANAGE_ECOLOGICAL_RULE", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 10, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.GET_SCENE_CODE", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 10, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.FILE_GUARD_MANAGER", + "grantMode": "system_grant", + "availableLevel": "system_core", + "since": 10, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.SET_FILE_GUARD_POLICY", + "grantMode": "system_grant", + "availableLevel": "system_core", + "since": 10, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.securityguard.SET_MODEL_STATE", + "grantMode": "system_grant", + "availableLevel": "system_core", + "since": 10, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.hsdr.HSDR_ACCESS", + "grantMode": "system_grant", + "availableLevel": "normal", + "since": 10, + "deprecated": "", + "provisionEnable": false, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.SUPPORT_USER_AUTH", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 10, + "deprecated": "", + "provisionEnable": false, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.CAPTURE_VOICE_DOWNLINK_AUDIO", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 10, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.MANAGE_INTELLIGENT_VOICE", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 10, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.INSTALL_ENTERPRISE_MDM_BUNDLE", + "grantMode": "system_grant", + "availableLevel": "system_core", + "since": 10, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.INSTALL_ENTERPRISE_NORMAL_BUNDLE", + "grantMode": "system_grant", + "availableLevel": "system_core", + "since": 10, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.INSTALL_SELF_BUNDLE", + "grantMode": "system_grant", + "availableLevel": "system_core", + "since": 10, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.OBSERVE_FORM_RUNNING", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 10, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.MANAGE_DEVICE_AUTH_CRED", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 10, + "deprecated": "", + "provisionEnable": false, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.UNINSTALL_BUNDLE", + "grantMode": "system_grant", + "availableLevel": "system_core", + "since": 10, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.RECOVER_BUNDLE", + "grantMode": "system_grant", + "availableLevel": "system_core", + "since": 10, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.GET_DOMAIN_ACCOUNTS", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 10, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.SET_UNREMOVABLE_NOTIFICATION", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 11, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.QUERY_ACCESSIBILITY_ELEMENT", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 11, + "deprecated": "", + "provisionEnable": false, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.ACTIVATE_THEME_PACKAGE", + "grantMode": "system_grant", + "availableLevel": "system_core", + "since": 11, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.ATTEST_KEY", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 11, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.WAKEUP_VOICE", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 11, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.WAKEUP_VISION", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 11, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.ENABLE_DISTRIBUTED_HARDWARE", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 11, + "deprecated": "", + "provisionEnable": false, + "distributedSceneEnable": true + }, + { + "name": "ohos.permission.ACCESS_DISTRIBUTED_HARDWARE", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 11, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": true + }, + { + "name": "ohos.permission.INSTANTSHARE_SWITCH_CONTROL", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 11, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.ACCESS_INSTANTSHARE_SERVICE", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 11, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.ACCESS_INSTANTSHARE_PRIVATE_ABILITY", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 11, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.SECURE_PASTE", + "grantMode": "system_grant", + "availableLevel": "system_core", + "since": 11, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.READ_PASTEBOARD", + "grantMode": "user_grant", + "availableLevel": "system_basic", + "since": 11, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false, + "label": "$string:ohos_lab_read_pasteboard", + "description": "$string:ohos_desc_read_pasteboard" + }, + { + "name": "ohos.permission.ACCESS_MCP_AUTHORIZATION", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 11, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.GET_BUNDLE_RESOURCES", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 11, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.SET_CODE_PROTECT_INFO", + "grantMode": "system_grant", + "availableLevel": "system_core", + "since": 11, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.SET_ADVANCED_SECURITY_MODE", + "grantMode": "system_grant", + "availableLevel": "system_core", + "since": 11, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.SET_DEVELOPER_MODE", + "grantMode": "system_grant", + "availableLevel": "system_core", + "since": 11, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.COOPERATE_MANAGER", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 11, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.PERCEIVE_TRAIL", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 11, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.DISABLE_PERMISSION_DIALOG", + "grantMode": "system_grant", + "availableLevel": "system_core", + "since": 11, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.EXECUTE_INSIGHT_INTENT", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 11, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.MANAGE_ACTIVATION_LOCK", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 11, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.VERIFY_ACTIVATION_LOCK", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 11, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.MANAGE_PRIVATE_PHOTOS", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "since": 11, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.ACCESS_OUC", + "grantMode": "system_grant", + "since": 11, + "deprecated": "", + "availableLevel": "system_basic", + "provisionEnable": true, + "distributedSceneEnable": false + } + ] + } +} diff --git a/capi_parser/src/coreImpl/check/rules/syscap_rule.json b/capi_parser/src/coreImpl/check/rules/syscap_rule.json new file mode 100644 index 0000000000000000000000000000000000000000..e4a146f9ed599520ecb51597fdd870401fe986e3 --- /dev/null +++ b/capi_parser/src/coreImpl/check/rules/syscap_rule.json @@ -0,0 +1,246 @@ +[ + "SystemCapability.Applications.CalendarData", + "SystemCapability.ArkUI.ArkUI.Full", + "SystemCapability.ArkUI.ArkUI.Lite", + "SystemCapability.ArkUI.ArkUI.Napi", + "SystemCapability.ArkUI.ArkUI.Libuv", + "SystemCapability.ArkUI.UiAppearance", + "SystemCapability.BundleManager.BundleFramework", + "SystemCapability.BundleManager.DistributedBundleFramework", + "SystemCapability.BundleManager.Zlib", + "SystemCapability.BundleManager.BundleFramework.Core", + "SystemCapability.BundleManager.BundleFramework.FreeInstall", + "SystemCapability.BundleManager.BundleFramework.Resource", + "SystemCapability.BundleManager.BundleFramework.DefaultApp", + "SystemCapability.BundleManager.BundleFramework.Launcher", + "SystemCapability.BundleManager.BundleFramework.SandboxApp", + "SystemCapability.BundleManager.BundleFramework.QuickFix", + "SystemCapability.BundleManager.BundleFramework.AppControl", + "SystemCapability.BundleManager.BundleFramework.Overlay", + "SystemCapability.Developtools.Syscap", + "SystemCapability.Graphic.Graphic2D.WebGL", + "SystemCapability.Graphic.Graphic2D.WebGL2", + "SystemCapability.Graphic.Graphic2D.ColorManager.Core", + "SystemCapability.Graphic.Vulkan", + "SystemCapability.Window.SessionManager", + "SystemCapability.WindowManager.WindowManager.Core", + "SystemCapability.WindowManager.WindowManager.MutiScreen", + "SystemCapability.Notification.CommonEvent", + "SystemCapability.Notification.Notification", + "SystemCapability.Notification.ReminderAgent", + "SystemCapability.Notification.Emitter", + "SystemCapability.Communication.IPC.Core", + "SystemCapability.Communication.SoftBus.Core", + "SystemCapability.Communication.NetManager.Core", + "SystemCapability.Communication.NetManager.Extension", + "SystemCapability.Communication.NetStack", + "SystemCapability.Communication.WiFi.Core", + "SystemCapability.Communication.WiFi.STA", + "SystemCapability.Communication.WiFi.AP.Core", + "SystemCapability.Communication.WiFi.AP.Extension", + "SystemCapability.Communication.WiFi.P2P", + "SystemCapability.Communication.Bluetooth.Core", + "SystemCapability.Communication.Bluetooth.Lite", + "SystemCapability.Communication.NFC.Core", + "SystemCapability.Communication.ConnectedTag", + "SystemCapability.Communication.NFC.Tag", + "SystemCapability.Communication.NFC.CardEmulation", + "SystemCapability.Communication.NetManager.Ethernet", + "SystemCapability.Communication.NetManager.NetSharing", + "SystemCapability.Communication.NetManager.MDNS", + "SystemCapability.Communication.NetManager.Vpn", + "SystemCapability.Communication.SecureElement", + "SystemCapability.Location.Location.Core", + "SystemCapability.Location.Location.Geocoder", + "SystemCapability.Location.Location.Geofence", + "SystemCapability.Location.Location.Gnss", + "SystemCapability.Location.Location.Lite", + "SystemCapability.Msdp.DeviceStatus.Stationary", + "SystemCapability.MultimodalInput.Input.Core", + "SystemCapability.MultimodalInput.Input.InputDevice", + "SystemCapability.MultimodalInput.Input.RemoteInputDevice", + "SystemCapability.MultimodalInput.Input.InputMonitor", + "SystemCapability.MultimodalInput.Input.InputConsumer", + "SystemCapability.MultimodalInput.Input.InputSimulator", + "SystemCapability.MultimodalInput.Input.InputFilter", + "SystemCapability.MultimodalInput.Input.Cooperator", + "SystemCapability.MultimodalInput.Input.Pointer", + "SystemCapability.PowerManager.BatteryManager.Extension", + "SystemCapability.PowerManager.BatteryStatistics", + "SystemCapability.PowerManager.DisplayPowerManager", + "SystemCapability.PowerManager.DisplayPowerManager.Lite", + "SystemCapability.PowerManager.ThermalManager", + "SystemCapability.PowerManager.PowerManager.Core", + "SystemCapability.PowerManager.PowerManager.Lite", + "SystemCapability.PowerManager.BatteryManager.Core", + "SystemCapability.PowerManager.BatteryManager.Lite", + "SystemCapability.PowerManager.PowerManager.Extension", + "SystemCapability.Multimedia.Media.Core", + "SystemCapability.Multimedia.Media.AudioPlayer", + "SystemCapability.Multimedia.Media.AudioRecorder", + "SystemCapability.Multimedia.Media.VideoPlayer", + "SystemCapability.Multimedia.Media.VideoRecorder", + "SystemCapability.Multimedia.Media.CodecBase", + "SystemCapability.Multimedia.Media.AudioDecoder", + "SystemCapability.Multimedia.Media.AudioEncoder", + "SystemCapability.Multimedia.Media.VideoDecoder", + "SystemCapability.Multimedia.Media.VideoEncoder", + "SystemCapability.Multimedia.Media.Spliter", + "SystemCapability.Multimedia.Media.Muxer", + "SystemCapability.Multimedia.Media.AVScreenCapture", + "SystemCapability.Multimedia.Media.SoundPool", + "SystemCapability.Multimedia.AVSession.Core", + "SystemCapability.Multimedia.AVSession.Manager", + "SystemCapability.Multimedia.AVSession.AVCast", + "SystemCapability.Multimedia.Audio.Core", + "SystemCapability.Multimedia.Audio.Tone", + "SystemCapability.Multimedia.Audio.Interrupt", + "SystemCapability.Multimedia.Audio.Renderer", + "SystemCapability.Multimedia.Audio.Capturer", + "SystemCapability.Multimedia.Audio.Device", + "SystemCapability.Multimedia.Audio.Volume", + "SystemCapability.Multimedia.Audio.Communication", + "SystemCapability.Multimedia.Audio.PlaybackCapture", + "SystemCapability.Multimedia.Camera.Core", + "SystemCapability.Multimedia.Camera.DistributedCore", + "SystemCapability.Multimedia.Image.Core", + "SystemCapability.Multimedia.Image.ImageSource", + "SystemCapability.Multimedia.Image.ImagePacker", + "SystemCapability.Multimedia.Image.ImageReceiver", + "SystemCapability.Multimedia.MediaLibrary.Core", + "SystemCapability.Multimedia.MediaLibrary.SmartAlbum", + "SystemCapability.Multimedia.MediaLibrary.DistributedCore", + "SystemCapability.Multimedia.Media.AVPlayer", + "SystemCapability.Multimedia.Media.AVRecorder", + "SystemCapability.Multimedia.Image.ImageCreator", + "SystemCapability.Multimedia.SystemSound.Core", + "SystemCapability.Telephony.CoreService", + "SystemCapability.Telephony.CallManager", + "SystemCapability.Telephony.CellularCall", + "SystemCapability.Telephony.CellularData", + "SystemCapability.Telephony.SmsMms", + "SystemCapability.Telephony.StateRegistry", + "SystemCapability.Global.I18n", + "SystemCapability.Global.ResourceManager", + "SystemCapability.Customization.ConfigPolicy", + "SystemCapability.Customization.EnterpriseDeviceManager", + "SystemCapability.BarrierFree.Accessibility.Core", + "SystemCapability.BarrierFree.Accessibility.Vision", + "SystemCapability.BarrierFree.Accessibility.Hearing", + "SystemCapability.BarrierFree.Accessibility.Interaction", + "SystemCapability.ResourceSchedule.WorkScheduler", + "SystemCapability.ResourceSchedule.BackgroundTaskManager.ContinuousTask", + "SystemCapability.ResourceSchedule.BackgroundTaskManager.TransientTask", + "SystemCapability.ResourceSchedule.UsageStatistics.App", + "SystemCapability.ResourceSchedule.UsageStatistics.AppGroup", + "SystemCapability.ResourceSchedule.BackgroundTaskManager.EfficiencyResourcesApply", + "SystemCapability.Utils.Lang", + "SystemCapability.HiviewDFX.HiLog", + "SystemCapability.HiviewDFX.HiLogLite", + "SystemCapability.HiviewDFX.HiTrace", + "SystemCapability.HiviewDFX.Hiview.FaultLogger", + "SystemCapability.HiviewDFX.Hiview.LogLibrary", + "SystemCapability.HiviewDFX.HiviewLite", + "SystemCapability.HiviewDFX.HiChecker", + "SystemCapability.HiviewDFX.HiCollie", + "SystemCapability.HiviewDFX.HiDumper", + "SystemCapability.HiviewDFX.HiAppEvent", + "SystemCapability.HiviewDFX.HiSysEvent", + "SystemCapability.HiviewDFX.HiEventLite", + "SystemCapability.HiviewDFX.HiProfiler.HiDebug", + "SystemCapability.Update.UpdateService", + "SystemCapability.DistributedHardware.DeviceManager", + "SystemCapability.Security.DeviceAuth", + "SystemCapability.Security.DataTransitManager", + "SystemCapability.Security.DeviceSecurityLevel", + "SystemCapability.Security.Huks.Core", + "SystemCapability.Security.Huks.Extension", + "SystemCapability.Security.AccessToken", + "SystemCapability.Security.Cipher", + "SystemCapability.Security.CertificateManager", + "SystemCapability.Security.CryptoFramework", + "SystemCapability.Security.CryptoFramework.Cert", + "SystemCapability.Security.DataLossPrevention", + "SystemCapability.Security.Cert", + "SystemCapability.Account.OsAccount", + "SystemCapability.Account.AppAccount", + "SystemCapability.UserIAM.UserAuth.Core", + "SystemCapability.UserIAM.UserAuth.PinAuth", + "SystemCapability.UserIAM.UserAuth.FaceAuth", + "SystemCapability.MiscServices.InputMethodFramework", + "SystemCapability.MiscServices.Pasteboard", + "SystemCapability.MiscServices.Time", + "SystemCapability.MiscServices.Wallpaper", + "SystemCapability.MiscServices.ScreenLock", + "SystemCapability.MiscServices.Upload", + "SystemCapability.MiscServices.Download", + "SystemCapability.FileManagement.StorageService.Backup", + "SystemCapability.FileManagement.StorageService.SpatialStatistics", + "SystemCapability.FileManagement.StorageService.Volume", + "SystemCapability.FileManagement.StorageService.Encryption", + "SystemCapability.FileManagement.File.FileIO", + "SystemCapability.FileManagement.File.FileIO.Lite", + "SystemCapability.FileManagement.File.Environment", + "SystemCapability.FileManagement.File.DistributedFile", + "SystemCapability.FileManagement.AppFileService", + "SystemCapability.FileManagement.UserFileService", + "SystemCapability.FileManagement.UserFileManager", + "SystemCapability.FileManagement.UserFileManager.DistributedCore", + "SystemCapability.FileManagement.UserFileManager.Core", + "SystemCapability.USB.USBManager", + "SystemCapability.Sensors.Sensor", + "SystemCapability.Sensors.MiscDevice", + "SystemCapability.Sensors.Sensor.Lite", + "SystemCapability.Sensors.MiscDevice.Lite", + "SystemCapability.Startup.SystemInfo", + "SystemCapability.Startup.SystemInfo.Lite", + "SystemCapability.DistributedDataManager.RelationalStore.Core", + "SystemCapability.DistributedDataManager.RelationalStore.Synchronize", + "SystemCapability.DistributedDataManager.RelationalStore.Lite", + "SystemCapability.DistributedDataManager.KVStore.Core", + "SystemCapability.DistributedDataManager.KVStore.Lite", + "SystemCapability.DistributedDataManager.KVStore.DistributedKVStore", + "SystemCapability.DistributedDataManager.DataObject.DistributedObject", + "SystemCapability.DistributedDataManager.Preferences.Core", + "SystemCapability.DistributedDataManager.DataShare.Core", + "SystemCapability.DistributedDataManager.DataShare.Consumer", + "SystemCapability.DistributedDataManager.DataShare.Provider", + "SystemCapability.DistributedDataManager.UDMF.Core", + "SystemCapability.DistributedDataManager.CloudSync.Config", + "SystemCapability.DistributedDataManager.CloudSync.Client", + "SystemCapability.DistributedDataManager.CloudSync.Server", + "SystemCapability.Ability.AbilityBase", + "SystemCapability.Ability.AbilityRuntime.Core", + "SystemCapability.Ability.AbilityRuntime.FAModel", + "SystemCapability.Ability.AbilityRuntime.AbilityCore", + "SystemCapability.Ability.AbilityRuntime.Mission", + "SystemCapability.Ability.AbilityTools.AbilityAssistant", + "SystemCapability.Ability.Form", + "SystemCapability.Ability.DistributedAbilityManager", + "SystemCapability.Ability.AbilityRuntime.QuickFix", + "SystemCapability.Applications.ContactsData", + "SystemCapability.Applications.Contacts", + "SystemCapability.Applications.settings.Core", + "SystemCapability.Test.UiTest", + "SystemCapability.Web.Webview.Core", + "SystemCapability.Cloud.AAID", + "SystemCapability.Advertising.OAID", + "SystemCapability.Cloud.VAID", + "SystemCapability.Cloud.Push", + "SystemCapability.XTS.DeviceAttest", + "SystemCapability.XTS.DeviceAttestLite", + "SystemCapability.Base", + "SystemCapability.FileManagement.DistributedFileService.CloudSyncManager", + "SystemCapability.FileManagement.DistributedFileService.CloudSync.Core", + "SystemCapability.MultimodalInput.Input.ShortKey", + "SystemCapability.Msdp.DeviceStatus.Cooperate", + "SystemCapability.Request.FileTransferAgent", + "SystemCapability.ResourceSchedule.DeviceStandby", + "SystemCapability.AI.MindSporeLite", + "SystemCapability.Print.PrintFramework", + "SystemCapability.DistributedDataManager.Preferences.Core.Lite", + "SystemCapability.Driver.ExternalDevice", + "SystemCapability.FileManagement.PhotoAccessHelper.Core", + "SystemCapability.AI.IntelligentVoice.Core", + "SystemCapability.Msdp.DeviceStatus.Drag" +]