1{ 2 "module": { 3 "name": "entry", 4 "type": "entry", 5 "srcEntrance": "", 6 "description": "$string:module_desc", 7 "mainElement": "EntryAbility", 8 "deviceTypes": [ 9 "phone", 10 "tablet", 11 "2in1", 12 "wearable" 13 ], 14 "deliveryWithInstall": true, 15 "installationFree": false, 16 "pages": "$profile:main_pages", 17 "abilities": [ 18 { 19 "name": "BluetoothReceiveUIAbility", 20 "srcEntry": "./ets/bluetoothability/BluetoothPcReceiveUIAbility.ets", 21 "launchType": "singleton", 22 "icon": "$media:app_icon", 23 "label": "BluetoothReceiveUIAbility", 24 "description": "service", 25 "metadata": [], 26 "visible": true, 27 "permissions": ["ohos.permission.KEEP_BACKGROUND_RUNNING"], 28 "continuable": false, 29 "skills": [], 30 "backgroundModes": [ 31 "bluetoothInteraction" 32 ], 33 "startWindowIcon": "$media:app_icon", 34 "startWindowBackground": "$color:start_window_background", 35 "removeMissionAfterTerminate": true 36 }, 37 { 38 "name": "BluetoothSendUIAbility", 39 "srcEntry": "./ets/bluetoothability/BluetoothPcSendUIAbility.ets", 40 "launchType": "singleton", 41 "icon": "$media:app_icon", 42 "label": "BluetoothSendUIAbility", 43 "description": "service", 44 "metadata": [], 45 "visible": true, 46 "permissions": ["ohos.permission.KEEP_BACKGROUND_RUNNING"], 47 "continuable": false, 48 "skills": [], 49 "backgroundModes": [ 50 "bluetoothInteraction" 51 ], 52 "startWindowIcon": "$media:app_icon", 53 "startWindowBackground": "$color:start_window_background", 54 "removeMissionAfterTerminate": true 55 } 56 ], 57 "extensionAbilities": [ 58 { 59 "name": "ConfirmUIExtAbility", 60 "srcEntry": "./ets/confirmuiextability/ConfirmUIExtAbility.ets", 61 "description": "$string:ConfirmUIExtAbility_desc", 62 "label": "$string:ConfirmUIExtAbility_label", 63 "exported": false, 64 "type": "sysDialog/common" 65 }, 66 { 67 "name": "LocationPrivacyExtAbility", 68 "srcEntry": "./ets/locationprivacyextability/LocationPrivacyExtAbility.ets", 69 "description": "$string:LocationPrivacyExtAbility_desc", 70 "label": "$string:LocationPrivacyExtAbility_label", 71 "exported": false, 72 "type": "sysDialog/common" 73 }, 74 { 75 "name": "WifiUIExtAbility", 76 "srcEntry": "./ets/wifiability/WifiUIExtAbility.ets", 77 "description": "WifiUIExtAbility", 78 "label": "WifiUIExtAbility", 79 "exported": false, 80 "type": "sysDialog/common" 81 }, 82 { 83 "name": "WifiServiceAbility", 84 "srcEntry": "./ets/serviceability/WifiServiceAbility.ets", 85 "description": "service", 86 "icon": "$media:app_icon", 87 "type": "service", 88 "visible": false, 89 "exported": false 90 }, 91 { 92 "name": "HotSpotServiceAbility", 93 "srcEntry": "./ets/serviceability/HotSpotServiceAbility.ets", 94 "description": "service", 95 "icon": "$media:app_icon", 96 "type": "service", 97 "visible": false, 98 "exported": false 99 }, 100 { 101 "name": "BluetoothServiceAbility", 102 "icon": "$media:app_icon", 103 "label": "$string:share_name", 104 "description": "UIExtAbility", 105 "srcEntry": "./ets/bluetoothability/BluetoothServiceAbility.ets", 106 "type": "share", 107 "extensionProcessMode": "instance", 108 "visible": true, 109 "permissions": ["ohos.permission.KEEP_BACKGROUND_RUNNING"], 110 "skills": [ 111 { 112 "actions": [ 113 "ohos.want.action.sendData" 114 ], 115 "uris": [ 116 { 117 "scheme": "file", 118 "utd": "general.object", 119 "maxFileSupported": 300 120 }, 121 { 122 "scheme": "file", 123 "utd": "general.entity", 124 "maxFileSupported": 300 125 } 126 ] 127 } 128 ] 129 }, 130 { 131 "name": "BluetoothReceiveServiceUIAbility", 132 "srcEntry": "./ets/bluetoothability/BluetoothPcReceiveServiceUIAbility.ets", 133 "description": "BluetoothReceiveServiceUIAbility", 134 "label": "BluetoothReceiveServiceUIAbility", 135 "exported": false, 136 "type": "sysDialog/common" 137 } 138 ], 139 "requestPermissions": [ 140 { 141 "name": "ohos.permission.GET_BUNDLE_INFO" 142 }, 143 { 144 "name": "ohos.permission.SET_WIFI_CONFIG" 145 }, 146 { 147 "name": "ohos.permission.PUBLISH_LOCATION_EVENT" 148 }, 149 { 150 "name": "ohos.permission.ACCESS_BLUETOOTH", 151 "reason": "use at bluetooth app", 152 "usedScene": { 153 "abilities": [ 154 "BluetoothReceiveServiceUIAbility", 155 "BluetoothReceiveUIAbility", 156 "BluetoothSendUIAbility", 157 "BluetoothServiceAbility" 158 ] 159 } 160 }, 161 { 162 "name": "ohos.permission.USE_BLUETOOTH", 163 "reason": "use at bluetooth app" 164 }, 165 { 166 "name": "ohos.permission.MANAGE_BLUETOOTH", 167 "reason": "use at bluetooth app" 168 }, 169 { 170 "name": "ohos.permission.ACCESS_SYSTEM_SETTINGS", 171 "reason": "use at bluetooth app" 172 }, 173 { 174 "name": "ohos.permission.WRITE_IMAGEVIDEO", 175 "reason": "use at bluetooth app", 176 "usedScene": { 177 "abilities": [ 178 "BluetoothReceiveServiceUIAbility", 179 "BluetoothReceiveUIAbility" 180 ] 181 } 182 }, 183 { 184 "name": "ohos.permission.KEEP_BACKGROUND_RUNNING", 185 "reason": "use at bluetooth app" 186 } 187 ] 188 } 189}