• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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    "srcEntry": "./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        "srcEntry": "./ets/MainAbility/MainAbility.ts",
41        "description": "$string:callui_description",
42        "icon": "$media:app_icon",
43        "label": "$string:callui_description",
44        "supportWindowMode": ["fullscreen", "floating"],
45        "startWindowIcon": "$media:app_start_window_icon",
46        "startWindowBackground": "$color:black",
47        "removeMissionAfterTerminate": true,
48        "visible": false,
49        "minWindowHeight": 700,
50        "minWindowWidth": 320,
51        "skills": [
52          {
53            "entities": [
54              "entity.system.home"
55            ],
56            "actions": [
57              "action.system.home"
58            ]
59          }
60        ],
61        "backgroundModes": [
62          "voip"
63        ]
64      }
65    ],
66    "extensionAbilities": [
67      {
68        "name": "com.ohos.callui.ServiceAbility",
69        "icon": "$media:app_icon",
70        "description": "service",
71        "type": "service",
72        "visible": true,
73        "srcEntrance": "./ets/ServiceAbility/ServiceAbility.ts",
74        "label": "$string:callui_description",
75        "permissions": [
76          "ohos.permission.PLACE_CALL"
77        ],
78      }
79    ],
80    "requestPermissions": [
81      {
82        "name": "ohos.permission.READ_CONTACTS",
83        "reason": "$string:READ_CONTACTS"
84      },
85      {
86        "name": "ohos.permission.SEND_MESSAGES",
87        "reason": "$string:SEND_MESSAGES"
88      },
89      {
90        "name": "ohos.permission.GET_BUNDLE_INFO_PRIVILEGED",
91        "reason": "$string:GET_BUNDLE_INFO_PRIVILEGED"
92      },
93      {
94        "name": "ohos.permission.GET_TELEPHONY_STATE",
95        "reason": "$string:GET_TELEPHONY_STATE"
96      },
97      {
98        "name": "ohos.permission.NOTIFICATION_CONTROLLER",
99        "reason": "$string:NOTIFICATION_CONTROLLER"
100      },
101      {
102        "name": "ohos.permission.START_ABILITIES_FROM_BACKGROUND",
103        "reason": "$string:START_ABILITIES_FROM_BACKGROUND"
104      },
105      {
106        "name": "ohos.permission.KEEP_BACKGROUND_RUNNING",
107        "reason": "$string:KEEP_BACKGROUND_RUNNING"
108      },
109      {
110        "name": "ohos.permission.ANSWER_CALL",
111        "reason": "$string:ANSWER_CALL"
112      },
113      {
114        "name": "ohos.permission.VIBRATE",
115        "reason": "$string:VIBRATE"
116      },
117      {
118        "name": "ohos.permission.SET_TELEPHONY_STATE",
119        "reason": "$string:SET_TELEPHONY_STATE"
120      },
121      {
122        "name": "ohos.permission.ACCELEROMETER",
123        "reason": "$string:ACCELEROMETER"
124      },
125      {
126        "name": "ohos.permission.MANAGE_SECURE_SETTINGS",
127        "reason": "$string:MANAGE_SECURE_SETTINGS"
128      },
129      {
130        "name": "ohos.permission.PLACE_CALL",
131        "reason": "$string:PLACE_CALL"
132      },
133      {
134        "name": "ohos.permission.RUNNING_LOCK",
135        "reason": "$string:RUNNING_LOCK"
136      }
137    ]
138  }
139}