1{ 2 "module": { 3 "name": "testModule", 4 "type": "entry", 5 "srcEntrance": "./ets/Application/AbilityStage.ts", 6 "description": "$string:testModule_entry_dsc", 7 "mainElement": "com.acts.request.MainAbility", 8 "deviceTypes": [ 9 "default", 10 "tablet" 11 ], 12 "deliveryWithInstall": true, 13 "installationFree": false, 14 "uiSyntax": "ets", 15 "pages": "$profile:main_pages", 16 "metadata": [ 17 { 18 "name": "ArkTSPartialUpdate", 19 "value": "false" 20 } 21 ], 22 "abilities": [ 23 { 24 "name": "com.acts.request.MainAbility", 25 "srcEntrance": "./ets/MainAbility/MainAbility.ts", 26 "description": "$string:testModule_entry_main", 27 "icon": "$media:icon", 28 "label": "$string:entry_label", 29 "visible": true, 30 "launchType": "singleton", 31 "orientation": "portrait", 32 "skills": [ 33 { 34 "actions": [ 35 "action.system.home" 36 ], 37 "entities":[ 38 "entity.system.home" 39 ] 40 } 41 ] 42 } 43 ], 44 "requestPermissions": [ 45 { 46 "name": "ohos.permission.GET_BUNDLE_INFO", 47 "reason": "$string:permission_reason", 48 "usedScene": { 49 "abilities": ["MainAbility"], 50 "when": "always" 51 } 52 }, 53 { 54 "name": "ohos.permission.READ_CALENDAR", 55 "reason": "$string:permission_reason", 56 "usedScene": { 57 "abilities": ["MainAbility"], 58 "when": "inuse" 59 } 60 }, 61 { 62 "name":"ohos.permission.INTERNET", 63 "reason":"need use ohos.permission.INTERNET." 64 }, 65 { 66 "name":"ohos.permission.DOWNLOAD_SESSION_MANAGER", 67 "reason":"need use ohos.permission.DOWNLOAD_SESSION_MANAGER." 68 }, 69 { 70 "name":"ohos.permission.UPLOAD_SESSION_MANAGER", 71 "reason":"need use ohos.permission.UPLOAD_SESSION_MANAGER." 72 }, 73 {"name": "ohos.permission.WRITE_MEDIA", 74 "reason": "need use ohos.permission.WRITE_MEDIA", 75 "usedScene": { 76 "ability": [ 77 "com.acts.request.test.MainAbility" 78 ], 79 "when":"always" 80 } 81 }, 82 {"name": "ohos.permission.READ_MEDIA", 83 "reason": "need use ohos.permission.WRITE_MEDIA", 84 "usedScene": { 85 "ability": [ 86 "com.acts.request.test.MainAbility" 87 ], 88 "when":"always" 89 } 90 } 91 ], 92 "metadata": [ 93 { 94 "name": "MetaData1", 95 "value": "MetaDataValue", 96 "resource": "$profile:shortcuts_config" 97 } 98 ] 99 } 100}