mirror of
https://github.com/Silent1566/webhtv.git
synced 2026-10-08 19:44:46 +00:00
移除:删除音频指纹去广告与语音广告识别功能,向 Silent1566 上游靠齐
删除 app/src/main/java/com/fongmi/android/tv/ad/audio 全部 45 个类与其 37 个测试类、 AdSkipPromptPresenter、SpeechRecognitionFactory、RealtimeSubtitleSpeechRecognitionFactory, 以及 speech_ad_rules_v1.txt、probe-rules-v1-community.json 和 11 个只服务于这两个功能的文档。 清理接线:PlayerManager 的 AdAudioRuntimeController/AdAudioPlaybackPort/管线重建预算与 refreshAdAudioRuntime 调用;PlaybackActivity 的 AdSkipPromptPresenter 绑定;Backup 的 SpeechAdSetting.sanitizePreferences 通道与三个 speech_ad 偏好键;PlaybackMediaSignalHub 的 AD_AUDIO consumer 种类;RealtimeSubtitleRecognizer 的 AD_AUDIO 执行 profile。 设置页删除音频识别分组(指纹开关、自动跳过、社区规则源、语音开关/关键词/规则/时长/模式), 三套 strings.xml 各删 66 条键并把去广告摘要改为“总开关、规则、片头片尾”。 移除仅被签名规则包使用的 Tink 依赖。 保留接口/HLS/AI 规则去广告、广告统计、片头片尾区间跳过与实时字幕;PCM Hub 与 rebuildAudioPipeline 仍由实时字幕使用,故未删除。 Verification: compileLeanbackArm64_v8aDebugJavaWithJavac + compileMobileArm64_v8aDebugJavaWithJavac BUILD SUCCESSFUL; testLeanbackArm64_v8aDebugUnitTest 4039 tests + testMobileArm64_v8aDebugUnitTest 4885 tests, 0 failures/0 errors (--rerun-tasks, full re-run); targeted bean/setting/player.audio/subtitle suites 0 failures; scripts/build_arm64_debug_install.sh --flavor mobile --serial 192.168.50.3:5555 BUILD SUCCESSFUL + overwrite install Success; device cold start no crash/no FATAL/no ClassNotFound, Ad settings page shows only Basic/Rules+stats/Segment-skipping, prefs ad_audio*/speech_ad* count 0 while adblock/ai_ad_detection/auto_skip_intro_outro intact; residual AdAudio|SpeechAd|AudioFingerprint|ProbeRule|AdSkipCoordinator|SpeechRecognitionFactory references 0 in app/src and docs/; git diff --check clean Task-Guard: C45-remove-ad-audio-fingerprint-speech
This commit is contained in:
parent
d8daedf86c
commit
56ebd07f10
120 changed files with 112 additions and 24793 deletions
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue