• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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.GET_BUNDLE_INFO_PRIVILEGED",
58        "reason": "$string:get_bundle_info_permission",
59        "usedScene": {
60          "abilities": [
61            "MainAbility"
62          ],
63          "when": "inuse"
64        }
65      },
66      {
67        "name": "ohos.permission.INSTALL_BUNDLE",
68        "reason": "$string:install_bundle_info_permission",
69        "usedScene": {
70          "abilities": [
71            "MainAbility"
72          ],
73          "when": "inuse"
74        }
75      },
76      {
77        "name": "ohos.permission.LISTEN_BUNDLE_CHANGE",
78        "reason": "$string:listen_bundle_change_permission",
79        "usedScene": {
80          "abilities": [
81            "MainAbility"
82          ],
83          "when": "inuse"
84        }
85      },
86      {
87        "name": "ohos.permission.MANAGE_MISSIONS",
88        "reason": "$string:manage_missions_permission",
89        "usedScene": {
90          "abilities": [
91            "MainAbility"
92          ],
93          "when": "inuse"
94        }
95      },
96      {
97        "name": "ohos.permission.REQUIRE_FORM",
98        "reason": "$string:request_form_permission",
99        "usedScene": {
100          "abilities": [
101            "MainAbility"
102          ],
103          "when": "inuse"
104        }
105      }
106    ]
107  }
108}