1{ 2 "module": { 3 "name": "crossplatform_request_test_ets", 4 "type": "feature", 5 "description": "$string:module_test_desc", 6 "mainElement": "TestAbility", 7 "deviceTypes": [ 8 "phone" 9 ], 10 "deliveryWithInstall": true, 11 "installationFree": false, 12 "pages": "$profile:test_pages", 13 "abilities": [ 14 { 15 "name": "TestAbility", 16 "srcEntry": "./ets/TestAbility/TestAbility.ets", 17 "description": "$string:TestAbility_desc", 18 "icon": "$media:icon", 19 "label": "$string:TestAbility_label", 20 "exported": true, 21 "startWindowIcon": "$media:icon", 22 "startWindowBackground": "$color:start_window_background", 23 "skills": [ 24 { 25 "actions": [ 26 "action.system.home" 27 ], 28 "entities": [ 29 "entity.system.home" 30 ] 31 } 32 ] 33 } 34 ], 35 "requestPermissions": [ 36 { 37 "name":"ohos.permission.INTERNET", 38 "reason":"need use ohos.permission.INTERNET." 39 }, 40 {"name": "ohos.permission.WRITE_MEDIA", 41 "reason": "need use ohos.permission.WRITE_MEDIA", 42 "usedScene": { 43 "ability": [ 44 "com.acts.request.test.MainAbility" 45 ], 46 "when":"always" 47 } 48 }, 49 {"name": "ohos.permission.READ_MEDIA", 50 "reason": "need use ohos.permission.WRITE_MEDIA", 51 "usedScene": { 52 "ability": [ 53 "com.acts.request.test.MainAbility" 54 ], 55 "when":"always" 56 } 57 } 58 ] 59 } 60} 61