wjc
2 天以前 1c91b62ea573082581e72fd433d02e3dc52dbf51
app/src/main/AndroidManifest.xml
@@ -106,59 +106,6 @@
        android:supportsRtl="false"
        android:theme="@style/Theme.PhotovoltaicDebug"
        tools:replace="android:supportsRtl">
        <!-- 厂商通道专用Activity(透明中转页),创建一个透明的Activity来处理厂商通道点击 -->
        <!--        <activity-->
        <!--            android:name=".push.VendorChannelActivity"-->
        <!--            android:excludeFromRecents="true"-->
        <!--            android:exported="true"-->
        <!--            android:launchMode="singleTask"-->
        <!--            android:noHistory="true"-->
        <!--            android:screenOrientation="portrait"-->
        <!--            android:taskAffinity="">-->
        <activity
            android:name=".push.VendorChannelActivity"
            android:exported="true"
            android:screenOrientation="portrait">
            <!--            &lt;!&ndash; 小米通道 &ndash;&gt;-->
            <!--            <intent-filter>-->
            <!--                <action android:name="android.intent.action.VIEW" />-->
            <!--                <category android:name="android.intent.category.DEFAULT" />-->
            <!--                <category android:name="android.intent.category.BROWSABLE" />-->
            <!--                <data-->
            <!--                    android:host="com.hdl.photovoltaic"-->
            <!--                    android:scheme="push" />-->
            <!--            </intent-filter>-->
            <!--            &lt;!&ndash; 华为通道 &ndash;&gt;-->
            <!--            <intent-filter>-->
            <!--                <action android:name="android.intent.action.VIEW" />-->
            <!--                <category android:name="android.intent.category.DEFAULT" />-->
            <!--                <data-->
            <!--                    android:host="com.hdl.photovoltaic.huawei"-->
            <!--                    android:scheme="push" />-->
            <!--            </intent-filter>-->
            <!--            &lt;!&ndash; OPPO通道 &ndash;&gt;-->
            <!--            <intent-filter>-->
            <!--                <action android:name="android.intent.action.VIEW" />-->
            <!--                <category android:name="android.intent.category.DEFAULT" />-->
            <!--                <data-->
            <!--                    android:host="com.hdl.photovoltaic.oppo"-->
            <!--                    android:scheme="push" />-->
            <!--            </intent-filter>-->
            <!--            &lt;!&ndash; vivo通道 &ndash;&gt;-->
            <!--            <intent-filter>-->
            <!--                <action android:name="android.intent.action.VIEW" />-->
            <!--                <category android:name="android.intent.category.DEFAULT" />-->
            <!--                <data-->
            <!--                    android:host="com.hdl.photovoltaic.vivo"-->
            <!--                    android:scheme="push" />-->
            <!--            </intent-filter>-->
        </activity>
        <activity
            android:name=".ui.me.NotificationSettingsActivity"
            android:exported="false" />
@@ -227,7 +174,6 @@
            android:name=".ui.me.CPersonalDataActivity"
            android:exported="false" />
        <service android:name=".widget.apkwgtupload.ApkDownLoadService" /> <!-- largeHeap="true" 临时缓解内存不足问题 -->
        <activity
            android:name=".ui.me.WebActivity"
            android:exported="false"
@@ -266,7 +212,6 @@
            android:name=".ui.LoginActivity"
            android:exported="false"
            android:theme="@style/login_Theme" />
        <activity android:name=".widget.apkwgtupload.AndroidPermissionActivity" />
        <activity
            android:name=".ui.StartActivity"
            android:exported="true"
@@ -297,31 +242,7 @@
            <meta-data
                android:name="android.support.FILE_PROVIDER_PATHS"
                android:resource="@xml/dcloud_file_provider" />
        </provider> <!-- Since JCore2.0.0 Required SDK核心功能 -->
        <!-- 可配置android:process参数将Service放在其他进程中;android:enabled属性不能是false -->
        <!-- 这个是自定义Service,要继承极光JCommonService,可以在更多手机平台上使得推送通道保持的更稳定 -->
        <service
            android:name=".push.jpush.JpushService"
            android:enabled="true"
            android:exported="false"
            android:process=":pushcore">
            <intent-filter>
                <action android:name="cn.jiguang.user.service.action" />
            </intent-filter>
        </service> <!-- Required since 5.2.0 -->
        <!-- 新的 tag/alias 接口结果返回需要开发者配置一个自定义的Service -->
        <!-- 5.2.0开始所有事件将通过该类回调 -->
        <!-- 该广播需要继承 JPush 提供的 JPushMessageService 类, 并如下新增一个 Intent-Filter -->
        <service
            android:name=".push.jpush.JPushReceiverService"
            android:enabled="true"
            android:exported="false">
            <intent-filter>
                <action android:name="cn.jpush.android.intent.SERVICE_MESSAGE" />
                <category android:name="com.hdl.photovoltaic" />
            </intent-filter>
        </service> <!-- uniMqtt必要的,开启mqtt1883端口一个服务 -->
        </provider>
        <service
            android:name="org.eclipse.paho.android.service.MqttService"
            android:exported="false" />
@@ -348,19 +269,7 @@
            android:enabled="true"
            android:exported="false"
            android:foregroundServiceType="dataSync" /> <!-- Android 10+ 需要指定类型 -->
        <receiver
            android:name=".push.aliyun.MyAliYunMessageReceiver"
            android:exported="false">
            <intent-filter>
                <action android:name="com.alibaba.push2.action.NOTIFICATION_OPENED" />
            </intent-filter>
            <intent-filter>
                <action android:name="com.alibaba.push2.action.NOTIFICATION_REMOVED" />
            </intent-filter>
            <intent-filter>
                <action android:name="com.alibaba.sdk.android.push.RECEIVE" />
            </intent-filter>
        </receiver>
        <meta-data
            android:name="design_height_in_dp"