• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (c) 2022-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{
18  "module": {
19    "name": "default",
20    "type": "entry",
21    "srcEntry": "./ets/Application/AbilityStage.ts",
22    "description": "$string:entry_MainAbility",
23    "mainElement": "MainAbility",
24    "deviceTypes": [
25      "tablet",
26      "default"
27    ],
28    "requestPermissions": [
29      {
30        "name": "ohos.permission.INTERNET"
31      },
32      {
33        "name": "ohos.permission.MEDIA_LOCATION",
34        "reason": "$string:media_location_permission",
35        "usedScene": {
36          "abilities": [
37            "MainAbility"
38          ],
39          "when":"inuse"
40        }
41      },
42      {
43        "name": "ohos.permission.DISTRIBUTED_DATASYNC",
44        "reason": "$string:distributed_dataSync_permission",
45        "usedScene": {
46          "abilities": [
47            "MainAbility"
48          ],
49          "when":"inuse"
50        }
51      },
52      {
53        "name": "ohos.permission.START_ABILITIES_FROM_BACKGROUND"
54      },
55      {
56        "name": "ohos.permission.READ_IMAGEVIDEO",
57        "reason": "$string:read_image_video_permission",
58        "usedScene": {
59          "abilities": [
60            "MainAbility"
61          ],
62          "when":"inuse"
63        }
64      },
65      {
66        "name": "ohos.permission.WRITE_IMAGEVIDEO",
67        "reason": "$string:write_image_video_permission",
68        "usedScene": {
69          "abilities": [
70            "MainAbility"
71          ],
72          "when":"inuse"
73        }
74      },
75      {
76        "name": "ohos.permission.KEEP_BACKGROUND_RUNNING",
77        "reason": "$string:keep_background_running_permission",
78        "usedScene": {
79          "abilities": [
80            "MainAbility"
81          ],
82          "when":"always"
83        }
84      }
85    ],
86    "deliveryWithInstall": true,
87    "installationFree": false,
88    "pages": "$profile:main_pages",
89    "metadata": [
90      {
91        "name": "ArkTSPartialUpdate",
92        "value": "true"
93      }
94    ],
95    "abilities": [
96      {
97        "name": "MainAbility",
98        "srcEntry": "./ets/MainAbility/MainAbility.ts",
99        "description": "$string:entry_MainAbility",
100        "icon": "$media:note",
101        "label": "$string:entry_MainAbility",
102        "exported": true,
103        "continuable": true,
104        "skills": [
105          {
106            "entities": [
107              "entity.system.home"
108            ],
109            "actions": [
110              "action.system.home"
111            ]
112          }
113        ],
114        "backgroundModes": [
115          "dataTransfer"
116        ],
117        "startWindowBackground": "$color:color_1",
118        "startWindowIcon": "$media:note"
119      }
120    ]
121  }
122}