FocusWeave — Per-App Android Audio Focus Orchestrator

FocusWeave · 焦点织控

Per-App Android Audio Focus Orchestrator · 让音源共存,而不是让所有焦点失效。

Source Code / 源码仓库 · 中文文档 · English Docs · Issues / 反馈


English

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.

Key Features

  • 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, external AudioPolicy/AAOS, same-UID, cross-user, and shared-UID paths always stay on system. requestAudioFocus is never hooked.
  • Zero DSP / Volume Intrusion: Never touches audio_effects, AudioEffect, PCM, VolumeShaper, or stream volume.

Setup

  1. Requirements: Android 12L–16 (API 32–36; API 37 experimental passthrough by default) + LSPosed supporting Modern Xposed API 102.
  2. Download One Standalone APK: Install either arm64-v8a (recommended for most modern devices) or armeabi-v7a — not both.
  3. Select Scope & Reboot: Enable FocusWeave in LSPosed, check system (system_server) only (NOT android, and do not check media apps), then reboot.
  4. 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 一律强制透传系统;绝不 Hook requestAudioFocus。
  • 零侵入 DSP 与音频底层:不修改 audio_effects、AudioEffect、PCM、VolumeShaper 或媒体流音量。

四步上手

  1. 环境要求:Android 12L–16(API 32–36;API 37 默认透传,仅实验)+ 支持 Modern Xposed API 102 的 LSPosed。
  2. 二选一安装独立 APK:按设备应用 ABI 下载 arm64-v8a(绝大多数设备首选)或 armeabi-v7a 其一安装即可。
  3. 勾选作用域并重启:在 LSPosed 中启用模块,作用域仅勾选 system(system_server)(不要勾选 android,也无需勾选媒体应用),保存后手动重启设备。
  4. 配置规则:打开「焦点织控」→「应用」设置对应应用规则 → 返回「概览」开启本地规则总开关。

不要同时启用旧版全局短路音频焦点模块。若此前安装过旧版 v2.0.x(io.github.focusweave),请先卸载旧包再安装 v2.1.0。


FocusWeave Interface Preview

License

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.

Releases

v2.1.0

Stable

12/3/2026, 2:35:58 PM

FocusWeave v2.1.0 (versionCode 20100)

Per-app Android audio focus orchestrator (Modern libxposed API 102 · GNU GPLv3).

Highlights / 更新要点

  • Standalone Package (io.github.skydomainedge.focusweave): Clean standalone repository (Skydomainedge/FocusWeave-Xposed), personal namespace for Xposed-Modules-Repo, and standard GNU GPLv3 (GPL-3.0-or-later) license.
  • Per-App Focus Arbitration: Dual FocusRequester hooks with ExceptionMode.PASSTHROUGH, zero requestAudioFocus fake-grants, zero DSP/PCM/volume intrusion, strict safety gates, and Android 15+ top/FGS focus eligibility preserved.
  • Zero-Telemetry Release: Strictly verified via static DEX checks (debug_telemetry: absent_verified), 16 KB alignment (zipalign -P 16), and apksigner verify.

Downloads / 安装包说明

Pick ONE standalone APK matching your device's supported app ABI (not Split APKs):

  • FocusWeave-v2.1.0-arm64-v8a.apk — 64-bit ARM (recommended for most modern devices)
  • FocusWeave-v2.1.0-armeabi-v7a.apk — 32-bit ARM
  • SHA256SUMS & build-receipt.json — SHA-256 checksums and build/signing verification receipt

Scope / 作用域: Check system (system_server) only (NOT android), then reboot.
Source & full docs: https://github.com/Skydomainedge/FocusWeave-Xposed

Assets

4