• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (c) 2023-2024 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": "MainAbility",
22    "deviceTypes": [
23      "default",
24      "tablet"
25    ],
26    "deliveryWithInstall": true,
27    "installationFree": false,
28    "pages": "$profile:main_pages",
29    "requestPermissions": [
30      {
31        "name": "ohos.permission.GET_WIFI_INFO",
32        "reason": "$string:GET_WIFI_INFO",
33        "usedScene": {
34          "abilities": [
35            "MainAbility"
36          ],
37          "when": "inuse"
38        },
39      },
40      {
41        "name": "ohos.permission.SET_WIFI_INFO",
42        "reason": "$string:SET_WIFI_INFO",
43        "usedScene": {
44          "abilities": [
45            "MainAbility"
46          ],
47          "when": "inuse"
48        }
49      },
50      {
51        "name": "ohos.permission.LOCATION",
52        "reason": "$string:location_permission",
53        "usedScene": {
54          "abilities": [
55            "MainAbility"
56          ],
57          "when": "inuse"
58        }
59      },
60      {
61        "name": "ohos.permission.APPROXIMATELY_LOCATION",
62        "reason": "$string:approximately_location_permission",
63        "usedScene": {
64          "abilities": [
65            "MainAbility"
66          ],
67          "when": "inuse"
68        }},
69      {
70        "name": "ohos.permission.GET_WIFI_INFO_INTERNAL",
71        "reason": "$string:GET_WIFI_INFO_INTERNAL",
72        "usedScene": {
73          "abilities": [
74            "MainAbility"
75          ],
76          "when": "inuse"
77        }
78      },
79      {
80        "name": "ohos.permission.GET_WIFI_PEERS_MAC",
81        "reason": "$string:GET_WIFI_PEERS_MAC",
82        "usedScene": {
83          "abilities": [
84            "MainAbility"
85          ],
86          "when": "inuse"
87        }
88      },
89      {
90        "name": "ohos.permission.GET_WIFI_LOCAL_MAC",
91        "reason": "$string:GET_WIFI_LOCAL_MAC",
92        "usedScene": {
93          "abilities": [
94            "MainAbility"
95          ],
96          "when": "inuse"
97        }
98      },
99      {
100        "name": "ohos.permission.GET_WIFI_CONFIG",
101        "reason": "$string:GET_WIFI_CONFIG",
102        "usedScene": {
103          "abilities": [
104            "MainAbility"
105          ],
106          "when": "inuse"
107        }
108      },
109      {
110        "name": "ohos.permission.SET_WIFI_CONFIG",
111        "reason": "$string:SET_WIFI_CONFIG",
112        "usedScene": {
113          "abilities": [
114            "MainAbility"
115          ],
116          "when": "inuse"
117        }
118      },
119      {
120        "name": "ohos.permission.MANAGE_WIFI_CONNECTION",
121        "reason": "$string:MANAGE_WIFI_CONNECTION",
122        "usedScene": {
123          "abilities": [
124            "MainAbility"
125          ],
126          "when": "inuse"
127        }
128      },
129      {
130        "name": "ohos.permission.MANAGE_WIFI_HOTSPOT",
131        "reason": "$string:MANAGE_WIFI_HOTSPOT",
132        "usedScene": {
133          "abilities": [
134            "MainAbility"
135          ],
136          "when": "inuse"
137        }
138      }
139    ],
140    "abilities": [
141      {
142        "name": "EntryAbility",
143        "srcEntrance": "./ets/entryability/EntryAbility.ets",
144        "description": "$string:EntryAbility_desc",
145        "icon": "$media:icon",
146        "label": "$string:EntryAbility_label",
147        "startWindowIcon": "$media:icon",
148        "startWindowBackground": "$color:start_window_background",
149        "visible": true,
150        "skills": [
151          {
152            "entities": [
153              "entity.system.home"
154            ],
155            "actions": [
156              "action.system.home"
157            ]
158          }
159        ]
160      }
161    ]
162  }
163}