/* * Copyright (c) 2024 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. */ { "module": { "name": "entry", "type": "entry", "description": "$string:entry_desc", "mainElement": "MainAbility", "deviceTypes": [ "default", "tablet", "2in1" ], "deliveryWithInstall": true, "installationFree": false, "pages": "$profile:main_pages", "abilities": [ { "name": "MainAbility", "srcEntry": "./ets/mainability/MainAbility.ts", "description": "$string:MainAbility_desc", "icon": "$media:icon", "label": "$string:notice_title", "startWindowIcon": "$media:icon", "startWindowBackground": "$color:default_background_color", "exported": false, "launchType": "standard" } ], "extensionAbilities": [ { "name": "PowerUiExtensionAbility", "srcEntry": "./ets/UiExtensionAbility/PowerUiExtensionAbility.ts", "icon": "$media:icon", "label": "$string:PowerServiceExtAbility_label", "visible": false, "type": "sysDialog/power" }, { "name": "ThermalServiceExtAbility_high", "srcEntry": "./ets/ServiceExtAbility/ThermalHighDialogAbility.ts", "icon": "$media:icon", "label": "$string:ThermalServiceExtAbility_high_label", "visible": false, "type": "service" }, { "name": "ThermalServiceExtAbility_low", "srcEntry": "./ets/ServiceExtAbility/ThermalLowDialogAbility.ts", "icon": "$media:icon", "label": "$string:ThermalServiceExtAbility_low_label", "visible": false, "type": "service" }, { "name": "InjectNoticeAbility", "srcEntry": "./ets/ServiceExtAbility/InjectNoticeAbility.ts", "icon": "$media:icon", "label": "$string:inject_notice_ability_label", "visible": false, "type": "service" }, { "name": "CapsuleWindowAbility", "srcEntry": "./ets/UiExtensionAbility/CapsuleWindowAbility.ets", "type": "sys/commonUI", "exported": false, "label": "$string:capsule_window_ability_label", "skills": [ { "actions": [ "action.systemui.plugin.STATUS_BAR" ] } ], "metadata": [ { "name": "action.systemui.plugin.STATUS_BAR", "value": "plugin_capsule_my_inject" } ] } ], "requestPermissions": [ { "reason": "$string:PowerServiceExtAbility_reason", "name": "ohos.permission.REBOOT", "usedScene": { "abilities": [ "PowerUiExtensionAbility" ], "when": "always" } }, { "reason": "$string:inject_input_reason", "name": "ohos.permission.INJECT_INPUT_EVENT", "usedScene": { "abilities": [ "PowerUiExtensionAbility", "InjectNoticeAbility" ], "when": "always" } } ] } }