• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1{
2  "module": {
3    "name": "entry",
4    "type": "entry",
5    "description": "$string:entry_desc",
6    "mainElement": "MainAbility",
7    "deviceTypes": [
8      "default",
9      "tablet"
10    ],
11    "deliveryWithInstall": true,
12    "installationFree": false,
13    "pages": "$profile:main_pages",
14    "metadata": [
15      {
16        "name": "ArkTSPartialUpdate",
17        "value": "true"
18      },
19      {
20        "name": "partialUpdateStrictCheck",
21        "value": "warn"
22      }
23    ],
24    "abilities": [
25      {
26        "startWindowIcon": "$media:icon",
27        "startWindowBackground": "$color:color_ffffff",
28        "name": "MainAbility",
29        "srcEntry": "./ets/MainAbility/MainAbility.ets",
30        "description": "$string:MainAbility_desc",
31        "icon": "$media:icon",
32        "label": "$string:MainAbility_label",
33        "launchType": "singleton",
34        "visible": false
35      },
36      {
37        "name": "JobManagerAbility",
38        "srcEntry": "./ets/MainAbility/JobManagerAbility.ts",
39        "description": "$string:JobManagerAbility_desc",
40        "icon": "$media:icon",
41        "label": "$string:JobManagerAbility_label",
42        "visible": false,
43        "startWindowIcon": "$media:icon",
44        "startWindowBackground": "$color:color_ffffff"
45      }
46    ],
47    "extensionAbilities": [
48      {
49        "name": "PrintExtension",
50        "srcEntrance": "./ets/ServiceExtAbility/PrintExtension.ts",
51        "label": "$string:app_name",
52        "icon": "$media:icon",
53        "description": "service",
54        "type": "print",
55        "visible": false
56      },
57      {
58        "icon": "$media:icon",
59        "name": "PrintServiceExtAbility",
60        "srcEntry": "./ets/MainAbility/MainAbility.ets",
61        "type": "sysDialog/common",
62        "exported": true
63      }
64    ],
65    "requestPermissions": [
66      {
67        "name": "ohos.permission.MANAGE_PRINT_JOB",
68        "reason": '$string:print_require',
69        "usedScene": {
70          "abilities": [
71            "com.ohos.spooler.MainAbility",
72            "com.ohos.spooler.PrintExtension"
73          ],
74          "when": "always"
75        }
76      },
77      {
78        "name": "ohos.permission.GET_WIFI_INFO",
79        "reason": '$string:p2p_require',
80        "usedScene": {
81          "abilities": [
82            "com.ohos.spooler.MainAbility",
83            "com.ohos.spooler.PrintExtension"
84          ],
85          "when": "inuse"
86        }
87      },
88      {
89        "name": "ohos.permission.SET_WIFI_INFO",
90        "reason": '$string:wifi_require',
91        "usedScene": {
92          "abilities": [
93            "com.ohos.spooler.MainAbility"
94          ],
95          "when": "inuse"
96        }
97      },
98      {
99        "name": "ohos.permission.PUBLISH_AGENT_REMINDER",
100        "reason": '$string:emmit_require',
101        "usedScene": {
102          "abilities": [
103            "com.ohos.spooler.MainAbility"
104          ],
105          "when": "inuse"
106        }
107      },
108      {
109        "name": "ohos.permission.INTERNET",
110        "reason": '$string:http_require',
111        "usedScene": {
112          "abilities": [
113            "com.ohos.spooler.PrintExtension"
114          ],
115          "when": "inuse"
116        }
117      },
118
119      {
120        "name": "ohos.permission.securityguard.REPORT_SECURITY_INFO",
121        "reason": '$string:print_security_guard_require',
122        "usedScene": {
123          "abilities": [
124            "com.ohos.spooler.MainAbility"
125          ],
126          "when": "inuse"
127        }
128      },
129
130      {
131        "name": "ohos.permission.GET_RUNNING_INFO",
132        "reason": '$string:print_security_guard_require',
133        "usedScene": {
134          "abilities": [
135            "com.ohos.spooler.MainAbility"
136          ],
137          "when": "inuse"
138        }
139      },
140      {
141        "name": "ohos.permission.FILE_ACCESS_MANAGER",
142        "reason": '$string:print_file_name_require',
143        "usedScene": {
144          "abilities": [
145            "com.ohos.spooler.MainAbility"
146          ],
147          "when": "inuse"
148        }
149      },
150      {
151        "name": "ohos.permission.GET_BUNDLE_INFO_PRIVILEGED",
152        "reason": '$string:print_file_name_require',
153        "usedScene": {
154          "abilities": [
155            "com.ohos.spooler.MainAbility"
156          ],
157          "when": "inuse"
158        }
159      }
160    ]
161  }
162}