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        "name": "InjectNoticeAbility",
54        "srcEntry": "./ets/ServiceExtAbility/InjectNoticeAbility.ts",
55        "icon": "$media:icon",
56        "label": "InjectNoticeAbility",
57        "visible": false,
58        "type": "service"
59      },
60      {
61        "name": "CapsuleWindowAbility",
62        "srcEntry": "./ets/UiExtensionAbility/CapsuleWindowAbility.ets",
63        "type": "sys/commonUI",
64        "exported": false,
65        "label": "CapsuleWindowAbility",
66        "skills": [
67          {
68            "actions": [
69              "action.systemui.plugin.STATUS_BAR"
70            ]
71          }
72        ],
73        "metadata": [
74          {
75            "name": "action.systemui.plugin.STATUS_BAR",
76            "value": "plugin_capsule_my_inject"
77          }
78        ]
79      }
80    ],
81    "requestPermissions": [
82      {
83        "reason": "$string:PowerServiceExtAbility_reason",
84        "name": "ohos.permission.REBOOT",
85        "usedScene": {
86          "abilities": [
87            "PowerUiExtensionAbility"
88          ],
89          "when": "always"
90        }
91      },
92      {
93        "reason": "inject event",
94        "name": "ohos.permission.INJECT_INPUT_EVENT",
95        "usedScene": {
96          "abilities": [
97            "PowerUiExtensionAbility",
98            "InjectNoticeAbility"
99          ],
100          "when": "always"
101        }
102      }
103    ]
104  }
105}
106