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", 18 "type": "entry", 19 "srcEntry": "./ets/Application/AbilityStage.ts", 20 "description": "$string:entry_desc", 21 "mainElement": "MainAbility", 22 "deviceTypes": [ 23 "default", 24 "tablet", 25 "2in1", 26 "wearable" 27 ], 28 "deliveryWithInstall": true, 29 "installationFree": false, 30 "pages": "$profile:main_pages", 31 "uiSyntax": "ets", 32 "abilities": [ 33 { 34 "name": "com.acts.fileio.test.server.MainAbility", 35 "srcEntry": "./ets/MainAbility/MainAbility.ts", 36 "description": "$string:MainAbility_desc", 37 "icon": "$media:app_icon", 38 "label": "$string:MainAbility_label", 39 "startWindowIcon": "$media:app_icon", 40 "startWindowBackground": "$color:white", 41 "visible": true, 42 "launchType": "singleton", 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": "com.acts.fileio.test.server.ServiceAbility", 58 "srcEntry": "./ets/serviceability/ServiceAbility.ts", 59 "label": "$string:MainAbility_label", 60 "description": "$string:description_serviceability", 61 "type": "service", 62 "visible": true 63 } 64 ], 65 "requestPermissions": [ 66 { 67 "name": "ohos.permission.DISTRIBUTED_DATASYNC" 68 }, 69 { 70 "name": "ohos.permission.GET_DISTRIBUTED_DEVICE_INFO" 71 }, 72 { 73 "name": "ohos.permission.GET_BUNDLE_INFO" 74 }, 75 { 76 "name": "ohos.permission.KEEP_BACKGROUND_RUNNING" 77 }, 78 { 79 "name": "ohos.permission.MANAGE_LOCAL_ACCOUNTS" 80 }, 81 { 82 "name": "ohos.permission.ACCESS_SERVICE_DM" 83 } 84 ] 85 } 86}