1/* 2 * Copyright (c) 2023 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.ets", 20 "description": "$string:entry_desc", 21 "deviceTypes": [ 22 "default", 23 "tablet", 24 "2in1" 25 ], 26 "deliveryWithInstall": true, 27 "installationFree": false, 28 "pages": "$profile:main_pages", 29 "metadata": [ 30 { 31 "name": "ArkTSPartialUpdate", 32 "value": "true" 33 } 34 ], 35 "abilities": [ 36 { 37 "name": "AlertAbility", 38 "srcEntry": "./ets/AlertAbility/AlertAbility.ets", 39 "description": "$string:MainAbility_desc", 40 "icon": "$media:icon", 41 "label": "$string:MainAbility_label", 42 "startWindowIcon": "$media:icon", 43 "startWindowBackground": "$color:white", 44 "excludeFromMissions": true 45 }, 46 { 47 "name": "SaveAsAbility", 48 "srcEntry": "./ets/SaveAsAbility/SaveAsAbility.ets", 49 "description": "$string:MainAbility_desc", 50 "icon": "$media:icon", 51 "label": "$string:MainAbility_label", 52 "startWindowIcon": "$media:icon", 53 "startWindowBackground": "$color:white" 54 }, 55 { 56 "name": "MainAbility", 57 "srcEntry": "./ets/MainAbility/MainAbility.ets", 58 "description": "$string:MainAbility_desc", 59 "icon": "$media:app_icon", 60 "label": "$string:MainAbility_label", 61 "startWindowIcon": "$media:app_icon", 62 "startWindowBackground": "$color:white", 63 "orientation": "auto_rotation_restricted", 64 "exported": true, 65 "removeMissionAfterTerminate": true 66 } 67 ], 68 "extensionAbilities": [ 69 { 70 "name": "MainAbilityEx", 71 "icon": "$media:icon", 72 "description": "MainAbilityEx", 73 "type": "sys/commonUI", 74 "exported": true, 75 "srcEntry": "./ets/MainAbility/MainAbilityEx.ets", 76 "metadata": [ 77 { 78 "name": "ohos.extension.servicetype", 79 "value": "share" 80 } 81 ] 82 }, 83 { 84 "name": "ViewAbility", 85 "srcEntry": "./ets/ViewAbility/ViewAbility.ets", 86 "icon": "$media:icon", 87 "description": "$string:ViewAbility_desc", 88 "type": "service", 89 "exported": true 90 }, 91 { 92 "name": "DataAbility", 93 "srcEntry": "./ets/DataAbility/DataAbility.ets", 94 "icon": "$media:icon", 95 "description": "$string:ViewAbility_desc", 96 "type": "service" 97 }, 98 { 99 "name": "ServiceExtAbility", 100 "srcEntry": "./ets/serviceExtensionAbility/ServiceExtAbility.ets", 101 "icon": "$media:icon", 102 "description": "service", 103 "type": "service", 104 "exported": false 105 } 106 ], 107 "requestPermissions": [ 108 { 109 "name": "ohos.permission.ACCESS_DLP_FILE" 110 }, 111 { 112 "name": "ohos.permission.MANAGE_LOCAL_ACCOUNTS" 113 }, 114 { 115 "name": "ohos.permission.FILE_ACCESS_MANAGER" 116 }, 117 { 118 "name": "ohos.permission.START_ABILITIES_FROM_BACKGROUND" 119 }, 120 { 121 "name": "ohos.permission.GET_BUNDLE_INFO_PRIVILEGED" 122 }, 123 { 124 "name": "ohos.permission.MEDIA_LOCATION" 125 }, 126 { 127 "name": "ohos.permission.GET_DOMAIN_ACCOUNTS" 128 } 129 ] 130 } 131} 132