Per-App Android Audio Focus Orchestrator · 让音源共存,而不是让所有焦点失效。
FocusWeave (io.github.skydomainedge.focusweave) is an open-source (GNU GPLv3) per-app Android audio focus orchestrator powered by Modern libxposed API 102 and Jetpack Compose Material 3 Expressive.
Instead of globally short-circuiting requestAudioFocus or faking AUDIOFOCUS_REQUEST_GRANTED, FocusWeave hooks only FocusRequester.handleFocusLossFromGain and FocusRequester.frameworkHandleFocusLoss inside system_server (ExceptionMode.PASSTHROUGH) to arbitrate focus loss solely for explicitly matched app pairs.
- Per-App Incoming Protection: Independently configure permanent loss (
GAIN), transient interruption (TRANSIENT), and 3-way ducking (SYSTEM/IGNORE/APP_CALLBACK), optionally restricted to a UID-verified allowlist of up to 32 trigger sources. - Outgoing Courtesy (
polite): Allow a configured app to yield to other active media when requesting ordinary media focus. - Strict Safety Gates & Android 15+ Eligibility: Calls, VoIP, alarms, navigation, speech (
CONTENT_TYPE_SPEECH),GAIN_TRANSIENT_EXCLUSIVE, focus locks,forceDuck, externalAudioPolicy/AAOS, same-UID, cross-user, and shared-UID paths always stay on system.requestAudioFocusis never hooked. - Zero DSP / Volume Intrusion: Never touches
audio_effects,AudioEffect, PCM,VolumeShaper, or stream volume.
- Requirements: Android 12L–16 (API 32–36; API 37 experimental passthrough by default) + LSPosed supporting Modern Xposed API 102.
- Download One Standalone APK: Install either
arm64-v8a(recommended for most modern devices) orarmeabi-v7a— not both. - Select Scope & Reboot: Enable FocusWeave in LSPosed, check
system(system_server) only (NOTandroid, and do not check media apps), then reboot. - Configure Rules: Open FocusWeave → Apps → configure per-app rules → return to Overview and turn on Local rule control.
Do not run legacy global focus-bypass modules alongside FocusWeave. If migrating from legacy
v2.0.x(io.github.focusweave), uninstall the old package first.
FocusWeave(焦点织控)(io.github.skydomainedge.focusweave)是一款遵循 GNU GPLv3 开源协议、基于 Modern libxposed API 102 与 Jetpack Compose Material 3 Expressive 开发的按应用 Android 音频焦点仲裁模块。
模块摒弃全局短路 requestAudioFocus 并伪造 AUDIOFOCUS_REQUEST_GRANTED 的做法,仅在 system_server 中以 ExceptionMode.PASSTHROUGH 双 Hook FocusRequester.handleFocusLossFromGain 与 frameworkHandleFocusLoss,仅对明确命中的应用与来源调整失焦处理。
- 受打断保护(Incoming):按应用独立配置忽略永久失焦(
GAIN)、忽略短暂打断(TRANSIENT)与三态压低策略(SYSTEM/IGNORE/APP_CALLBACK),并支持按包名与完整 UID 限定最多 32 个触发来源。 - 主动礼让(
polite/ Outgoing):允许指定应用在主动请求普通媒体焦点时礼让其他正在播放的媒体。 - 严苛安全门与 Android 15+ 资格保留:通话、VoIP、闹钟、导航、语音(
CONTENT_TYPE_SPEECH)、GAIN_TRANSIENT_EXCLUSIVE、焦点锁、forceDuck、外部AudioPolicy/AAOS、同 UID、跨用户与共享 UID 一律强制透传系统;绝不 HookrequestAudioFocus。 - 零侵入 DSP 与音频底层:不修改
audio_effects、AudioEffect、PCM、VolumeShaper或媒体流音量。
- 环境要求:Android 12L–16(API 32–36;API 37 默认透传,仅实验)+ 支持 Modern Xposed API 102 的 LSPosed。
- 二选一安装独立 APK:按设备应用 ABI 下载
arm64-v8a(绝大多数设备首选)或armeabi-v7a其一安装即可。 - 勾选作用域并重启:在 LSPosed 中启用模块,作用域仅勾选
system(system_server)(不要勾选android,也无需勾选媒体应用),保存后手动重启设备。 - 配置规则:打开「焦点织控」→「应用」设置对应应用规则 → 返回「概览」开启本地规则总开关。
不要同时启用旧版全局短路音频焦点模块。若此前安装过旧版
v2.0.x(io.github.focusweave),请先卸载旧包再安装v2.1.0。
Copyright (C) 2026 Skydomainedge — Licensed under the GNU General Public License v3.0 or later (GPL-3.0-or-later). See LICENSE and the source repository.