• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2* Copyright (C) 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  "module": {
17    "name": "entry",
18    "type": "entry",
19    "description": "$string:module_desc",
20    "mainElement": "EntryAbility",
21    "deviceTypes": [
22      "default",
23      "tablet",
24      "2in1"
25    ],
26    "deliveryWithInstall": true,
27    "installationFree": false,
28    "pages": "$profile:main_pages",
29    "metadata": [{
30      "name": "ArkTSPartialUpdate",
31      "value": "true"
32    }],
33    "abilities": [
34      {
35        "name": "EntryAbility",
36        "srcEntrance": "./ets/entryability/EntryAbility.ts",
37        "description": "$string:EntryAbility_desc",
38        "icon": "$media:icon",
39        "label": "$string:EntryAbility_label",
40        "startWindowIcon": "$media:icon",
41        "startWindowBackground": "$color:start_window_background",
42        "visible": true,
43        "skills": [
44          {
45            "entities": [
46              "entity.system.home"
47            ],
48            "actions": [
49              "action.system.home"
50            ]
51          }
52        ]
53      }
54    ],
55    "requestPermissions": [
56      {
57        "name": "ohos.permission.ACCESS_NOTIFICATION_POLICY",
58        "reason": "$string:EntryAbility_desc",
59        "usedScene": {
60          "abilities": [
61            "EntryAbility"
62          ],
63          "when": "always"
64        }
65      },
66      {
67        "name": "ohos.permission.MANAGE_AUDIO_CONFIG",
68        "reason": "$string:EntryAbility_desc",
69        "usedScene": {
70          "abilities": [
71            "EntryAbility"
72          ],
73          "when": "always"
74        }
75      },
76      {
77        "name": "ohos.permission.MICROPHONE",
78        "reason": "$string:EntryAbility_desc",
79        "usedScene": {
80          "abilities": [
81            "EntryAbility"
82          ],
83          "when": "always"
84        }
85      }
86    ]
87  }
88}