|
@@ -1,6 +1,17 @@
|
1
|
1
|
<?xml version="1.0" encoding="utf-8"?>
|
2
|
2
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
|
3
|
+ xmlns:tools="http://schemas.android.com/tools"
|
3
|
4
|
package="com.kuxuan.fastbrowser">
|
|
5
|
+ <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
|
|
6
|
+ <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
|
|
7
|
+ <uses-permission android:name="android.permission.READ_PHONE_STATE" />
|
|
8
|
+ <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
|
|
9
|
+
|
|
10
|
+ <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
|
|
11
|
+ <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
|
|
12
|
+ <uses-permission android:name="android.permission.GET_TASKS" />
|
|
13
|
+ <uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />
|
|
14
|
+ <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />
|
4
|
15
|
|
5
|
16
|
<application
|
6
|
17
|
android:allowBackup="true"
|
|
@@ -17,6 +28,112 @@
|
17
|
28
|
<category android:name="android.intent.category.LAUNCHER" />
|
18
|
29
|
</intent-filter>
|
19
|
30
|
</activity>
|
|
31
|
+ <!-- Required SDK 核心功能-->
|
|
32
|
+ <!-- 可配置android:process参数将PushService放在其他进程中 -->
|
|
33
|
+ <service
|
|
34
|
+ android:name="cn.jpush.android.service.PushService"
|
|
35
|
+ android:enabled="true"
|
|
36
|
+ android:exported="false">
|
|
37
|
+ <intent-filter>
|
|
38
|
+ <action android:name="cn.jpush.android.intent.REGISTER" />
|
|
39
|
+ <action android:name="cn.jpush.android.intent.REPORT" />
|
|
40
|
+ <action android:name="cn.jpush.android.intent.PushService" />
|
|
41
|
+ <action android:name="cn.jpush.android.intent.PUSH_TIME" />
|
|
42
|
+ </intent-filter>
|
|
43
|
+ </service>
|
|
44
|
+
|
|
45
|
+ <!-- since 1.8.0 option 可选项。用于同一设备中不同应用的JPush服务相互拉起的功能。 -->
|
|
46
|
+ <!-- 若不启用该功能可删除该组件,将不拉起其他应用也不能被其他应用拉起 -->
|
|
47
|
+ <service
|
|
48
|
+ android:name="cn.jpush.android.service.DaemonService"
|
|
49
|
+ android:enabled="true"
|
|
50
|
+ android:exported="true">
|
|
51
|
+ <intent-filter>
|
|
52
|
+ <action android:name="cn.jpush.android.intent.DaemonService" />
|
|
53
|
+ <category android:name="com.diabin.fastec.example" />
|
|
54
|
+ </intent-filter>
|
|
55
|
+ </service>
|
|
56
|
+
|
|
57
|
+ <!-- Required SDK核心功能-->
|
|
58
|
+ <receiver
|
|
59
|
+ android:name="cn.jpush.android.service.PushReceiver"
|
|
60
|
+ android:enabled="true">
|
|
61
|
+ <intent-filter android:priority="1000">
|
|
62
|
+ <action android:name="cn.jpush.android.intent.NOTIFICATION_RECEIVED_PROXY" />
|
|
63
|
+ <category android:name="com.diabin.fastec.example" />
|
|
64
|
+ </intent-filter>
|
|
65
|
+ <intent-filter>
|
|
66
|
+ <action android:name="android.intent.action.USER_PRESENT" />
|
|
67
|
+ <action
|
|
68
|
+ android:name="android.net.conn.CONNECTIVITY_CHANGE"
|
|
69
|
+ tools:ignore="BatteryLife" />
|
|
70
|
+ </intent-filter>
|
|
71
|
+ <!-- Optional -->
|
|
72
|
+ <intent-filter>
|
|
73
|
+ <action android:name="android.intent.action.PACKAGE_ADDED" />
|
|
74
|
+ <action android:name="android.intent.action.PACKAGE_REMOVED" />
|
|
75
|
+
|
|
76
|
+ <data android:scheme="package" />
|
|
77
|
+ </intent-filter>
|
|
78
|
+ </receiver>
|
|
79
|
+
|
|
80
|
+ <!-- Required SDK核心功能-->
|
|
81
|
+ <activity
|
|
82
|
+ android:name="cn.jpush.android.ui.PushActivity"
|
|
83
|
+ android:configChanges="orientation|keyboardHidden"
|
|
84
|
+ android:exported="false"
|
|
85
|
+ android:theme="@android:style/Theme.NoTitleBar">
|
|
86
|
+ <intent-filter>
|
|
87
|
+ <action android:name="cn.jpush.android.ui.PushActivity" />
|
|
88
|
+
|
|
89
|
+ <category android:name="android.intent.category.DEFAULT" />
|
|
90
|
+ <category android:name="com.diabin.fastec.example" />
|
|
91
|
+ </intent-filter>
|
|
92
|
+ </activity>
|
|
93
|
+
|
|
94
|
+ <!-- Required SDK核心功能-->
|
|
95
|
+ <service
|
|
96
|
+ android:name="cn.jpush.android.service.DownloadService"
|
|
97
|
+ android:enabled="true"
|
|
98
|
+ android:exported="false" />
|
|
99
|
+
|
|
100
|
+ <!-- Required SDK核心功能-->
|
|
101
|
+ <receiver android:name="cn.jpush.android.service.AlarmReceiver" />
|
|
102
|
+
|
|
103
|
+ <!-- User defined. 用户自定义的广播接收器-->
|
|
104
|
+ <receiver
|
|
105
|
+ android:name=".push.PushReceiver"
|
|
106
|
+ android:enabled="true">
|
|
107
|
+ <intent-filter>
|
|
108
|
+ <!--Required 用户注册SDK的intent-->
|
|
109
|
+ <action android:name="cn.jpush.android.intent.REGISTRATION" />
|
|
110
|
+ <!--Required 用户接收SDK消息的intent-->
|
|
111
|
+ <action android:name="cn.jpush.android.intent.MESSAGE_RECEIVED" />
|
|
112
|
+ <!--Required 用户接收SDK通知栏信息的intent-->
|
|
113
|
+ <action android:name="cn.jpush.android.intent.NOTIFICATION_RECEIVED" />
|
|
114
|
+ <!--Required 用户打开自定义通知栏的intent-->
|
|
115
|
+ <action android:name="cn.jpush.android.intent.NOTIFICATION_OPENED" />
|
|
116
|
+ <!-- 接收网络变化 连接/断开 since 1.6.3 -->
|
|
117
|
+ <action android:name="cn.jpush.android.intent.CONNECTION" />
|
|
118
|
+ <category android:name="com.diabin.fastec.example" />
|
|
119
|
+ </intent-filter>
|
|
120
|
+ </receiver>
|
|
121
|
+
|
|
122
|
+ <!-- Required. For publish channel feature -->
|
|
123
|
+ <!-- JPUSH_CHANNEL 是为了方便开发者统计APK分发渠道。-->
|
|
124
|
+ <!-- 例如: -->
|
|
125
|
+ <!-- 发到 Google Play 的APK可以设置为 google-play; -->
|
|
126
|
+ <!-- 发到其他市场的 APK 可以设置为 xxx-market。 -->
|
|
127
|
+ <!-- 目前这个渠道统计功能的报表还未开放。-->
|
|
128
|
+ <meta-data
|
|
129
|
+ android:name="JPUSH_CHANNEL"
|
|
130
|
+ android:value="developer-default" />
|
|
131
|
+ <!-- Required. AppKey copied from Portal -->
|
|
132
|
+ <meta-data
|
|
133
|
+ android:name="JPUSH_APPKEY"
|
|
134
|
+ android:value="595369d477b409e0f9096f69" />
|
|
135
|
+ <!--极光推送结束-->
|
|
136
|
+
|
20
|
137
|
</application>
|
21
|
138
|
|
22
|
139
|
</manifest>
|