1/**
2 * Copyright (c) 2022-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  "module": {
17    "name": "CertManager",
18    "type": "feature",
19    "description": "$string:mainability_description",
20    "mainElement": "MainAbility",
21    "deviceTypes": [
22      "default"
23    ],
24    "metadata": [
25      {
26        "name": "ArkTSPartialUpdate",
27        "value": "true"
28      },
29      {
30        "name": "partialUpdateStrictCheck",
31        "value": "all"
32      }
33    ],
34    "deliveryWithInstall": true,
35    "installationFree": false,
36    "pages": "$profile:main_pages",
37    "abilities": [
38      {
39        "name": "MainAbility",
40        "srcEntry": "./ets/MainAbility/MainAbility.ts",
41        "description": "$string:mainability_description",
42        "icon": "$media:icon",
43        "label": "$string:entry_MainAbility",
44        "exported": true,
45        "launchType": "singleton",
46        "startWindowIcon": "$media:icon",
47        "startWindowBackground": "$color:color_1",
48        "orientation": "auto_rotation_restricted",
49        "skills": [
50          {
51            "entities": [
52              "entity.system.home"
53            ],
54            "actions": [
55              "action.system.home"
56            ]
57          }
58        ]
59      }
60    ],
61    "extensionAbilities": [
62      {
63        "name": "MainExtensionAbility",
64        "srcEntry": "./ets/MainAbility/MainExtensionAbility.ts",
65        "description": "$string:mainability_description",
66        "icon": "$media:icon",
67        "label": "$string:entry_MainAbility",
68        "exported": true,
69        "permissions": ['ohos.permission.ACCESS_CERT_MANAGER'],
70        "type": "sys/commonUI",
71        "skills": [
72          {
73            "entities": [
74              "entity.system.home"
75            ],
76            "actions": [
77              "action.system.home",
78              "action.access.privacy.center",
79              "ohos.want.action.viewData"
80            ]
81          }
82        ],
83        "metadata": [
84          {
85            "name": 'metadata.access.privacy.center',
86            "value": 'security_privacy.json'
87          }
88        ]
89      },
90      {
91        "name": "CertPickerUIExtAbility",
92        "srcEntry": "./ets/MainAbility/CertPickerUiExtAbility.ets",
93        "exported": true,
94        "permissions": ['ohos.permission.ACCESS_CERT_MANAGER'],
95        "type": "sys/commonUI"
96      }
97    ],
98    "requestPermissions": [
99      {
100        "name": "ohos.permission.GET_BUNDLE_INFO"
101      },
102      {
103        "name": "ohos.permission.ACCESS_CERT_MANAGER_INTERNAL"
104      },
105      {
106        "name": "ohos.permission.ACCESS_CERT_MANAGER"
107      },
108      {
109        "name": "ohos.permission.GET_BUNDLE_RESOURCES"
110      },
111      {
112        "name": "ohos.permission.ACCESS_SECURITY_PRIVACY_CENTER"
113      },
114      {
115        "name": "ohos.permission.ACCESS_BIOMETRIC"
116      },
117      {
118        "name": "ohos.permission.PRIVACY_WINDOW"
119      },
120      {
121        "name": "ohos.permission.ACCESS_SYSTEM_APP_CERT"
122      },
123      {
124        "name": "ohos.permission.ACCESS_USER_TRUSTED_CERT"
125      },
126      {
127        "name": "ohos.permission.GET_BUNDLE_INFO_PRIVILEGED"
128      }
129    ]
130  }
131}