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{ 17 "module": { 18 "name": "permissionmanager", 19 "type": "feature", 20 "srcEntry": "./ets/Application/AbilityStage.ts", 21 "description": "$string:permissionmanager_desc", 22 "mainElement": "MainAbility", 23 "deviceTypes": [ 24 "default", 25 "tablet", 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 "abilities": [ 38 { 39 "name": "com.ohos.permissionmanager.MainAbility", 40 "startWindowBackground": "$color:default_background_color", 41 "startWindowIcon": "$media:app_icon", 42 "srcEntry": "./ets/MainAbility/MainAbility.ts", 43 "description": "$string:MainAbility_desc", 44 "icon": "$media:app_icon", 45 "label": "$string:MainAbility_label", 46 "exported": false, 47 "launchType": "singleton", 48 "orientation": "auto_rotation_restricted" 49 } 50 ], 51 "extensionAbilities": [ 52 { 53 "icon": "$media:app_icon", 54 "name": "com.ohos.permissionmanager.GrantAbility", 55 "srcEntry": "./ets/ServiceExtAbility/ServiceExtAbility.ts", 56 "type": "service", 57 "exported": true 58 }, 59 { 60 "icon": "$media:app_icon", 61 "name": "com.ohos.permissionmanager.GlobalExtAbility", 62 "srcEntry": "./ets/GlobalExtAbility/GlobalExtAbility.ts", 63 "type": "service", 64 "exported": true 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 } 73 ], 74 "requestPermissions": [ 75 { 76 "name": "ohos.permission.GET_SENSITIVE_PERMISSIONS" 77 }, 78 { 79 "name": "ohos.permission.GRANT_SENSITIVE_PERMISSIONS" 80 }, 81 { 82 "name": "ohos.permission.REVOKE_SENSITIVE_PERMISSIONS" 83 }, 84 { 85 "name": "ohos.permission.GET_BUNDLE_INFO_PRIVILEGED" 86 }, 87 { 88 "name": "ohos.permission.GET_BUNDLE_INFO" 89 }, 90 { 91 "name": "ohos.permission.PERMISSION_USED_STATS" 92 }, 93 { 94 "name": "ohos.permission.MANAGE_AUDIO_CONFIG" 95 }, 96 { 97 "name": "ohos.permission.MANAGE_CAMERA_CONFIG" 98 }, 99 { 100 "name": "ohos.permission.GET_INSTALLED_BUNDLE_LIST" 101 } 102 ] 103 } 104} 105