1/* 2 * Copyright (c) 2023 Shenzhen Kaihong Digital Industry Development 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 "default" 23 ], 24 "deliveryWithInstall": true, 25 "installationFree": false, 26 "pages": "$profile:main_pages", 27 "abilities": [ 28 { 29 "name": "EntryAbility", 30 "srcEntry": "./ets/entryability/EntryAbility.ets", 31 "description": "$string:EntryAbility_desc", 32 "icon": "$media:icon", 33 "label": "$string:EntryAbility_label", 34 "startWindowIcon": "$media:startIcon", 35 "startWindowBackground": "$color:start_window_background", 36 "exported": true, 37 "launchType": "singleton", 38 "skills": [ 39 { 40 "entities": [ 41 "entity.system.home" 42 ], 43 "actions": [ 44 "action.system.home", 45 "ohos.want.action.viewData", 46 "ohos.want.action.editData" 47 ] 48 } 49 ] 50 }, 51 { 52 "name": "FuncAbility", 53 "srcEntry": "./ets/entryability/FuncAbility.ets", 54 "description": "$string:EntryAbility_desc", 55 "icon": "$media:icon", 56 "label": "$string:EntryAbility_label", 57 "startWindowIcon": "$media:startIcon", 58 "startWindowBackground": "$color:start_window_background", 59 "exported": true, 60 "launchType": "singleton", 61 "skills": [ 62 { 63 "actions": [ 64 "ohos.want.action.viewData", 65 "ohos.want.action.editData" 66 ] 67 } 68 ] 69 } 70 ], 71 "requestPermissions":[ 72 { 73 "name": "ohos.permission.MEDIA_LOCATION", 74 "reason": "$string:read_permission", 75 "usedScene": { 76 "abilities": [ 77 "EntryAbility" 78 ], 79 "when": "always" 80 } 81 }, 82 { 83 "name": "ohos.permission.READ_MEDIA", 84 "reason": "$string:read_permission", 85 "usedScene": { 86 "abilities": [ 87 "EntryAbility" 88 ], 89 "when": "always" 90 } 91 }, 92 { 93 "name": "ohos.permission.WRITE_MEDIA", 94 "reason": "$string:write_permission", 95 "usedScene": { 96 "abilities": [ 97 "EntryAbility" 98 ], 99 "when": "always" 100 } 101 }, 102 { 103 "name" : "ohos.permission.FILE_ACCESS_MANAGER", 104 "reason": "$string:edit_file_permission", 105 "usedScene": { 106 "abilities": [ 107 "EntryAbility" 108 ], 109 "when":"always" 110 } 111 }, 112 { 113 "name" : "ohos.permission.GET_BUNDLE_INFO_PRIVILEGED", 114 "reason": "$string:edit_file_permission", 115 "usedScene": { 116 "abilities": [ 117 "EntryAbility" 118 ], 119 "when":"always" 120 } 121 }, 122 { 123 "name" : "ohos.permission.ACCESS_DLP_FILE", 124 "reason": "$string:dlp_file_permission", 125 "usedScene": { 126 "abilities": [ 127 "EntryAbility" 128 ], 129 "when":"always" 130 } 131 }, 132 { 133 "name": "ohos.permission.START_INVISIBLE_ABILITY" 134 }, 135 { 136 "name": "ohos.permission.START_ABILITIES_FROM_BACKGROUND" 137 }, 138 { 139 "name": "ohos.permission.ABILITY_BACKGROUND_COMMUNICATION" 140 }, 141 { 142 "name": "ohos.permission.MANAGE_DISTRIBUTED_ACCOUNTS" 143 }, 144 { 145 "name": "ohos.permission.MANAGE_LOCAL_ACCOUNTS" 146 } 147 ] 148 } 149}