• 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      "phone",
24      "tablet",
25      "2in1"
26    ],
27    "deliveryWithInstall": true,
28    "installationFree": false,
29    "pages": "$profile:main_pages",
30    "requestPermissions": [{
31      "name": "ohos.permission.MANAGE_DISTRIBUTED_ACCOUNTS",
32    }],
33    "abilities": [
34      {
35        "name": "EntryAbility",
36        "srcEntry": "./ets/entryability/EntryAbility.ets",
37        "description": "$string:EntryAbility_desc",
38        "icon": "$media:layered_image",
39        "label": "$string:EntryAbility_label",
40        "startWindowIcon": "$media:startIcon",
41        "startWindowBackground": "$color:start_window_background",
42        "exported": true,
43        "skills": [
44          {
45            "entities": [
46              "entity.system.home"
47            ],
48            "actions": [
49              "action.system.home"
50            ]
51          }
52        ]
53      }
54    ],
55    "extensionAbilities": [
56      {
57        "name": "EntryBackupAbility",
58        "srcEntry": "./ets/entrybackupability/EntryBackupAbility.ets",
59        "type": "backup",
60        "exported": false,
61        "metadata": [
62          {
63            "name": "ohos.extension.backup",
64            "resource": "$profile:backup_config"
65          }
66        ],
67      }
68    ]
69  }
70}