• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (c) 2025 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    "description": "$string:module_desc",
21    "mainElement": "EntryAbility",
22    "deviceTypes": [
23      "default",
24      "tablet"
25    ],
26    "requestPermissions": [
27      {
28        "name": "ohos.permission.INTERNET"
29      },
30      {
31        "name": "ohos.permission.MEDIA_LOCATION",
32        "reason": "$string:read_permission",
33        "usedScene": {
34          "abilities": [
35            "EntryAbility"
36          ],
37          "when": "always"
38        }
39      },
40      {
41        "name": "ohos.permission.READ_MEDIA",
42        "reason": "$string:read_permission",
43        "usedScene": {
44          "abilities": [
45            "EntryAbility"
46          ],
47          "when": "always"
48        }
49      },
50      {
51        "name": "ohos.permission.WRITE_MEDIA",
52        "reason": "$string:write_permission",
53        "usedScene": {
54          "abilities": [
55            "EntryAbility"
56          ],
57          "when": "always"
58        }
59      },
60      {
61        "name": "ohos.permission.CAMERA",
62        "reason": "$string:write_permission",
63        "usedScene": {
64          "abilities": [
65            "EntryAbility"
66          ],
67          "when": "always"
68        }
69      },
70    ],
71    "deliveryWithInstall": true,
72    "installationFree": false,
73    "pages": "$profile:main_pages",
74    "abilities": [
75      {
76        "name": "EntryAbility",
77        "srcEntry": "./ets/entryability/EntryAbility.ets",
78        "description": "$string:EntryAbility_desc",
79        "icon": "$media:layered_image",
80        "label": "$string:EntryAbility_label",
81        "startWindowIcon": "$media:startIcon",
82        "startWindowBackground": "$color:start_window_background",
83        "exported": true,
84        "skills": [
85          {
86            "entities": [
87              "entity.system.home"
88            ],
89            "actions": [
90              "action.system.home"
91            ]
92          }
93        ]
94      }
95    ],
96    "extensionAbilities": [
97      {
98        "name": "EntryBackupAbility",
99        "srcEntry": "./ets/entrybackupability/EntryBackupAbility.ets",
100        "type": "backup",
101        "exported": false,
102        "metadata": [
103          {
104            "name": "ohos.extension.backup",
105            "resource": "$profile:backup_config"
106          }
107        ],
108      }
109    ]
110  }
111}