1/* 2 * Copyright (c) 2022 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 "srcEntrance": "./ets/Application/MyAbilityStage.ts", 21 "description": "$string:entry_desc", 22 "mainElement": "HomeAbility", 23 "deviceTypes": [ 24 "default", 25 "tablet" 26 ], 27 "deliveryWithInstall": true, 28 "installationFree": false, 29 "pages": "$profile:main_pages", 30 "uiSyntax": "ets", 31 "extensionAbilities": [ 32 { 33 "priority": 2, 34 "skills": [ 35 { 36 "entities": [ 37 "entity.system.home", 38 "flag.home.intent.from.system" 39 ], 40 "actions": [ 41 "action.system.home", 42 "com.ohos.action.main" 43 ] 44 } 45 ], 46 "visible": true, 47 "name": "MainAbility", 48 "icon": "$media:icon", 49 "description": "$string:MainAbility_desc", 50 "label": "$string:MainAbility_label", 51 "srcEntrance": "./ets/MainAbility/MainAbility.ts", 52 "type": "service" 53 }, 54 ], 55 "requestPermissions": [ 56 { 57 "name": "ohos.permission.START_ABILITIES_FROM_BACKGROUND", 58 "usedScene": { 59 "abilities": [ 60 "MainAbility" 61 ], 62 "when": "inuse" 63 } 64 }, 65 { 66 "name": "ohos.permission.GET_BUNDLE_INFO_PRIVILEGED", 67 "reason": "$string:get_bundle_info_permission", 68 "usedScene": { 69 "abilities": [ 70 "MainAbility" 71 ], 72 "when": "inuse" 73 } 74 }, 75 { 76 "name": "ohos.permission.INSTALL_BUNDLE", 77 "reason": "$string:install_bundle_info_permission", 78 "usedScene": { 79 "abilities": [ 80 "MainAbility" 81 ], 82 "when": "inuse" 83 } 84 }, 85 { 86 "name": "ohos.permission.LISTEN_BUNDLE_CHANGE", 87 "reason": "$string:listen_bundle_change_permission", 88 "usedScene": { 89 "abilities": [ 90 "MainAbility" 91 ], 92 "when": "inuse" 93 } 94 }, 95 { 96 "name": "ohos.permission.MANAGE_MISSIONS", 97 "reason": "$string:manage_missions_permission", 98 "usedScene": { 99 "abilities": [ 100 "MainAbility" 101 ], 102 "when": "inuse" 103 } 104 }, 105 { 106 "name": "ohos.permission.REQUIRE_FORM", 107 "reason": "$string:request_form_permission", 108 "usedScene": { 109 "abilities": [ 110 "MainAbility" 111 ], 112 "when": "inuse" 113 } 114 } 115 ] 116 } 117}