1/*
2 * Copyright (c) 2022-2023 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    "srcEntry": "./ets/Application/MyAbilityStage.ets",
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    "extensionAbilities": [
31      {
32        "priority": 2,
33        "skills": [
34          {
35            "entities": [
36              "entity.system.home",
37              "flag.home.intent.from.system"
38            ],
39            "actions": [
40              "action.system.home",
41              "com.ohos.action.main"
42            ]
43          }
44        ],
45        "visible": true,
46        "name": "MainAbility",
47        "icon": "$media:icon",
48        "description": "$string:MainAbility_desc",
49        "label": "$string:MainAbility_label",
50        "srcEntrance": "./ets/MainAbility/MainAbility.ets",
51        "type": "service"
52      },
53    ],
54    "requestPermissions": [
55      {
56        "name": "ohos.permission.START_ABILITIES_FROM_BACKGROUND",
57        "reason": "$string: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        "name": "ohos.permission.NOTIFICATION_CONTROLLER",
117        "reason": "$string:notification_scribe_permission",
118        "usedScene": {
119          "abilities": [
120            "MainAbility"
121          ],
122          "when": "inuse"
123        }
124      }
125    ]
126  }
127}