AndroidManifest.xml
18.7 KB
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="cn.jiguang.uniplugin_jpush" >
<uses-sdk android:minSdkVersion="21" />
<!-- Required -->
<permission
android:name="${applicationId}.permission.JPUSH_MESSAGE"
android:protectionLevel="signature" />
<!-- Required -->
<uses-permission android:name="${applicationId}.permission.JPUSH_MESSAGE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
<!-- 华为角标 -->
<uses-permission android:name="com.huawei.android.launcher.permission.CHANGE_BADGE" />
<!-- vivo 角标 -->
<uses-permission android:name="com.vivo.notification.permission.BADGE_ICON" />
<!-- honor 角标 -->
<uses-permission android:name="com.hihonor.android.launcher.permission.CHANGE_BADGE" />
<!-- 小米 推送必须 -->
<uses-permission android:name="android.permission.VIBRATE" />
<!-- Optional. Required for location feature -->
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.QUERY_ALL_PACKAGES" />
<uses-permission android:name="android.permission.GET_TASKS" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<!-- xiaomi_permission_start -->
<permission
android:name="${applicationId}.permission.MIPUSH_RECEIVE"
android:protectionLevel="signature" />
<uses-permission android:name="${applicationId}.permission.MIPUSH_RECEIVE" />
<!-- xiaomi_permission_end -->
<!-- oppo_permission_start -->
<uses-permission android:name="com.coloros.mcs.permission.RECIEVE_MCS_MESSAGE" />
<uses-permission android:name="com.heytap.mcs.permission.RECIEVE_MCS_MESSAGE" />
<!-- oppo_permission_end -->
<!-- honor_permission_start -->
<queries>
<intent>
<action android:name="com.hihonor.push.action.BIND_PUSH_SERVICE" />
</intent>
</queries>
<!-- honor_permission_end -->
<!-- <uses-sdk tools:overrideLibrary=" -->
<!-- cn.jpush.android.thirdpush.fcm -->
<!-- ,cn.jpush.android.thirdpush.huawei -->
<!-- ,cn.jpush.android.thirdpush.meizu -->
<!-- ,cn.jpush.android.thirdpush.oppo -->
<!-- ,cn.jpush.android.thirdpush.vivo -->
<!-- ,cn.jpush.android.thirdpush.xiaomi -->
<!-- ,com.google.firebase.firebase_core -->
<!-- ,com.google.firebase.messaging -->
<!-- ,com.google.firebase.analytics.connector.impl -->
<!-- ,com.google.firebase.measurement -->
<!-- ,com.google.android.gms.measurement.api -->
<!-- ,com.google.firebase.measurement_impl -->
<!-- ,com.google.firebase.iid -->
<!-- ,com.google.firebase -->
<!-- ,com.google.firebase.iid.internal -->
<!-- ,com.google.android.gms.base -->
<!-- ,com.google.android.gms.tasks -->
<!-- ,com.google.firebase.analytics.connector -->
<!-- ,com.google.android.gms.stats -->
<!-- ,com.google.android.gms.ads_identifier -->
<!-- ,com.google.android.gms.cn.jiguang.uniplugin_jpush.common -->
<!-- ,com.google.android.gms.measurement_base -->
<!-- ,com.huawei.android.hms.openid -->
<!-- ,com.huawei.agconnect.core -->
<!-- ,com.huawei.hmf.tasks -->
<!-- ,com.huawei.hms.framework.network.grs -->
<!-- ,com.huawei.hms.framework.cn.jiguang.uniplugin_jpush.common -->
<!-- ,com.huawei.android.hms.base -->
<!-- ,com.huawei.android.hms.push -->
<!-- ,android.support.mediacompat -->
<!-- ,android.support.fragment -->
<!-- ,android.support.coreutils -->
<!-- ,android.support.coreui -->
<!-- ,android.support.compat -->
<!-- ,android.arch.lifecycle" /> -->
<application>
<!-- jpush_config_start -->
<!-- Rich push 核心功能 since 2.0.6 -->
<activity
android:name="cn.jpush.android.ui.PopWinActivity"
android:exported="true"
android:theme="@style/JPushDialogStyle" >
<intent-filter>
<category android:name="android.intent.category.DEFAULT" />
<action android:name="cn.jpush.android.ui.PopWinActivity" />
<category android:name="${applicationId}" />
</intent-filter>
</activity>
<!-- Required SDK核心功能 -->
<activity
android:name="cn.jpush.android.ui.PushActivity"
android:configChanges="orientation|keyboardHidden"
android:exported="true"
android:theme="@android:style/Theme.NoTitleBar" >
<intent-filter>
<action android:name="cn.jpush.android.ui.PushActivity" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="${applicationId}" />
</intent-filter>
</activity>
<!-- since 3.5.0 Required SDK 核心功能 -->
<!-- 3.5.0新增,用于定时展示功能 -->
<receiver
android:name="cn.jpush.android.service.SchedulerReceiver"
android:exported="false" />
<!-- 3.6.7 新增,用于负反馈组件 -->
<service android:name="cn.jpush.android.service.MessagingIntentService" />
<!-- since 3.0.9 Required SDK 核心功能 -->
<provider
android:name="cn.jpush.android.service.DataProvider"
android:authorities="${applicationId}.DataProvider"
android:exported="false"
android:process=":pushcore" />
<!-- since 3.1.0 Required SDK 核心功能 -->
<!-- since 3.3.0 Required SDK核心功能 -->
<activity
android:name="cn.jpush.android.service.JNotifyActivity"
android:exported="true"
android:taskAffinity=""
android:theme="@style/JPushTheme" >
<intent-filter>
<action android:name="cn.jpush.android.intent.JNotifyActivity" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="${applicationId}" />
</intent-filter>
</activity>
<!-- since 3.5.6 新增华硕通道 -->
<receiver android:name="cn.jpush.android.asus.AsusPushMessageReceiver" />
<!-- jpush_config_end -->
<!-- (jpush|jmessage)_config_start,jpush和jmessage公用的组件 -->
<!-- Required SDK 核心功能 -->
<!-- 可配置android:process参数将PushService放在其他进程中 -->
<service
android:name="cn.jpush.android.service.PushService"
android:enabled="true"
android:exported="false"
android:process=":pushcore" >
<intent-filter>
<action android:name="cn.jpush.android.intent.REGISTER" />
<action android:name="cn.jpush.android.intent.REPORT" />
<action android:name="cn.jpush.android.intent.PushService" />
<action android:name="cn.jpush.android.intent.PUSH_TIME" />
</intent-filter>
</service>
<!-- Since JCore2.0.0 Required SDK核心功能 -->
<!-- 可配置android:process参数将Service放在其他进程中;android:enabled属性不能是false -->
<!-- 这个是自定义Service,要继承极光JCommonService,可以在更多手机平台上使得推送通道保持的更稳定 -->
<!-- 先在主工程中配置 -->
<!-- <service -->
<!-- android:name="cn.jpush.android.service.JCommonService" -->
<!-- android:enabled="true" -->
<!-- android:exported="false" -->
<!-- android:process=":pushcore"> -->
<!-- <intent-filter> -->
<!-- <action android:name="cn.jiguang.user.service.action" /> -->
<!-- </intent-filter> -->
<!-- </service> -->
<!-- since 1.8.0 option 可选项。用于同一设备中不同应用的JPush服务相互拉起的功能。 -->
<!-- 若不启用该功能可删除该组件,或把 enabled 设置成 false ;App 不会被其他 App 拉起,但会拉起其他的 App。 -->
<!-- 可选,如果使用静态Activity方式拉起,该组件必须声明 -->
<!-- Required SDK核心功能 -->
<receiver
android:name="cn.jpush.android.service.PushReceiver"
android:enabled="true"
android:exported="false" >
<intent-filter android:priority="1000" >
<action android:name="cn.jpush.android.intent.NOTIFICATION_RECEIVED_PROXY" /> <!-- Required 显示通知栏 -->
<category android:name="${applicationId}" />
</intent-filter>
</receiver>
<provider
android:name="cn.jpush.android.service.InitProvider"
android:authorities="${applicationId}.jiguang.InitProvider"
android:exported="false"
android:readPermission="${applicationId}.permission.JPUSH_MESSAGE"
android:writePermission="${applicationId}.permission.JPUSH_MESSAGE" />
<!-- (jpush|jmessage)_config_end -->
<receiver
android:name="cn.jiguang.uniplugin_jpush.receiver.JPushModuleReceiver"
android:enabled="true"
android:exported="false" >
<intent-filter>
<action android:name="cn.jpush.android.intent.RECEIVER_MESSAGE" />
<category android:name="${applicationId}" />
</intent-filter>
</receiver>
<receiver
android:name="cn.jiguang.uniplugin_jpush.receiver.JPushBroadcastReceiver"
android:enabled="true"
android:exported="false" >
<intent-filter>
<action android:name="cn.jpush.android.intent.NOTIFICATION_OPENED" />
<category android:name="${applicationId}" />
</intent-filter>
</receiver>
<service
android:name="cn.jpush.android.service.PluginHuaweiPlatformsService"
android:exported="false" >
<intent-filter>
<action android:name="com.huawei.push.action.MESSAGING_EVENT" />
</intent-filter>
</service>
<!-- xiaomi_config_start -->
<service
android:name="com.xiaomi.push.service.XMJobService"
android:enabled="true"
android:exported="false"
android:permission="android.permission.BIND_JOB_SERVICE"
android:process=":pushcore" />
<service
android:name="com.xiaomi.push.service.XMPushService"
android:enabled="true"
android:process=":pushcore" />
<service
android:name="com.xiaomi.mipush.sdk.PushMessageHandler"
android:enabled="true"
android:exported="true"
android:permission="com.xiaomi.xmsf.permission.MIPUSH_RECEIVE" />
<service
android:name="com.xiaomi.mipush.sdk.MessageHandleService"
android:enabled="true" />
<!-- CP反馈NetworkStatusReceiver静态注册会被检出自启风险,故移除,仅使用动态注册 -->
<!-- <receiver -->
<!-- android:name="com.xiaomi.push.service.receivers.NetworkStatusReceiver" -->
<!-- android:exported="true"> -->
<!-- <intent-filter> -->
<!-- <action android:name="android.net.conn.CONNECTIVITY_CHANGE" /> -->
<!-- <category android:name="android.intent.category.DEFAULT" /> -->
<!-- </intent-filter> -->
<!-- </receiver> -->
<receiver
android:name="com.xiaomi.push.service.receivers.PingReceiver"
android:exported="false"
android:process=":pushcore" >
<intent-filter>
<action android:name="com.xiaomi.push.PING_TIMER" />
</intent-filter>
</receiver>
<receiver
android:name="cn.jpush.android.service.PluginXiaomiPlatformsReceiver"
android:exported="true" >
<intent-filter>
<action android:name="com.xiaomi.mipush.RECEIVE_MESSAGE" />
</intent-filter>
<intent-filter>
<action android:name="com.xiaomi.mipush.MESSAGE_ARRIVED" />
</intent-filter>
<intent-filter>
<action android:name="com.xiaomi.mipush.ERROR" />
</intent-filter>
</receiver>
<!-- 支持VoIP和场景化通过透明页点击跳转 -->
<!-- 对于targetSdkVersion变更为S及以上的应用,需要接入MiPushSDK 4.9.1及以上版本(海外版需接入4.8.6及以上版本),并声明NotificationClickedActivity -->
<activity
android:name="com.xiaomi.mipush.sdk.NotificationClickedActivity"
android:enabled="true"
android:excludeFromRecents="true"
android:exported="true"
android:launchMode="singleInstance"
android:theme="@android:style/Theme.Translucent.NoTitleBar" >
<meta-data
android:name="supportStyle"
android:value="scene|voip" />
</activity>
<!-- xiaomi_config_end -->
<!-- <!–huawei_config_start–> -->
<!-- <service -->
<!-- android:name="cn.jpush.android.service.PluginHuaweiPlatformsService" -->
<!-- android:exported="false"> -->
<!-- <intent-filter> -->
<!-- <action android:name="com.huawei.push.action.MESSAGING_EVENT" /> -->
<!-- </intent-filter> -->
<!-- </service> -->
<!-- <!–huawei_config_end–> -->
<!-- meizu_config_start -->
<receiver
android:name="cn.jpush.android.service.PluginMeizuPlatformsReceiver"
android:exported="true"
android:permission="com.meizu.flyme.permission.PUSH" >
<intent-filter>
<!-- 接收 push 消息 -->
<action android:name="com.meizu.flyme.push.intent.MESSAGE" />
<!-- 接收 register 消息 -->
<action android:name="com.meizu.flyme.push.intent.REGISTER.FEEDBACK" />
<!-- 接收 unregister 消息 -->
<action android:name="com.meizu.flyme.push.intent.UNREGISTER.FEEDBACK" />
<!-- 兼容低版本 Flyme3 推送服务配置 -->
<action android:name="com.meizu.c2dm.intent.REGISTRATION" />
<action android:name="com.meizu.c2dm.intent.RECEIVE" />
<category android:name="${applicationId}" />
</intent-filter>
</receiver>
<!-- meizu_config_end -->
<!-- <!–fcm_config_start–> -->
<!-- <service android:name="cn.jpush.android.service.PluginFCMMessagingService"> -->
<!-- <intent-filter> -->
<!-- <action android:name="com.google.firebase.MESSAGING_EVENT" /> -->
<!-- </intent-filter> -->
<!-- </service> -->
<!-- <!–fcm_config_end–> -->
<!-- oppo_config_start -->
<service
android:name="cn.jpush.android.service.PluginOppoPushService"
android:exported="true"
android:permission="com.coloros.mcs.permission.SEND_MCS_MESSAGE" >
<intent-filter>
<action android:name="com.coloros.mcs.action.RECEIVE_MCS_MESSAGE" />
</intent-filter>
</service>
<!-- since JPushv3.6.8 ,oppov2.1.0 oppo 核心功能 -->
<service
android:name="com.heytap.msp.push.service.DataMessageCallbackService"
android:exported="true"
android:permission="com.heytap.mcs.permission.SEND_PUSH_MESSAGE" >
<intent-filter>
<action android:name="com.heytap.mcs.action.RECEIVE_MCS_MESSAGE" />
<action android:name="com.heytap.msp.push.RECEIVE_MCS_MESSAGE" />
</intent-filter>
</service> <!-- 兼容Q版本 -->
<!-- oppo_config_end -->
<!-- vivo_config_start -->
<receiver
android:name="cn.jpush.android.service.PluginVivoMessageReceiver"
android:exported="false" >
<intent-filter>
<!-- 接收 push 消息 -->
<action android:name="com.vivo.pushclient.action.RECEIVE" />
</intent-filter>
</receiver>
<service
android:name="com.vivo.push.sdk.service.CommandClientService"
android:exported="true"
android:permission="com.push.permission.UPSTAGESERVICE" />
<!-- <activity -->
<!-- android:name="com.vivo.push.sdk.LinkProxyClientActivity" -->
<!-- android:exported="false" -->
<!-- android:screenOrientation="portrait" -->
<!-- android:theme="@android:style/Theme.Translucent.NoTitleBar" /> -->
<!-- vivo_config_end -->
<!-- fcm_config_start -->
<service
android:name="cn.jpush.android.service.PluginFCMMessagingService"
android:exported="false" >
<intent-filter>
<action android:name="com.google.firebase.MESSAGING_EVENT" />
</intent-filter>
</service>
<!-- fcm_config_end -->
<!-- honor_config_start -->
<service
android:name="cn.jpush.android.service.JHonorService"
android:exported="false" >
<intent-filter>
<action android:name="com.hihonor.push.action.MESSAGING_EVENT" />
</intent-filter>
</service>
<!-- honor_config_end -->
<activity
android:name="cn.jiguang.uniplugin_jpush.OpenClickActivity"
android:exported="true" >
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<action android:name="cn.jiguang.uniplugin_jpush.OpenClickActivity" />
</intent-filter>
</activity>
<!-- since 4.6.0 Required SDK核心功能 -->
<activity
android:name="cn.android.service.JTransitActivity"
android:exported="true"
android:taskAffinity=""
android:theme="@style/JPushTheme" >
<intent-filter>
<action android:name="cn.android.service.JTransitActivity" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="${applicationId}" />
</intent-filter>
</activity>
</application>
</manifest>