/* * Copyright (c) 2022-2023 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", "srcEntry": "./ets/Application/MyAbilityStage.ets", "description": "$string:entry_desc", "mainElement": "HomeAbility", "deviceTypes": [ "default", "tablet" ], "deliveryWithInstall": true, "installationFree": false, "pages": "$profile:main_pages", "extensionAbilities": [ { "priority": 2, "skills": [ { "entities": [ "entity.system.home", "flag.home.intent.from.system" ], "actions": [ "action.system.home", "com.ohos.action.main" ] } ], "visible": true, "name": "MainAbility", "icon": "$media:icon", "description": "$string:MainAbility_desc", "label": "$string:MainAbility_label", "srcEntrance": "./ets/MainAbility/MainAbility.ets", "type": "service" }, ], "requestPermissions": [ { "name": "ohos.permission.START_ABILITIES_FROM_BACKGROUND", "reason": "$string:start_abilities_from_background", "usedScene": { "abilities": [ "MainAbility" ], "when": "inuse" } }, { "name": "ohos.permission.GET_BUNDLE_INFO_PRIVILEGED", "reason": "$string:get_bundle_info_permission", "usedScene": { "abilities": [ "MainAbility" ], "when": "inuse" } }, { "name": "ohos.permission.INSTALL_BUNDLE", "reason": "$string:install_bundle_info_permission", "usedScene": { "abilities": [ "MainAbility" ], "when": "inuse" } }, { "name": "ohos.permission.LISTEN_BUNDLE_CHANGE", "reason": "$string:listen_bundle_change_permission", "usedScene": { "abilities": [ "MainAbility" ], "when": "inuse" } }, { "name": "ohos.permission.MANAGE_MISSIONS", "reason": "$string:manage_missions_permission", "usedScene": { "abilities": [ "MainAbility" ], "when": "inuse" } }, { "name": "ohos.permission.REQUIRE_FORM", "reason": "$string:request_form_permission", "usedScene": { "abilities": [ "MainAbility" ], "when": "inuse" } }, { "name": "ohos.permission.NOTIFICATION_CONTROLLER", "reason": "$string:notification_scribe_permission", "usedScene": { "abilities": [ "MainAbility" ], "when": "inuse" } } ] } }