友盟推送的vivo包中没有兼容Android配置android:exported,什么时候出更新包
implementation 'com.umeng.umsdk:vivo-umengaccs:1.1.6'
implementation 'com.umeng.umsdk:vivo-push:3.0.0.4'
我重新写的
<!--替换包中的,兼容Android12 start -->
<service
android:name="com.heytap.msp.push.service.CompatibleDataMessageCallbackService"
android:exported="true"
android:permission="com.coloros.mcs.permission.SEND_MCS_MESSAGE"
tools:replace="android:exported">
<intent-filter>
<action android:name="com.coloros.mcs.action.RECEIVE_MCS_MESSAGE" />
</intent-filter>
</service> <!-- 兼容Q以下版本 -->
<service
android:name="com.heytap.msp.push.service.DataMessageCallbackService"
android:exported="true"
android:permission="com.heytap.mcs.permission.SEND_PUSH_MESSAGE"
tools:replace="android:exported">
<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>
<receiver
android:name="org.android.agoo.vivo.PushMessageReceiverImpl"
android:exported="true"
tools:replace="android:exported">
<intent-filter>
<!-- 接收push消息 -->
<action android:name="com.vivo.pushclient.action.RECEIVE" />
</intent-filter>
</receiver>
<!--替换包中的,兼容Android12 end -->