• 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": "$string:permissionmanager_desc",
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": "$string:MainAbility_desc",
43                "icon": "$media:app_icon",
44                "label": "$string:MainAbility_label",
45                "exported": false,
46                "launchType": "singleton",
47                "orientation": "auto_rotation_restricted"
48            }
49        ],
50        "extensionAbilities": [
51            {
52                "icon": "$media:app_icon",
53                "name": "com.ohos.permissionmanager.GrantAbility",
54                "srcEntry": "./ets/ServiceExtAbility/ServiceExtAbility.ts",
55                "type": "service",
56                "exported": true
57            },
58            {
59                "icon": "$media:app_icon",
60                "name": "com.ohos.permissionmanager.GlobalExtAbility",
61                "srcEntry": "./ets/GlobalExtAbility/GlobalExtAbility.ts",
62                "type": "service",
63                "exported": true,
64                "permissions": ["ohos.permission.GET_SENSITIVE_PERMISSIONS"]
65            },
66            {
67                "icon": "$media:icon",
68                "name": "com.ohos.permissionmanager.SecurityExtAbility",
69                "srcEntry": "./ets/SecurityExtAbility/SecurityExtAbility.ts",
70                "type": "service",
71                "exported": true,
72                "permissions": ["ohos.permission.GET_SENSITIVE_PERMISSIONS"]
73            }
74        ],
75        "requestPermissions": [
76            {
77                "name": "ohos.permission.GET_SENSITIVE_PERMISSIONS"
78            },
79            {
80                "name": "ohos.permission.GRANT_SENSITIVE_PERMISSIONS"
81            },
82            {
83                "name": "ohos.permission.REVOKE_SENSITIVE_PERMISSIONS"
84            },
85            {
86                "name": "ohos.permission.GET_BUNDLE_INFO_PRIVILEGED"
87            },
88            {
89                "name": "ohos.permission.GET_BUNDLE_INFO"
90            },
91            {
92                "name": "ohos.permission.PERMISSION_USED_STATS"
93            },
94            {
95                "name": "ohos.permission.MANAGE_AUDIO_CONFIG"
96            },
97            {
98                "name": "ohos.permission.MANAGE_CAMERA_CONFIG"
99            },
100            {
101                "name": "ohos.permission.GET_INSTALLED_BUNDLE_LIST"
102            },
103            {
104                "name": "ohos.permission.LISTEN_BUNDLE_CHANGE"
105            },
106            {
107                "name": "ohos.permission.ACCESS_BUNDLE_DIR"
108            }
109        ]
110    }
111}
112