1/* 2 * Copyright (c) 2024 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16{ 17 "module": { 18 "name": "entry", 19 "type": "entry", 20 "description": "$string:entry_desc", 21 "mainElement": "MainAbility", 22 "deviceTypes": [ 23 "default", 24 "tablet", 25 "2in1" 26 ], 27 "deliveryWithInstall": true, 28 "installationFree": false, 29 "pages": "$profile:main_pages", 30 "abilities": [ 31 { 32 "name": "MainAbility", 33 "srcEntry": "./ets/mainability/MainAbility.ts", 34 "description": "$string:MainAbility_desc", 35 "icon": "$media:icon", 36 "label": "$string:notice_title", 37 "startWindowIcon": "$media:icon", 38 "startWindowBackground": "$color:default_background_color", 39 "exported": false, 40 "launchType": "standard" 41 } 42 ], 43 "extensionAbilities": [ 44 { 45 "name": "PowerUiExtensionAbility", 46 "srcEntry": "./ets/UiExtensionAbility/PowerUiExtensionAbility.ts", 47 "icon": "$media:icon", 48 "label": "$string:PowerServiceExtAbility_label", 49 "visible": false, 50 "type": "sysDialog/power" 51 }, 52 { 53 "name": "ThermalServiceExtAbility_high", 54 "srcEntry": "./ets/ServiceExtAbility/ThermalHighDialogAbility.ts", 55 "icon": "$media:icon", 56 "label": "$string:ThermalServiceExtAbility_high_label", 57 "visible": false, 58 "type": "service" 59 }, 60 { 61 "name": "ThermalServiceExtAbility_low", 62 "srcEntry": "./ets/ServiceExtAbility/ThermalLowDialogAbility.ts", 63 "icon": "$media:icon", 64 "label": "$string:ThermalServiceExtAbility_low_label", 65 "visible": false, 66 "type": "service" 67 }, 68 { 69 "name": "InjectNoticeAbility", 70 "srcEntry": "./ets/ServiceExtAbility/InjectNoticeAbility.ts", 71 "icon": "$media:icon", 72 "label": "$string:inject_notice_ability_label", 73 "visible": false, 74 "type": "service" 75 }, 76 { 77 "name": "CapsuleWindowAbility", 78 "srcEntry": "./ets/UiExtensionAbility/CapsuleWindowAbility.ets", 79 "type": "sys/commonUI", 80 "exported": false, 81 "label": "$string:capsule_window_ability_label", 82 "skills": [ 83 { 84 "actions": [ 85 "action.systemui.plugin.STATUS_BAR" 86 ] 87 } 88 ], 89 "metadata": [ 90 { 91 "name": "action.systemui.plugin.STATUS_BAR", 92 "value": "plugin_capsule_my_inject" 93 } 94 ] 95 } 96 ], 97 "requestPermissions": [ 98 { 99 "reason": "$string:PowerServiceExtAbility_reason", 100 "name": "ohos.permission.REBOOT", 101 "usedScene": { 102 "abilities": [ 103 "PowerUiExtensionAbility" 104 ], 105 "when": "always" 106 } 107 }, 108 { 109 "reason": "$string:inject_input_reason", 110 "name": "ohos.permission.INJECT_INPUT_EVENT", 111 "usedScene": { 112 "abilities": [ 113 "PowerUiExtensionAbility", 114 "InjectNoticeAbility" 115 ], 116 "when": "always" 117 } 118 } 119 ] 120 } 121} 122