wjc
3 天以前 0fd8faf8061369296b4a92b081d83c940dfc233e
app/src/main/AndroidManifest.xml
@@ -15,7 +15,7 @@
    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> <!-- <uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE" />&lt;!&ndash;外部存储目录访问权限 谷歌play上架不了&ndash;&gt; -->
    <uses-permission android:name="android.permission.WRITE_INTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.CHANGE_WIFI_MULTICAST_STATE" /> <!-- wifi状态权限 -->
    <uses-permission android:name="android.permission.FOREGROUND_SERVICE" /> <!-- 前台服务权限 -->
    <!-- <uses-permission android:name="android.permission.FOREGROUND_SERVICE" /> -->
    <uses-permission android:name="android.permission.INTERNET" /> <!-- 开启网络权限 -->
    <!-- 位置信息 -->
@@ -89,8 +89,9 @@
    <uses-permission android:name="com.hdl.photovoltaic.permission.JPUSH_MESSAGE" /> <!-- 适配Android13,弹出通知必须权限 -->
    <uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
    <!-- 添加 dataSync 前台服务权限 -->
    <uses-permission android:name="android.permission.FOREGROUND_SERVICE_DATA_SYNC" />
<!--    <uses-permission android:name="android.permission.FOREGROUND_SERVICE" /> &lt;!&ndash; 前台服务权限 &ndash;&gt;-->
<!--    &lt;!&ndash; 添加 dataSync 前台服务权限 &ndash;&gt;-->
<!--    <uses-permission android:name="android.permission.FOREGROUND_SERVICE_DATA_SYNC" />-->
    <queries>
        <package android:name="com.hdl.photovoltaic.services" />
@@ -106,59 +107,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 +175,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 +213,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,42 +243,10 @@
            <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" />
        <service
            android:name=".services.UniappService"
            android:enabled="true"
            android:exported="true">
            <intent-filter>
                <action android:name="UniappService.ACTION" />
            </intent-filter>
        </service> <!-- <service -->
        <!-- android:name=".services.ForeService" -->
        <!-- android:enabled="true" -->
        <!-- android:exported="true" /> -->
@@ -343,24 +257,12 @@
                <action android:name="com.google.firebase.MESSAGING_EVENT" />
            </intent-filter>
        </service>
        <service
            android:name=".uni.MyForegroundService"
            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>
<!--        <service-->
<!--            android:name=".uni.MyForegroundService"-->
<!--            android:enabled="true"-->
<!--            android:exported="false"-->
<!--            android:foregroundServiceType="dataSync" /> &lt;!&ndash; Android 10+ 需要指定类型 &ndash;&gt;-->
        <meta-data
            android:name="design_height_in_dp"