• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (c) 2023 Shenzhen Kaihong Digital Industry Development 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    ],
24    "deliveryWithInstall": true,
25    "installationFree": false,
26    "pages": "$profile:main_pages",
27    "abilities": [
28      {
29        "name": "EntryAbility",
30        "srcEntry": "./ets/entryability/EntryAbility.ets",
31        "description": "$string:EntryAbility_desc",
32        "icon": "$media:icon",
33        "label": "$string:EntryAbility_label",
34        "startWindowIcon": "$media:startIcon",
35        "startWindowBackground": "$color:start_window_background",
36        "exported": true,
37        "launchType": "singleton",
38        "skills": [
39          {
40            "entities": [
41              "entity.system.home"
42            ],
43            "actions": [
44              "action.system.home",
45              "ohos.want.action.viewData",
46              "ohos.want.action.editData"
47            ]
48          }
49        ]
50      },
51      {
52        "name": "FuncAbility",
53        "srcEntry": "./ets/entryability/FuncAbility.ets",
54        "description": "$string:EntryAbility_desc",
55        "icon": "$media:icon",
56        "label": "$string:EntryAbility_label",
57        "startWindowIcon": "$media:startIcon",
58        "startWindowBackground": "$color:start_window_background",
59        "exported": true,
60        "launchType": "singleton",
61        "skills": [
62          {
63            "actions": [
64              "ohos.want.action.viewData",
65              "ohos.want.action.editData"
66            ]
67          }
68        ]
69      }
70    ],
71    "requestPermissions":[
72      {
73        "name": "ohos.permission.MEDIA_LOCATION",
74        "reason": "$string:read_permission",
75        "usedScene": {
76          "abilities": [
77            "EntryAbility"
78          ],
79          "when": "always"
80        }
81      },
82      {
83        "name" : "ohos.permission.FILE_ACCESS_MANAGER",
84        "reason": "$string:edit_file_permission",
85        "usedScene": {
86          "abilities": [
87            "EntryAbility"
88          ],
89          "when":"always"
90        }
91      },
92      {
93        "name" : "ohos.permission.GET_BUNDLE_INFO_PRIVILEGED",
94        "reason": "$string:edit_file_permission",
95        "usedScene": {
96          "abilities": [
97            "EntryAbility"
98          ],
99          "when":"always"
100        }
101      },
102      {
103        "name" : "ohos.permission.ACCESS_DLP_FILE",
104        "reason": "$string:dlp_file_permission",
105        "usedScene": {
106          "abilities": [
107            "EntryAbility"
108          ],
109          "when":"always"
110        }
111      },
112      {
113        "name": "ohos.permission.START_INVISIBLE_ABILITY"
114      },
115      {
116        "name": "ohos.permission.START_ABILITIES_FROM_BACKGROUND"
117      },
118      {
119        "name": "ohos.permission.ABILITY_BACKGROUND_COMMUNICATION"
120      },
121      {
122        "name": "ohos.permission.MANAGE_DISTRIBUTED_ACCOUNTS"
123      },
124      {
125        "name": "ohos.permission.MANAGE_LOCAL_ACCOUNTS"
126      },
127      {
128        "name": "ohos.permission.PROXY_AUTHORIZATION_URI"
129      }
130    ]
131  }
132}