feat: 识别口令(剪贴板口令识别 → 灵动岛) - #96
Open
Tech--man wants to merge 1 commit into
Open
Conversation
- 新增剪贴板监听 + 抖音口令识别器,匹配后向灵动岛分发打开抖音 - 可配置识别开关、超时时长、去重窗口、点击后清空剪贴板 - 修复 XposedPrefsSyncApp.CORE_PREF_KEYS 未包含 command_token key 导致 SystemUI 侧读不到开关值的同步 bug - 补充 DouyinTokenRecognizer 单元测试
Owner
|
暂不考虑合入: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
功能
新增「识别口令」功能:监听剪贴板,识别抖音口令后通过灵动岛提示一键打开抖音。
实现
Bug 修复
修复 XposedPrefsSyncApp.CORE_PREF_KEYS 与 ConfigManager.CORE_PREF_KEYS 不同步问题:新增的 5 个 command_token key 只在 SystemUI 侧 ConfigManager 注册为 core key,App 侧同步时却按 shard key 分发,导致 SystemUI 读 core 时拿不到开关值(永远为 false),功能完全不生效。本次在 XposedPrefsSyncApp 侧补齐 5 个 key。
测试
实机验证(小米机型 + LSPosed):