1/* 2 * Copyright (c) 2025 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": "entry", 18 "type": "entry", 19 "description": "$string:module_desc", 20 "mainElement": "EntryAbility", 21 "deviceTypes": [ 22 "phone", 23 "tablet", 24 "2in1" 25 ], 26 "deliveryWithInstall": true, 27 "installationFree": false, 28 "pages": "$profile:main_pages", 29 "abilities": [ 30 { 31 "name": "EntryAbility", 32 "srcEntry": "./ets/entryability/EntryAbility.ts", 33 "description": "$string:EntryAbility_desc", 34 "icon": "$media:layered_image", 35 "label": "$string:EntryAbility_label", 36 "startWindowIcon": "$media:startIcon", 37 "startWindowBackground": "$color:start_window_background", 38 "exported": true, 39 "skills": [ 40 { 41 "entities": [ 42 "entity.system.home" 43 ], 44 "actions": [ 45 "action.system.home" 46 ] 47 } 48 ] 49 } 50 ], 51 "requestPermissions": [ 52 { 53 "name": 'ohos.permission.DISTRIBUTED_DATASYNC', 54 "reason": "$string:reason", 55 "usedScene": { 56 "abilities": [ 57 "EntryAbility" 58 ], 59 "when": "inuse" 60 } 61 }, 62 { 63 "name": 'ohos.permission.USE_BLUETOOTH', 64 "reason": '$string:reason' 65 }, 66 { 67 "name": 'ohos.permission.DISCOVER_BLUETOOTH', 68 "reason": '$string:reason' 69 }, 70 { 71 "name": "ohos.permission.MEDIA_LOCATION", 72 "reason": "$string:reason", 73 "usedScene": { 74 "abilities": [ 75 "EntryAbility" 76 ], 77 "when": "inuse" 78 } 79 }, 80 { 81 "name": "ohos.permission.READ_MEDIA", 82 "reason": "$string:reason", 83 "usedScene": { 84 "abilities": [ 85 "EntryAbility" 86 ], 87 "when": "inuse" 88 } 89 }, 90 { 91 "name": "ohos.permission.WRITE_MEDIA", 92 "reason": "$string:reason", 93 "usedScene": { 94 "abilities": [ 95 "EntryAbility" 96 ], 97 "when": "inuse" 98 } 99 }, 100 { 101 "name": "ohos.permission.CAMERA", 102 "reason": "$string:reason", 103 "usedScene": { 104 "abilities": [ 105 "EntryAbility" 106 ], 107 "when": "inuse" 108 } 109 }, 110 { 111 "name": "ohos.permission.MICROPHONE", 112 "reason": "$string:reason", 113 "usedScene": { 114 "abilities": [ 115 "EntryAbility" 116 ], 117 "when": "inuse" 118 } 119 } 120 ], 121 "extensionAbilities": [ 122 { 123 "name": "EntryBackupAbility", 124 "srcEntry": "./ets/entrybackupability/EntryBackupAbility.ets", 125 "type": "backup", 126 "exported": false, 127 "metadata": [ 128 { 129 "name": "ohos.extension.backup", 130 "resource": "$profile:backup_config" 131 } 132 ], 133 } 134 ], 135 "deliveryWithInstall": true 136 } 137}