| | |
| | | <uses-permission android:name="android.permission.WRITE_SETTINGS" /> |
| | | <uses-permission android:name="android.permission.READ_LOGS" /> |
| | | <uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES"/> |
| | | <permission android:name="android.permission.INTERACT_ACROSS_USERS_FULL" android:protectionLevel="signature"/> |
| | | <!-- Required --> |
| | | <permission android:name="${appId}.permission.JPUSH_MESSAGE" android:protectionLevel="signature" /> |
| | | <uses-permission android:name="${appId}.permission.JPUSH_MESSAGE" /> |
| | | <uses-permission android:name="android.permission.RECEIVE_USER_PRESENT" /> |
| | | <uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS" /> |
| | | |
| | | <application |
| | | android:allowBackup="true" |
| | | android:icon="@drawable/app_icon" |
| | | android:hardwareAccelerated="false" |
| | | android:isGame="true" |
| | | android:label="@string/app_name" |
| | |
| | | </activity> |
| | | |
| | | <!-- 针对7.0以上的api开放的文件权限 --> |
| | | <provider |
| | | android:name="android.support.v4.content.FileProvider" |
| | | android:authorities="${appId}.fileProvider" |
| | | android:grantUriPermissions="true" |
| | | android:exported="false"> |
| | | <meta-data |
| | | android:name="android.support.FILE_PROVIDER_PATHS" |
| | | android:resource="@xml/file_paths" /> |
| | | </provider> |
| | | |
| | | <meta-data |
| | | android:name="yl_appid" |
| | | android:value="226114725" /> |
| | | <meta-data |
| | | android:name="yl_channelid" |
| | | android:value="1000" /> |
| | | <meta-data |
| | | android:name="yl_platform_id" |
| | | android:value="1000" /> |
| | | |
| | | <meta-data |
| | | android:name="TrackAppID" |
| | | android:value="${TrackAppID}" /> |
| | | <meta-data |
| | | android:name="TrackChannelID" |
| | | android:value="${TrackChannelID}" /> |
| | | |
| | | <!-- Required SDK 核心功能--> |
| | | <!-- 可配置android:process参数将PushService放在其他进程中 --> |
| | | <service |
| | | android:name="cn.jpush.android.service.PushService" |
| | | android:exported="false" |
| | | android:process=":mult"> |
| | | <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 3.0.9 Required SDK 核心功能--> |
| | | <provider |
| | | android:name="cn.jpush.android.service.DataProvider" |
| | | android:authorities="${appId}.DataProvider" |
| | | android:exported="true" /> |
| | | |
| | | <!-- since 1.8.0 option 可选项。用于同一设备中不同应用的JPush服务相互拉起的功能。 --> |
| | | <!-- 若不启用该功能可删除该组件,将不拉起其他应用也不能被其他应用拉起 --> |
| | | <service |
| | | android:name="cn.jpush.android.service.DaemonService" |
| | | android:enabled="true" |
| | | android:exported="true"> |
| | | <intent-filter> |
| | | <action android:name="cn.jpush.android.intent.DaemonService" /> |
| | | <category android:name="${appId}" /> |
| | | </intent-filter> |
| | | </service> |
| | | |
| | | <!-- since 3.1.0 Required SDK 核心功能--> |
| | | <provider |
| | | android:name="cn.jpush.android.service.DownloadProvider" |
| | | android:authorities="${appId}.DownloadProvider" |
| | | android:exported="true" /> |
| | | |
| | | <!-- Required SDK核心功能--> |
| | | <receiver |
| | | android:name="cn.jpush.android.service.PushReceiver" |
| | | android:enabled="true"> |
| | | <intent-filter android:priority="1000"> |
| | | <action android:name="cn.jpush.android.intent.NOTIFICATION_RECEIVED_PROXY" /> |
| | | <category android:name="${appId}" /> |
| | | </intent-filter> |
| | | <intent-filter> |
| | | <action android:name="android.intent.action.USER_PRESENT" /> |
| | | <action android:name="android.net.conn.CONNECTIVITY_CHANGE" /> |
| | | </intent-filter> |
| | | <!-- Optional --> |
| | | <intent-filter> |
| | | <action android:name="android.intent.action.PACKAGE_ADDED" /> |
| | | <action android:name="android.intent.action.PACKAGE_REMOVED" /> |
| | | |
| | | <data android:scheme="package" /> |
| | | </intent-filter> |
| | | </receiver> |
| | | |
| | | <!-- Required SDK核心功能--> |
| | | <activity |
| | | android:name="cn.jpush.android.ui.PushActivity" |
| | | android:configChanges="orientation|keyboardHidden" |
| | | android:exported="false" |
| | | 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="${appId}" /> |
| | | </intent-filter> |
| | | </activity> |
| | | <!-- SDK核心功能--> |
| | | <activity |
| | | android:name="cn.jpush.android.ui.PopWinActivity" |
| | | android:configChanges="orientation|keyboardHidden" |
| | | android:exported="false" |
| | | android:theme="@style/MyDialogStyle"> |
| | | <intent-filter> |
| | | <category android:name="android.intent.category.DEFAULT" /> |
| | | <category android:name="${appId}" /> |
| | | </intent-filter> |
| | | </activity> |
| | | |
| | | <!-- Required SDK核心功能--> |
| | | <service |
| | | android:name="cn.jpush.android.service.DownloadService" |
| | | android:enabled="true" |
| | | android:exported="false"></service> |
| | | |
| | | <!-- Required SDK核心功能--> |
| | | <receiver android:name="cn.jpush.android.service.AlarmReceiver" /> |
| | | |
| | | <!-- Required since 3.0.7 --> |
| | | <!-- 新的tag/alias接口结果返回需要开发者配置一个自定的广播 --> |
| | | <!-- 该广播需要继承JPush提供的JPushMessageReceiver类, 并如下新增一个 Intent-Filter --> |
| | | <!--<receiver--> |
| | | <!--android:name="自定义 Receiver"--> |
| | | <!--android:enabled="true" >--> |
| | | <!--<intent-filter>--> |
| | | <!--<action android:name="cn.jpush.android.intent.RECEIVE_MESSAGE" />--> |
| | | <!--<category android:name="您应用的包名" />--> |
| | | <!--</intent-filter>--> |
| | | <!--</receiver>--> |
| | | |
| | | <!--<!– User defined. 用户自定义的广播接收器–>--> |
| | | <receiver |
| | | android:name="com.secondworld.univeralsdk.JPushReceiver" |
| | | android:enabled="true"> |
| | | <intent-filter> |
| | | <!--Required 用户注册SDK的intent--> |
| | | <action android:name="cn.jpush.android.intent.REGISTRATION" /> |
| | | <!--Required 用户接收SDK消息的intent--> |
| | | <action android:name="cn.jpush.android.intent.MESSAGE_RECEIVED" /> |
| | | <!--Required 用户接收SDK通知栏信息的intent--> |
| | | <action android:name="cn.jpush.android.intent.NOTIFICATION_RECEIVED" /> |
| | | <!-- 接收网络变化 连接/断开 since 1.6.3 --> |
| | | <action android:name="cn.jpush.android.intent.CONNECTION" /> |
| | | <category android:name="${appId}" /> |
| | | </intent-filter> |
| | | </receiver> |
| | | |
| | | <!-- Required. For publish channel feature --> |
| | | <!-- JPUSH_CHANNEL 是为了方便开发者统计APK分发渠道。--> |
| | | <!-- 例如: --> |
| | | <!-- 发到 Google Play 的APK可以设置为 google-play; --> |
| | | <!-- 发到其他市场的 APK 可以设置为 xxx-market。 --> |
| | | <meta-data |
| | | android:name="JPUSH_CHANNEL" |
| | | android:value="developer-default" /> |
| | | <!-- Required. AppKey copied from Portal --> |
| | | <meta-data |
| | | android:name="JPUSH_APPKEY" |
| | | android:value="22186239fee975f883198cf4" /> |
| | | <!--<provider--> |
| | | <!--android:name="android.support.v4.content.FileProvider"--> |
| | | <!--android:authorities="${appId}.fileProvider"--> |
| | | <!--android:grantUriPermissions="true"--> |
| | | <!--android:exported="false">--> |
| | | <!--<meta-data--> |
| | | <!--android:name="android.support.FILE_PROVIDER_PATHS"--> |
| | | <!--android:resource="@xml/file_paths" />--> |
| | | <!--</provider>--> |
| | | |
| | | </application> |
| | | |