HyperOS4 SmallWindow Input Filter

Restore the old HyperOS two-finger small-window gesture on HyperOS 4 (Xiaomi 17 Pro Max, Android 17).

What it does

On older HyperOS/MIUI versions, while an app is foreground you could:

  1. Swipe up from the bottom edge with your thumb and keep holding (enters recents drag).
  2. Press anywhere with your index finger (nothing visible happens yet).
  3. Release your thumb — the window glides to the index-finger position over 180 ms.
  4. Move the index finger if needed, then release it to drop the window into small-window mode there.

On HyperOS 4 the second finger cancels the drag instead. This module uses the unified MiuiHome HYOS native runtime provided by Zygisk Next and LSPosed IT, then projects the physical two-finger input into one continuous launcher drag stream with a frame-driven handoff.

Requirements

  • Official HyperOS 4 / Android 17 firmware, arm64-v8a
  • Zygisk Next 1.5.0+
  • LSPosed IT 2.1.1+ with HYOS-spawner support (libxposed API 102)
  • Root (Magisk / APatch / KernelSU)

Validated official MiuiHome builds on Xiaomi 17 Pro Max (2509FPN0BC): 801025361 / RELEASE-8.01.02.5361-260807-08161657-R, 801025459 / RELEASE-8.01.02.5459-260807-08242024-R, 801026241 / RELEASE-8.01.02.6241-260818-09051525-R, and 801027719 / RELEASE-8.01.02.7719-260904-09181618-R. Official launcher updates are matched by validated native behavior structure rather than a version whitelist; missing or ambiguous structures fail closed.

Modified official ROMs and ported/custom ROMs are outside this project's support and issue-triage boundary. Report their runtime or gesture differences to the ROM maintainer.

Install

  1. Install the APK from the latest Release.
  2. Enable the module in LSPosed, scope: com.miui.home.
  3. Reboot.

Notes

  • Native log: adb logcat -s SmallWindowNative:I
  • Diagnostics build: every release also carries io.github.zilewang7.smallwindow-*_debug_diag.apk; it writes to /data/user_de/0/com.miui.home/cache/smallwindow_native.log (root-readable)
  • Source: https://github.com/zilewang7/HyperOS4SmallWindowInputFilter

简介

恢复 HyperOS 4(小米 17 Pro Max,Android 17)上的旧版双指挂小窗手势。

旧版系统上:拇指从底部上滑进入多任务并按住 → 食指按住任意位置 → 松开拇指,窗口在 180 ms 内平滑移动到食指位置 → 可继续移动食指调整位置,松开食指后挂成小窗。HyperOS 4 上第二指会取消拖拽,本模块通过 Zygisk Next 与 LSPosed IT 提供的统一 MiuiHome HYOS native runtime,将物理双指输入投影成连续的桌面单指拖拽流并逐帧完成换指。

  • 需要:官方 HyperOS 4 / Android 17、arm64-v8a、Zygisk Next 1.5.0+、LSPosed IT 2.1.1+(支持 HYOS spawner / libxposed API 102)、Root
  • 已在小米 17 Pro Max(2509FPN0BC)验证官方桌面:801025361 / RELEASE-8.01.02.5361-260807-08161657-R801025459 / RELEASE-8.01.02.5459-260807-08242024-R801026241 / RELEASE-8.01.02.6241-260818-09051525-R801027719 / RELEASE-8.01.02.7719-260904-09181618-R
  • 官方桌面更新按已验证的 native 行为结构匹配,不使用版本白名单;结构缺失或歧义时失败关闭
  • 官改包、移植包及其他第三方修改系统不在本项目的支持和问题受理范围内;请向对应系统维护者反馈
  • 安装:安装最新 Release 的 APK → LSPosed 中启用并勾选 com.miui.home 作用域 → 重启
  • 日志:adb logcat -s SmallWindowNative:I
  • 诊断版:每个 Release 附带 io.github.zilewang7.smallwindow-*_debug_diag.apk,日志写入 /data/user_de/0/com.miui.home/cache/smallwindow_native.log(root 可读)
  • 源码:https://github.com/zilewang7/HyperOS4SmallWindowInputFilter

License

MIT

Releases

1.2.2

Stable

9/22/2026, 5:15:36 PM

遇到问题可安装本 Release 中的 io.github.zilewang7.smallwindow-*_debug_diag.apk 诊断版复现。Native 运行日志位于 /data/user_de/0/com.miui.home/cache/smallwindow_native.log(root 可读),反馈问题时请附上该日志。

If you hit an issue, install the io.github.zilewang7.smallwindow-*_debug_diag.apk diagnostics build from this release. Native runtime decisions are logged to /data/user_de/0/com.miui.home/cache/smallwindow_native.log (root-readable); attach it when reporting.

Full Changelog: zilewang7/HyperOS4SmallWindowInputFilter@v1.2.1...v1.2.2

Assets

1

1.2.1

Stable

9/5/2026, 2:09:48 PM

遇到问题可安装本 Release 中的 io.github.zilewang7.smallwindow-*_debug_diag.apk 诊断版复现。Native 运行日志位于 /data/user_de/0/com.miui.home/cache/smallwindow_native.log(root 可读),反馈问题时请附上该日志。

If you hit an issue, install the io.github.zilewang7.smallwindow-*_debug_diag.apk diagnostics build from this release. Native runtime decisions are logged to /data/user_de/0/com.miui.home/cache/smallwindow_native.log (root-readable); attach it when reporting.

Full Changelog: zilewang7/HyperOS4SmallWindowInputFilter@v1.2.0...v1.2.1

Assets

1

1.2.0

Stable

8/26/2026, 1:35:06 PM

遇到问题可安装本 Release 中的 io.github.zilewang7.smallwindow-*_debug_diag.apk 诊断版复现。Native 运行日志位于 /data/user_de/0/com.miui.home/cache/smallwindow_native.log(root 可读),反馈问题时请附上该日志。

If you hit an issue, install the io.github.zilewang7.smallwindow-*_debug_diag.apk diagnostics build from this release. Native runtime decisions are logged to /data/user_de/0/com.miui.home/cache/smallwindow_native.log (root-readable); attach it when reporting.

Full Changelog: zilewang7/HyperOS4SmallWindowInputFilter@v1.1.0...v1.2.0

Assets

1

1.1.0

Stable

8/20/2026, 3:42:52 PM

1.1.0

  • Package renamed to io.github.zilewang7.smallwindow
  • Smooth teleport glide (180ms) + one-frame hold before drop
  • Stable two-finger small-window gesture on HyperOS 4
  • Signed release build

Assets

1