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{ 18 "module": { 19 "name": "default", 20 "type": "entry", 21 "srcEntry": "./ets/Application/AbilityStage.ts", 22 "description": "$string:entry_MainAbility", 23 "mainElement": "MainAbility", 24 "deviceTypes": [ 25 "tablet", 26 "default" 27 ], 28 "requestPermissions": [ 29 { 30 "name": "ohos.permission.INTERNET" 31 }, 32 { 33 "name": "ohos.permission.MEDIA_LOCATION", 34 "reason": "$string:media_location_permission", 35 "usedScene": { 36 "abilities": [ 37 "MainAbility" 38 ], 39 "when":"inuse" 40 } 41 }, 42 { 43 "name": "ohos.permission.DISTRIBUTED_DATASYNC", 44 "reason": "$string:distributed_dataSync_permission", 45 "usedScene": { 46 "abilities": [ 47 "MainAbility" 48 ], 49 "when":"inuse" 50 } 51 }, 52 { 53 "name": "ohos.permission.START_ABILITIES_FROM_BACKGROUND" 54 }, 55 { 56 "name": "ohos.permission.READ_IMAGEVIDEO", 57 "reason": "$string:read_image_video_permission", 58 "usedScene": { 59 "abilities": [ 60 "MainAbility" 61 ], 62 "when":"inuse" 63 } 64 }, 65 { 66 "name": "ohos.permission.WRITE_IMAGEVIDEO", 67 "reason": "$string:write_image_video_permission", 68 "usedScene": { 69 "abilities": [ 70 "MainAbility" 71 ], 72 "when":"inuse" 73 } 74 }, 75 { 76 "name": "ohos.permission.KEEP_BACKGROUND_RUNNING", 77 "reason": "$string:keep_background_running_permission", 78 "usedScene": { 79 "abilities": [ 80 "MainAbility" 81 ], 82 "when":"always" 83 } 84 } 85 ], 86 "deliveryWithInstall": true, 87 "installationFree": false, 88 "pages": "$profile:main_pages", 89 "uiSyntax": "ets", 90 "metadata": [ 91 { 92 "name": "ArkTSPartialUpdate", 93 "value": "true" 94 } 95 ], 96 "abilities": [ 97 { 98 "name": "MainAbility", 99 "srcEntry": "./ets/MainAbility/MainAbility.ts", 100 "description": "$string:entry_MainAbility", 101 "icon": "$media:note", 102 "label": "$string:entry_MainAbility", 103 "visible": true, 104 "continuable": true, 105 "skills": [ 106 { 107 "entities": [ 108 "entity.system.home" 109 ], 110 "actions": [ 111 "action.system.home" 112 ] 113 } 114 ], 115 "backgroundModes": [ 116 "dataTransfer" 117 ], 118 "startWindowBackground": "$color:color_1", 119 "startWindowIcon": "$media:note" 120 } 121 ] 122 } 123}