1{ 2 "app": { 3 "bundleName": "com.example.actsfeatureabilitytest", 4 "vendor": "jstest", 5 "version": { 6 "code": 1, 7 "name": "1.0" 8 }, 9 "apiVersion": { 10 "compatible": 4, 11 "target": 5, 12 "releaseType": "Beta1" 13 } 14 }, 15 "deviceConfig": { 16 "default": { 17 } 18 }, 19 "module": { 20 "package": "com.example.actsfeatureabilitytest", 21 "name": ".MyApplication", 22 "mainAbility": "com.example.actsfeatureabilitytest.MainAbility", 23 "deviceType": [ 24 "default", 25 "tablet" 26 ], 27 "distro": { 28 "deliveryWithInstall": true, 29 "moduleName": "entry", 30 "moduleType": "entry" 31 }, 32 "abilities": [ 33 { 34 "visible": true, 35 "skills": [ 36 { 37 "entities": [ 38 "entity.system.home", 39 "flag.home.intent.from.system" 40 ], 41 "actions": [ 42 "action.system.home" 43 ] 44 } 45 ], 46 "backgroundModes": [ 47 "dataTransfer" 48 ], 49 "name": "com.example.actsfeatureabilitytest.MainAbility", 50 "srcPath": "MainAbility", 51 "srcLanguage": "js", 52 "icon": "$media:icon", 53 "description": "$string:mainability_description", 54 "label": "$string:app_name", 55 "type": "page", 56 "launchType": "singleton", 57 "permissions": ["ohos.permission.ACCELEROMETER"], 58 "deviceCapability": ["SystemCapability.Ability.AbilityBase"], 59 "uri": "uriTest", 60 "visible": true 61 }, 62 { 63 "orientation": "unspecified", 64 "formsEnabled": false, 65 "name": ".TestAbility", 66 "srcLanguage": "js", 67 "srcPath": "TestAbility", 68 "icon": "$media:icon", 69 "description": "$string:TestAbility_desc", 70 "label": "$string:TestAbility_label", 71 "type": "page", 72 "visible": true, 73 "launchType": "singleton", 74 "permissions": ["ohos.permission.ACCELEROMETER"], 75 "deviceCapability": ["SystemCapability.Ability.AbilityBase"], 76 "uri": "uriTest" 77 } 78 ], 79 "reqCapabilities": ["reqCapabilitiesTest1","reqCapabilitiesTest2"], 80 "description": "descriptionTest", 81 "defPermissions": [ 82 { 83 "name": "ohos.permission.KEEP_BACKGROUND_RUNNING" 84 } 85 ], 86 "reqPermissions": [ 87 { 88 "name": "ohos.permission.CAMERA", 89 "reason": "$string:permreason_camera", 90 "usedScene": 91 { 92 "ability": ["com.mycamera.Ability", "com.mycamera.AbilityBackground"], 93 "when": "always" 94 } 95 }, 96 { 97 "name": "ohos.permission.ACCELEROMETER", 98 "reason":"need use ohos.permission.ACCELEROMETER" 99 }, 100 { 101 "name": "ohos.permission.KEEP_BACKGROUND_RUNNING" 102 }, 103 { 104 "name":"ohos.permission.START_ABILITIES_FROM_BACKGROUND", 105 "reason":"need use ohos.permission.START_ABILITIES_FROM_BACKGROUND" 106 } 107 ], 108 "js": [ 109 { 110 "pages": [ 111 "pages/index/index" 112 ], 113 "name": "default", 114 "window": { 115 "designWidth": 720, 116 "autoDesignWidth": false 117 } 118 }, 119 { 120 "pages": [ 121 "pages/index/index" 122 ], 123 "name": ".TestAbility", 124 "window": { 125 "designWidth": 720, 126 "autoDesignWidth": false 127 } 128 } 129 ], 130 "testRunner": { 131 "name": "OpenHarmonyTestRunner", 132 "srcPath": "TestRunner" 133 } 134 } 135}