Files
assistant-android/libraries/MiPush/src/main/AndroidManifest.xml
2017-06-29 11:17:01 +08:00

75 lines
2.5 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android = "http://schemas.android.com/apk/res/android"
package = "com.gh.mipush" >
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<!--<uses-permission android:name="android.permission.GET_TASKS" />-->
<uses-permission android:name="android.permission.VIBRATE"/>
<permission
android:name = "${applicationId}.permission.MIPUSH_RECEIVE"
android:protectionLevel = "signature" />
<uses-permission android:name = "${applicationId}.permission.MIPUSH_RECEIVE" />
<application >
<!-- 小米推送需要自定义的receiver -->
<receiver
android:name = "com.gh.base.GHPushMessageReceiver"
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 >
<service
android:enabled="true"
android:process=":pushservice"
android:name="com.xiaomi.push.service.XMPushService"/>
<service
android:name="com.xiaomi.push.service.XMJobService"
android:enabled="true"
android:exported="false"
android:permission="android.permission.BIND_JOB_SERVICE"
android:process=":pushservice" />
<!--此service必须在3.0.1版本以后包括3.0.1版本)加入-->
<service
android:enabled="true"
android:exported="true"
android:name="com.xiaomi.mipush.sdk.PushMessageHandler" />
<service android:enabled="true"
android:name="com.xiaomi.mipush.sdk.MessageHandleService" />
<!--此service必须在2.2.5版本以后包括2.2.5版本)加入-->
<receiver
android:exported="true"
android:name="com.xiaomi.push.service.receivers.NetworkStatusReceiver" >
<intent-filter>
<action android:name="android.net.conn.CONNECTIVITY_CHANGE" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</receiver>
<receiver
android:exported="false"
android:process=":pushservice"
android:name="com.xiaomi.push.service.receivers.PingReceiver" >
<intent-filter>
<action android:name="com.xiaomi.push.PING_TIMER" />
</intent-filter>
</receiver>
</application >
</manifest >