• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1{
2  "app": {
3    "vendor": "samples",
4    "bundleName": "ohos.samples.backgroundtaskmanager",
5    "version": {
6      "code": 1000000,
7      "name": "1.0.0"
8    }
9  },
10  "deviceConfig": {},
11  "module": {
12    "mainAbility": ".MainAbility",
13    "deviceType": [
14      "default"
15    ],
16    "abilities": [
17      {
18        "skills": [
19          {
20            "entities": [
21              "entity.system.home"
22            ],
23            "actions": [
24              "action.system.home"
25            ]
26          }
27        ],
28        "orientation": "unspecified",
29        "visible": true,
30        "srcPath": "MainAbility",
31        "name": ".MainAbility",
32        "srcLanguage": "ets",
33        "icon": "$media:icon",
34        "description": "$string:MainAbility_desc",
35        "formsEnabled": false,
36        "label": "$string:MainAbility_label",
37        "type": "page",
38        "launchType": "singleton"
39      },
40      {
41        "backgroundModes": [
42          "dataTransfer",
43          "location"
44        ],
45        "visible": true,
46        "srcPath": "ServiceAbility",
47        "name": ".ServiceAbility",
48        "icon": "$media:icon",
49        "srcLanguage": "ets",
50        "description": "$string:description_serviceability",
51        "type": "service"
52      }
53    ],
54    "distro": {
55      "moduleType": "entry",
56      "installationFree": false,
57      "deliveryWithInstall": true,
58      "moduleName": "entry"
59    },
60    "package": "ohos.samples.backgroundtaskmanager",
61    "srcPath": "",
62    "name": ".MyApplication",
63    "js": [
64      {
65        "mode": {
66          "syntax": "ets",
67          "type": "pageAbility"
68        },
69        "pages": [
70          "pages/Index"
71        ],
72        "name": ".MainAbility",
73        "window": {
74          "designWidth": 720,
75          "autoDesignWidth": false
76        }
77      }
78    ],
79    "defPermissions": [
80      {
81        "name": "ohos.permission.KEEP_BACKGROUND_RUNNING"
82      }
83    ],
84    "reqPermissions": [
85      {
86        "name": "ohos.permission.KEEP_BACKGROUND_RUNNING"
87      }
88    ]
89  }
90}