1{ 2 "module": { 3 "name": "entry", 4 "type": "feature", 5 "srcEntry": "", 6 "mainElement": "MainAbility", 7 "deviceTypes": [ 8 "default", 9 "tablet", 10 "2in1" 11 ], 12 "deliveryWithInstall": true, 13 "installationFree": false, 14 "pages": "$profile:main_pages", 15 "abilities": [ 16 { 17 "name": "MainAbility", 18 "icon": "$media:icon", 19 "label": "$string:MainAbility_label", 20 "startWindowIcon": "$media:icon", 21 "startWindowBackground": "$color:white", 22 "visible": false, 23 "launchType": "standard", 24 "srcEntry": "" 25 } 26 ], 27 "extensionAbilities": [ 28 { 29 "name": "PowerUiExtensionAbility", 30 "srcEntry": "./ets/UiExtensionAbility/PowerUiExtensionAbility.ts", 31 "icon": "$media:icon", 32 "label": "$string:PowerServiceExtAbility_label", 33 "visible": false, 34 "type": "sysDialog/power" 35 }, 36 { 37 "name": "ThermalServiceExtAbility_high", 38 "srcEntry": "./ets/ServiceExtAbility/ThermalHighDialogAbility.ts", 39 "icon": "$media:icon", 40 "label": "$string:ThermalServiceExtAbility_high_label", 41 "visible": false, 42 "type": "service" 43 }, 44 { 45 "name": "ThermalServiceExtAbility_low", 46 "srcEntry": "./ets/ServiceExtAbility/ThermalLowDialogAbility.ts", 47 "icon": "$media:icon", 48 "label": "$string:ThermalServiceExtAbility_low_label", 49 "visible": false, 50 "type": "service" 51 } 52 ], 53 "requestPermissions": [ 54 { 55 "reason": "$string:PowerServiceExtAbility_reason", 56 "name": "ohos.permission.REBOOT", 57 "usedScene": { 58 "abilities": [ 59 "PowerUiExtensionAbility" 60 ], 61 "when": "always" 62 } 63 } 64 ] 65 } 66} 67