1/** 2 * Copyright (c) 2022 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": "callui", 19 "type": "entry", 20 "srcEntrance": "./ets/Application/MyAbilityStage.ts", 21 "description": "$string:callui_description", 22 "mainElement": "com.ohos.callui.ServiceAbility", 23 "deviceTypes": [ 24 "default", 25 "tablet" 26 ], 27 "deliveryWithInstall": true, 28 "installationFree": false, 29 "pages": "$profile:main_pages", 30 "metadata": [ 31 { 32 "name": "ArkTSPartialUpdate", 33 "value": "false" 34 } 35 ], 36 "uiSyntax": "ets", 37 "abilities": [ 38 { 39 "name": "com.ohos.callui.MainAbility", 40 "srcEntrance": "./ets/MainAbility/MainAbility.ts", 41 "description": "$string:callui_description", 42 "icon": "$media:app_icon", 43 "label": "$string:callui_description", 44 "startWindowIcon": "$media:app_icon", 45 "startWindowBackground": "$color:black", 46 "removeMissionAfterTerminate": true, 47 "visible": true, 48 "minWindowHeight": 700, 49 "minWindowWidth": 320, 50 "skills": [ 51 { 52 "entities": [ 53 "entity.system.home" 54 ], 55 "actions": [ 56 "action.system.home" 57 ] 58 } 59 ], 60 "backgroundModes": [ 61 "voip" 62 ] 63 } 64 ], 65 "extensionAbilities": [ 66 { 67 "name": "com.ohos.callui.ServiceAbility", 68 "icon": "$media:app_icon", 69 "description": "service", 70 "type": "service", 71 "visible": true, 72 "srcEntrance": "./ets/ServiceAbility/ServiceAbility.ts", 73 "label": "$string:callui_description" 74 } 75 ], 76 "requestPermissions": [ 77 { 78 "name": "ohos.permission.READ_CONTACTS" 79 }, 80 { 81 "name": "ohos.permission.SEND_MESSAGES" 82 }, 83 { 84 "name": "ohos.permission.GET_BUNDLE_INFO_PRIVILEGED" 85 }, 86 { 87 "name": "ohos.permission.GET_TELEPHONY_STATE" 88 }, 89 { 90 "name": "ohos.permission.NOTIFICATION_CONTROLLER" 91 }, 92 { 93 "name": "ohos.permission.START_ABILITIES_FROM_BACKGROUND" 94 }, 95 { 96 "name": "ohos.permission.KEEP_BACKGROUND_RUNNING" 97 }, 98 { 99 "name": "ohos.permission.ANSWER_CALL" 100 } 101 ] 102 } 103}