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{ 17 "module": { 18 "name": "phone", 19 "type": "feature", 20 "srcEntry": "./ets/Application/AbilityStage.ts", 21 "description": "$string:phone_entry_dsc", 22 "mainElement": "MainAbility", 23 "deviceTypes": [], 24 "deliveryWithInstall": true, 25 "installationFree": false, 26 "pages": "$profile:test_pages", 27 "metadata": [ 28 { 29 "name": "ArkTSPartialUpdate", 30 "value": "true" 31 } 32 ], 33 "requestPermissions": [ 34 { 35 "name": "ohos.permission.MANAGE_LOCAL_ACCOUNTS" 36 }, 37 { 38 "name": "ohos.permission.ACCESS_DLP_FILE" 39 }, 40 { 41 "name": "ohos.permission.MANAGE_DISTRIBUTED_ACCOUNTS" 42 }, 43 { 44 "name": "ohos.permission.START_ABILIIES_FROM_BACKGROUND" 45 } 46 ], 47 "abilities": [ 48 { 49 "name": "com.ohos.dlp_xts.MainAbility", 50 "srcEntry": "./ets/MainAbility/MainAbility.ts", 51 "description": "$string:phone_entry_main", 52 "icon": "$media:icon", 53 "label": "$string:entry_label", 54 "visible": true, 55 "orientation": "portrait", 56 "skills": [ 57 { 58 "actions": [ 59 "action.system.home" 60 ], 61 "entities": [ 62 "entity.system.home" 63 ] 64 } 65 ], 66 "startWindowIcon": "$media:icon", 67 "startWindowBackground": "$color:start_window_background" 68 }, 69 { 70 "name": "IsInSandboxPromise", 71 "srcEntry": "./ets/isinsandboxpromise/IsInSandboxPromise.ets", 72 "description": "$string:IsInSandboxPromise_desc", 73 "icon": "$media:icon", 74 "label": "$string:IsInSandboxPromise_label", 75 "visible": true, 76 "orientation": "portrait", 77 "startWindowIcon": "$media:icon", 78 "startWindowBackground": "$color:start_window_background" 79 }, 80 { 81 "name": "IsInSandboxCallback", 82 "srcEntry": "./ets/isinsandboxcallback/IsInSandboxCallback.ets", 83 "description": "$string:IsInSandboxCallback_desc", 84 "icon": "$media:icon", 85 "label": "$string:IsInSandboxCallback_label", 86 "visible": true, 87 "startWindowIcon": "$media:icon", 88 "startWindowBackground": "$color:start_window_background" 89 }, 90 { 91 "name": "GetDLPPermissionInfoPromise", 92 "srcEntry": "./ets/getdlppermissioninfopromise/GetDLPPermissionInfoPromise.ets", 93 "description": "$string:GetDLPPermissionInfoPromise_desc", 94 "icon": "$media:icon", 95 "label": "$string:GetDLPPermissionInfoPromise_label", 96 "visible": true, 97 "startWindowIcon": "$media:icon", 98 "startWindowBackground": "$color:start_window_background" 99 }, 100 { 101 "name": "GetDLPPermissionInfoCallback", 102 "srcEntry": "./ets/getdlppermissioninfocallback/GetDLPPermissionInfoCallback.ets", 103 "description": "$string:GetDLPPermissionInfoCallback_desc", 104 "icon": "$media:icon", 105 "label": "$string:GetDLPPermissionInfoCallback_label", 106 "visible": true, 107 "startWindowIcon": "$media:icon", 108 "startWindowBackground": "$color:start_window_background" 109 }, 110 { 111 "name": "OnOpenDlpFile", 112 "srcEntry": "./ets/onopendlpfile/OnOpenDlpFile.ets", 113 "description": "$string:OnOpenDlpFile_desc", 114 "icon": "$media:icon", 115 "label": "$string:OnOpenDlpFile_label", 116 "visible": true, 117 "startWindowIcon": "$media:icon", 118 "startWindowBackground": "$color:start_window_background" 119 }, 120 { 121 "name": "GetDLPFileAccessRecordsCallback", 122 "srcEntry": "./ets/getDLPFileAccessRecordscallback/GetDLPFileAccessRecordsCallback.ets", 123 "description": "$string:GetDLPFileAccessRecordsCallback_desc", 124 "icon": "$media:icon", 125 "label": "$string:GetDLPFileAccessRecordsCallback_label", 126 "visible": true, 127 "startWindowIcon": "$media:icon", 128 "startWindowBackground": "$color:start_window_background" 129 }, 130 { 131 "name": "GetDLPFileAccessRecordsPromise", 132 "srcEntry": "./ets/getDLPFileAccessRecordspromise/GetDLPFileAccessRecordsPromise.ets", 133 "description": "$string:GetDLPFileAccessRecordsPromise_desc", 134 "icon": "$media:icon", 135 "label": "$string:GetDLPFileAccessRecordsPromise_label", 136 "visible": true, 137 "startWindowIcon": "$media:icon", 138 "startWindowBackground": "$color:start_window_background" 139 }, 140 { 141 "name": "GetRetentionSandboxListCallback", 142 "srcEntry": "./ets/getRetentionSandboxListcallback/GetRetentionSandboxListCallback.ets", 143 "description": "$string:GetRetentionSandboxListCallback_desc", 144 "icon": "$media:icon", 145 "label": "$string:GetRetentionSandboxListCallback_label", 146 "visible": true, 147 "startWindowIcon": "$media:icon", 148 "startWindowBackground": "$color:start_window_background" 149 }, 150 { 151 "name": "GetRetentionSandboxListPromise", 152 "srcEntry": "./ets/getRetentionSandboxListpromise/GetRetentionSandboxListPromise.ets", 153 "description": "$string:GetRetentionSandboxListPromise_desc", 154 "icon": "$media:icon", 155 "label": "$string:GetRetentionSandboxListPromise_label", 156 "visible": true, 157 "startWindowIcon": "$media:icon", 158 "startWindowBackground": "$color:start_window_background" 159 }, 160 { 161 "name": "SandboxConfigPromise", 162 "srcEntry": "./ets/sandboxconfigpromise/SandboxConfigPromise.ets", 163 "description": "$string:SandboxConfigPromise_desc", 164 "icon": "$media:icon", 165 "label": "$string:SandboxConfigPromise_label", 166 "visible": true, 167 "startWindowIcon": "$media:icon", 168 "startWindowBackground": "$color:start_window_background" 169 }, 170 { 171 "name": "SetRetentionStateCallback", 172 "srcEntry": "./ets/setRetentionStatecallback/SetRetentionStateCallback.ets", 173 "description": "$string:SetRetentionStateCallback_desc", 174 "icon": "$media:icon", 175 "label": "$string:SetRetentionStateCallback_label", 176 "visible": true, 177 "startWindowIcon": "$media:icon", 178 "startWindowBackground": "$color:start_window_background" 179 }, 180 { 181 "name": "SetRetentionStatePromise", 182 "srcEntry": "./ets/setRetentionStatepromise/SetRetentionStatePromise.ets", 183 "description": "$string:SetRetentionStatePromise_desc", 184 "icon": "$media:icon", 185 "label": "$string:SetRetentionStatePromise_label", 186 "visible": true, 187 "startWindowIcon": "$media:icon", 188 "startWindowBackground": "$color:start_window_background" 189 } 190 ] 191 } 192}