1/* 2 * Copyright (c) 2022 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": "entry", 19 "type": "entry", 20 "srcEntry": "./ets/Application/AbilityStage.ts", 21 "description": "$string:entry_desc", 22 "mainElement": "MainAbility", 23 "deviceTypes": [ 24 "default", 25 "tablet" 26 ], 27 "deliveryWithInstall": true, 28 "installationFree": false, 29 "pages": "$profile:main_pages", 30 "uiSyntax": "ets", 31 "abilities": [ 32 { 33 "name": "MainAbility", 34 "srcEntrance": "./ets/MainAbility/MainAbility.ts", 35 "description": "$string:MainAbility_desc", 36 "icon": "$media:icon", 37 "label": "$string:MainAbility_label", 38 "visible": true, 39 "launchType": "singleton", 40 "startWindowIcon": "$media:icon", 41 "startWindowBackground": "$color:white", 42 "skills": [ 43 { 44 "entities": [ 45 "entity.system.home" 46 ], 47 "actions": [ 48 "action.system.home" 49 ] 50 } 51 ] 52 } 53 ], 54 "requestPermissions": [ 55 { 56 "name": "ohos.permission.CAMERA", 57 "reason": "$string:camera_permission", 58 "usedScene": { 59 "abilities": [ 60 "MainAbility" 61 ], 62 "when": "always" 63 } 64 }, 65 { 66 "name": "ohos.permission.MICROPHONE", 67 "reason": "$string:microphone_permission", 68 "usedScene": { 69 "abilities": [ 70 "MainAbility" 71 ], 72 "when": "always" 73 } 74 }, 75 { 76 "name": "ohos.permission.READ_AUDIO", 77 "reason": "$string:media_location_permission", 78 "usedScene": { 79 "abilities": [ 80 "MainAbility" 81 ], 82 "when": "always" 83 } 84 }, 85 { 86 "name": "ohos.permission.WRITE_AUDIO", 87 "reason": "$string:media_location_permission", 88 "usedScene": { 89 "abilities": [ 90 "MainAbility" 91 ], 92 "when": "always" 93 } 94 }, 95 { 96 "name": "ohos.permission.MEDIA_LOCATION", 97 "reason": "$string:media_location_permission", 98 "usedScene": { 99 "abilities": [ 100 "MainAbility" 101 ], 102 "when": "always" 103 } 104 }, 105 { 106 "name": "ohos.permission.WRITE_IMAGEVIDEO", 107 "reason": "$string:write_permission", 108 "usedScene": { 109 "abilities": [ 110 "MainAbility" 111 ], 112 "when": "always" 113 } 114 }, 115 { 116 "name": "ohos.permission.READ_IMAGEVIDEO", 117 "reason": "$string:read_permission", 118 "usedScene": { 119 "abilities": [ 120 "MainAbility" 121 ], 122 "when": "always" 123 } 124 }, { 125 "name" : "ohos.permission.FILE_ACCESS_MANAGER", 126 "reason": "$string:read_permission", 127 "usedScene": { 128 "abilities": [ 129 "MainAbility" 130 ], 131 "when":"always" 132 } 133 }, 134 { 135 "name" : "ohos.permission.GET_BUNDLE_INFO_PRIVILEGED", 136 "reason": "$string:read_permission", 137 "usedScene": { 138 "abilities": [ 139 "MainAbility" 140 ], 141 "when":"always" 142 } 143 } 144 ] 145 } 146} 147