1.完成头条账号二维码核验,修复首页导航及停止后重试。 2.补齐共享提交会话、取消恢复和未知素材保护。 3.88 项 JVM、19 项 SQLite 测试通过;真机账号核验、停止、重试通过。
83 lines
3.5 KiB
XML
83 lines
3.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
||
<!--
|
||
浩瑞组件、权限与目标应用可见性声明。媒体分享使用 FileProvider URI。
|
||
-->
|
||
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
||
|
||
<queries>
|
||
<package android:name="com.ss.android.article.news" />
|
||
<package android:name="com.baidu.searchbox" />
|
||
<package android:name="com.zhihu.android" />
|
||
<package android:name="com.xingin.xhs" />
|
||
<package android:name="com.sina.weibo" />
|
||
<package android:name="com.ss.android.ugc.aweme" />
|
||
<package android:name="com.android.gallery3d" />
|
||
</queries>
|
||
|
||
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
|
||
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_DATA_SYNC" />
|
||
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_SPECIAL_USE" />
|
||
<!-- Android 13+ 通知运行时权限(仅影响通知可见性,不影响前台化生效) -->
|
||
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
|
||
|
||
<application
|
||
android:allowBackup="false"
|
||
android:icon="@mipmap/ic_launcher"
|
||
android:label="@string/app_name"
|
||
android:supportsRtl="true"
|
||
android:theme="@style/Theme.HaoRui">
|
||
|
||
<activity
|
||
android:name=".MainActivity"
|
||
android:exported="true"
|
||
android:launchMode="singleTop">
|
||
<intent-filter>
|
||
<action android:name="android.intent.action.MAIN" />
|
||
<category android:name="android.intent.category.LAUNCHER" />
|
||
</intent-filter>
|
||
</activity>
|
||
|
||
<!-- 无障碍自动化服务(阶段 2) -->
|
||
<service
|
||
android:name=".automation.HaoRuiAccessibilityService"
|
||
android:exported="true"
|
||
android:label="@string/a11y_label"
|
||
android:permission="android.permission.BIND_ACCESSIBILITY_SERVICE">
|
||
<intent-filter>
|
||
<action android:name="android.accessibilityservice.AccessibilityService" />
|
||
</intent-filter>
|
||
<meta-data
|
||
android:name="android.accessibilityservice"
|
||
android:resource="@xml/accessibility_service_config" />
|
||
</service>
|
||
|
||
<!--
|
||
进程保活前台服务(2026-10-29 根因修复)。
|
||
双类型声明:
|
||
dataSync —— API 29+ 有效,旧机型(含本测试机 vivo/Android 12)认它
|
||
specialUse —— API 34+ 才引入,但无 6 小时时长限制(Android 15 对 dataSync 有 6h 上限)
|
||
运行时按 Build.VERSION.SDK_INT 二选一,见 KeepAliveService。
|
||
-->
|
||
<service
|
||
android:name=".automation.KeepAliveService"
|
||
android:exported="false"
|
||
android:foregroundServiceType="dataSync|specialUse">
|
||
<property
|
||
android:name="android.app.PROPERTY_SPECIAL_USE_FGS_SUBTYPE"
|
||
android:value="Accessibility automation keep-alive: prevents the process from being frozen by Android Cached App Freezer while driving the target app in background." />
|
||
</service>
|
||
|
||
<provider
|
||
android:name="androidx.core.content.FileProvider"
|
||
android:authorities="${applicationId}.fileprovider"
|
||
android:exported="false"
|
||
android:grantUriPermissions="true">
|
||
<meta-data
|
||
android:name="android.support.FILE_PROVIDER_PATHS"
|
||
android:resource="@xml/file_paths" />
|
||
</provider>
|
||
|
||
</application>
|
||
|
||
</manifest>
|