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:app_icon", 41 "label": "$string:MainAbility_label", 42 "startWindowIcon": "$media:icon", 43 "startWindowBackground": "$color:white", 44 "excludeFromMissions": true, 45 "exported": true, 46 "removeMissionAfterTerminate": true 47 }, 48 { 49 "name": "SaveAsAbility", 50 "srcEntry": "./ets/SaveAsAbility/SaveAsAbility.ets", 51 "description": "$string:MainAbility_desc", 52 "icon": "$media:icon", 53 "label": "$string:MainAbility_label", 54 "startWindowIcon": "$media:icon", 55 "startWindowBackground": "$color:white" 56 } 57 ], 58 "extensionAbilities": [ 59 { 60 "name": "MainAbilityEx", 61 "icon": "$media:icon", 62 "description": "MainAbilityEx", 63 "type": "sys/commonUI", 64 "exported": true, 65 "srcEntry": "./ets/MainAbility/MainAbilityEx.ets", 66 "metadata": [ 67 { 68 "name": "ohos.extension.servicetype", 69 "value": "share" 70 } 71 ] 72 }, 73 { 74 "name": "ViewAbility", 75 "srcEntry": "./ets/ViewAbility/ViewAbility.ets", 76 "icon": "$media:icon", 77 "description": "$string:ViewAbility_desc", 78 "type": "service", 79 "exported": false 80 }, 81 { 82 "name": "DataAbility", 83 "srcEntry": "./ets/DataAbility/DataAbility.ets", 84 "icon": "$media:icon", 85 "description": "$string:ViewAbility_desc", 86 "type": "service" 87 }, 88 { 89 "name": "ServiceExtAbility", 90 "srcEntry": "./ets/serviceExtensionAbility/ServiceExtAbility.ets", 91 "icon": "$media:icon", 92 "description": "service", 93 "type": "service", 94 "exported": false 95 }, 96 { 97 "name": "EncryptedSharingAbility", 98 "srcEntry": "./ets/EncryptedSharingAbility/EncryptedSharingAbility.ets", 99 "icon": "$media:ic_public_lock", 100 "label": "$string:EncryptedSharing", 101 "description": "service", 102 "type": "action", 103 "extensionProcessMode": "instance", 104 "exported": true 105 } 106 ], 107 "requestPermissions": [ 108 { 109 "name": "ohos.permission.ACCESS_DLP_FILE" 110 }, 111 { 112 "name": "ohos.permission.GET_LOCAL_ACCOUNTS" 113 }, 114 { 115 "name": "ohos.permission.START_ABILITIES_FROM_BACKGROUND" 116 }, 117 { 118 "name": "ohos.permission.GET_BUNDLE_INFO" 119 }, 120 { 121 "name": "ohos.permission.GET_DOMAIN_ACCOUNTS" 122 }, 123 { 124 "name": "ohos.permission.GET_NETWORK_INFO" 125 }, 126 { 127 "name": "ohos.permission.START_DLP_CRED" 128 }, 129 { 130 "name": "ohos.permission.START_SYSTEM_DIALOG" 131 }, 132 { 133 "name": "ohos.permission.EXEMPT_PRIVACY_SECURITY_CENTER" 134 } 135 ] 136 } 137} 138