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