1/* 2 * Copyright (C) 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 "module": { 17 "name": "entry_test", 18 "type": "feature", 19 "description": "$string:module_test_desc", 20 "mainElement": "TestAbility", 21 "deviceTypes": [ 22 "wearable", 23 "default", 24 "tablet", 25 "2in1" 26 ], 27 "requestPermissions":[ 28 { 29 "name" :"ohos.permission.GET_WIFI_INFO", 30 }, 31 { 32 "name" : "ohos.permission.SET_WIFI_INFO", 33 }, 34 { 35 "name" : "ohos.permission.MANAGE_WIFI_CONNECTION", 36 }, 37 { 38 "name": "ohos.permission.LOCATION", 39 "usedScene": { 40 "abilities": [ 41 "ohos.acts.location.geolocation.function.MainAbility" 42 ], 43 "when": "inuse" 44 } 45 } 46 ], 47 "deliveryWithInstall": true, 48 "installationFree": false, 49 "pages": "$profile:test_pages", 50 "abilities": [ 51 { 52 "name": "TestAbility", 53 "srcEntry": "./ets/testability/TestAbility.ets", 54 "description": "$string:TestAbility_desc", 55 "icon": "$media:icon", 56 "label": "$string:TestAbility_label", 57 "exported": true, 58 "startWindowIcon": "$media:icon", 59 "startWindowBackground": "$color:start_window_background", 60 "skills": [ 61 { 62 "actions": [ 63 "action.system.home" 64 ], 65 "entities": [ 66 "entity.system.home" 67 ] 68 } 69 ] 70 } 71 ] 72 } 73} 74