- ProjectionHolder(授权→VirtualDisplay+ImageReader 消费式监听+帧锁保护) - ProjectionCapturer(对齐 ScreenCapturer 签名,抖音 Port 投影优先) - 授权入口挂我的页(registerForActivityResult 系统弹窗) - 沙盒清单模式全链稳定通过(outcome=已取得 phase=DONE entries=1) - 修复 6 个真机缺陷:消费式监听/死锁/竞态/浮层/坐标/换代识别 - 303 项 JVM 全过;投影 1590 帧持续产出 - 当前瓶颈:OCR 解析质量(51 行仅出 1 条),下一步优化解析器容错 Co-Authored-By: Claude Code <[email protected]>
103 lines
4.5 KiB
XML
103 lines
4.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" />
|
||
<!-- MediaProjection 独立截屏通道(抖音防缓存绕行,2026-11-17) -->
|
||
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_MEDIA_PROJECTION" />
|
||
<!-- 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|mediaProjection">
|
||
<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>
|
||
|
||
<!--
|
||
调试输入法(M4,2026-11-15):文章编辑器标题/正文为自绘(无 EditText 节点),
|
||
ACTION_SET_TEXT 不可用——focus + 本输入法 commitText 直写(绕开拼音 IME 挂起丢字)。
|
||
仅调试/自动化使用:adb shell ime enable/set 切换,用毕恢复原输入法。
|
||
-->
|
||
<service
|
||
android:name=".automation.ime.HaoRuiDebugIme"
|
||
android:exported="true"
|
||
android:label="浩瑞调试输入法"
|
||
android:permission="android.permission.BIND_INPUT_METHOD">
|
||
<intent-filter>
|
||
<action android:name="android.view.InputMethod" />
|
||
</intent-filter>
|
||
<meta-data
|
||
android:name="android.view.im"
|
||
android:resource="@xml/method" />
|
||
</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>
|