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