feat:MediaProjection 独立截屏通道——抖音采集数据源问题根本解决:

- 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]>
This commit is contained in:
2026-11-17 15:12:15 +08:00
co-authored by Claude Code
parent 0306ff8bf7
commit 39913c6453
9 changed files with 353 additions and 27 deletions
+3 -1
View File
@@ -17,6 +17,8 @@
<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" />
@@ -61,7 +63,7 @@
<service
android:name=".automation.KeepAliveService"
android:exported="false"
android:foregroundServiceType="dataSync|specialUse">
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." />