1/*
2 * Copyright (c) 2023 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": "permissionmanager",
18        "type": "feature",
19        "srcEntry": "./ets/Application/AbilityStage.ts",
20        "description": "PermissionManager",
21        "mainElement": "MainAbility",
22        "deviceTypes": [
23            "default",
24            "tablet",
25            "2in1"
26        ],
27        "deliveryWithInstall": true,
28        "installationFree": false,
29        "pages": "$profile:main_pages",
30        "metadata": [
31            {
32              "name": "ArkTSPartialUpdate",
33              "value": "true"
34            }
35          ],
36        "abilities": [
37            {
38                "name": "com.ohos.permissionmanager.MainAbility",
39                "startWindowBackground": "$color:default_background_color",
40                "startWindowIcon": "$media:app_icon",
41                "srcEntry": "./ets/MainAbility/MainAbility.ts",
42                "description": "manage the permissions of all applications from the permission and application dimensions",
43                "icon": "$media:app_icon",
44                "label": "$string:permission_manager",
45                "exported": true,
46                "launchType": "singleton",
47                "orientation": "auto_rotation_restricted",
48                "permissions": ["ohos.permission.ACCESS_SECURITY_PRIVACY_CENTER"],
49                "skills": [
50                    {
51                        "actions": ["action.access.privacy.center"]
52                    }
53                ],
54                "metadata": [
55                    {
56                        "name": "metadata.access.privacy.center",
57                        "value": "security_privacy.json"
58                    }
59                ]
60            }
61        ],
62        "extensionAbilities": [
63            {
64                "icon": "$media:app_icon",
65                "name": "com.ohos.permissionmanager.GrantAbility",
66                "srcEntry": "./ets/ServiceExtAbility/ServiceExtAbility.ts",
67                "type": "service",
68                "exported": true
69            },
70            {
71                "icon": "$media:app_icon",
72                "name": "com.ohos.permissionmanager.GlobalExtAbility",
73                "srcEntry": "./ets/GlobalExtAbility/GlobalExtAbility.ts",
74                "type": "service",
75                "exported": true,
76                "permissions": ["ohos.permission.GET_SENSITIVE_PERMISSIONS"]
77            },
78            {
79                "icon": "$media:icon",
80                "name": "com.ohos.permissionmanager.SecurityExtAbility",
81                "srcEntry": "./ets/SecurityExtAbility/SecurityExtAbility.ts",
82                "type": "service",
83                "exported": true,
84                "permissions": ["ohos.permission.GET_SENSITIVE_PERMISSIONS"]
85            },
86            {
87                "icon": "$media:icon",
88                "name": "com.ohos.permissionmanager.PermissionStateSheetAbility",
89                "srcEntry": "./ets/PermissionSheet/PermissionStateSheetAbility.ets",
90                "type": "sys/commonUI",
91                "exported": true
92            },
93            {
94                "icon": "$media:icon",
95                "name": "com.ohos.permissionmanager.GlobalSwitchSheetAbility",
96                "srcEntry": "./ets/PermissionSheet/GlobalSwitchSheetAbility.ets",
97                "type": "sys/commonUI",
98                "exported": true
99            }
100        ],
101        "requestPermissions": [
102            {
103                "name": "ohos.permission.GET_SENSITIVE_PERMISSIONS"
104            },
105            {
106                "name": "ohos.permission.GRANT_SENSITIVE_PERMISSIONS"
107            },
108            {
109                "name": "ohos.permission.REVOKE_SENSITIVE_PERMISSIONS"
110            },
111            {
112                "name": "ohos.permission.GET_BUNDLE_INFO"
113            },
114            {
115                "name": "ohos.permission.PERMISSION_USED_STATS"
116            },
117            {
118                "name": "ohos.permission.GET_INSTALLED_BUNDLE_LIST"
119            },
120            {
121                "name": "ohos.permission.LISTEN_BUNDLE_CHANGE"
122            },
123            {
124                "name": "ohos.permission.ACCESS_BUNDLE_DIR"
125            },
126            {
127                "name": "ohos.permission.ACCESS_SECURITY_PRIVACY_CENTER"
128            },
129            {
130                "name": "ohos.permission.MICROPHONE_CONTROL"
131            },
132            {
133                "name": "ohos.permission.CAMERA_CONTROL"
134            }
135        ]
136    }
137}