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": "SaveAsAbility", 38 "srcEntry": "./ets/Ability/SaveAsAbility.ets", 39 "description": "$string:MainAbility_desc", 40 "icon": "$media:icon", 41 "label": "$string:MainAbility_label", 42 "startWindowIcon": "$media:icon", 43 "startWindowBackground": "$color:white" 44 } 45 ], 46 "extensionAbilities": [ 47 { 48 "name": "DialogUIExtAbility", 49 "icon": "$media:icon", 50 "description": "DialogUIExtAbility", 51 "type": "sys/commonUI", 52 "exported": true, 53 "srcEntry": "./ets/Ability/DialogUIExtAbility.ets" 54 }, 55 { 56 "name": "MainAbilityEx", 57 "icon": "$media:icon", 58 "description": "MainAbilityEx", 59 "type": "sys/commonUI", 60 "exported": true, 61 "srcEntry": "./ets/Ability/MainAbilityEx.ets", 62 "metadata": [ 63 { 64 "name": "ohos.extension.servicetype", 65 "value": "share" 66 } 67 ] 68 }, 69 { 70 "name": "ViewAbility", 71 "srcEntry": "./ets/Ability/ViewAbility.ets", 72 "icon": "$media:icon", 73 "description": "$string:ViewAbility_desc", 74 "type": "service", 75 "exported": false 76 }, 77 { 78 "name": "DataAbility", 79 "srcEntry": "./ets/Ability/DataAbility.ets", 80 "icon": "$media:icon", 81 "description": "$string:ViewAbility_desc", 82 "type": "service" 83 }, 84 { 85 "name": "DlpFileProcessAbility", 86 "srcEntry": "./ets/Ability/DlpFileProcessAbility.ets", 87 "icon": "$media:icon", 88 "description": "service", 89 "type": "service", 90 "exported": false 91 }, 92 { 93 "name": "EncryptedSharingAbility", 94 "srcEntry": "./ets/Ability/EncryptedSharingAbility.ets", 95 "icon": "$media:ic_public_lock", 96 "label": "$string:EncryptedSharing", 97 "description": "service", 98 "type": "action", 99 "extensionProcessMode": "instance", 100 "exported": true 101 }, 102 { 103 "name": "CleanDlpCacheFileAbility", 104 "srcEntry": "./ets/cleanDlpCache/cleanDlpFileInCache.ets", 105 "icon": "$media:icon", 106 "label": "$string:EncryptedSharing", 107 "description": "clean dlp file cache", 108 "type": "service", 109 "extensionProcessMode": "instance", 110 "exported": true, 111 "permissions": [ 112 "ohos.permission.START_DLP_CRED" 113 ] 114 }, 115 { 116 "name": "OpeningDialogUIExtAbility", 117 "icon": "$media:icon", 118 "description": "OpeningDialogUIExtAbility", 119 "type": "sys/commonUI", 120 "exported": true, 121 "srcEntry": "./ets/Ability/OpeningDialogUIExtAbility.ets" 122 }, 123 { 124 "name": "PhoneDialogUIExtAbility", 125 "icon": "$media:icon", 126 "description": "PhoneDialogUIExtAbility", 127 "type": "sys/commonUI", 128 "exported": true, 129 "srcEntry": "./ets/Ability/PhoneDialogUIExtAbility.ets" 130 } 131 ], 132 "requestPermissions": [ 133 { 134 "name": "ohos.permission.ACCESS_DLP_FILE" 135 }, 136 { 137 "name": "ohos.permission.GET_LOCAL_ACCOUNTS" 138 }, 139 { 140 "name": "ohos.permission.START_ABILITIES_FROM_BACKGROUND" 141 }, 142 { 143 "name": "ohos.permission.GET_BUNDLE_INFO" 144 }, 145 { 146 "name": "ohos.permission.GET_NETWORK_INFO" 147 }, 148 { 149 "name": "ohos.permission.START_DLP_CRED" 150 }, 151 { 152 "name": "ohos.permission.START_SYSTEM_DIALOG" 153 }, 154 { 155 "name": "ohos.permission.EXEMPT_PRIVACY_SECURITY_CENTER" 156 } 157 ] 158 } 159} 160