aboutsummaryrefslogtreecommitdiffstats
path: root/support/openharmony/entry/src/main/module.json5
blob: 806334680ec60ceb9632dfbee0a9025c4b6a8bd9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
{
  "module": {
    "name": "servoshell",
    "type": "entry",
    "description": "$string:module_desc",
    "mainElement": "EntryAbility",
    "deviceTypes": [
      "default"
    ],
    "deliveryWithInstall": true,
    "installationFree": false,
    "pages": "$profile:main_pages",
    "abilities": [
      {
        "name": "EntryAbility",
        "srcEntry": "./ets/entryability/EntryAbility.ets",
        "description": "$string:EntryAbility_desc",
        "icon": "$media:servo_1024",
        "label": "$string:EntryAbility_label",
        "startWindowIcon": "$media:servo_64",
        "startWindowBackground": "$color:start_window_background",
        "exported": true,
        "skills": [
          {
            "entities": [
              "entity.system.home"
            ],
            "actions": [
              "action.system.home"
            ]
          }
        ]
      }
    ],
    // ohos.permission.RUN_DYN_CODE - required for JIT?
    "requestPermissions": [
      {
        "name": "ohos.permission.GET_NETWORK_INFO",
        "reason": "$string:perm_reason",
      },
      {
        "name": "ohos.permission.INTERNET",
        "reason": "$string:perm_reason",
      },
      {
        "name": "ohos.permission.KEEP_BACKGROUND_RUNNING",
        "reason": "$string:perm_reason",
      },

    ]
  }
}