Restore the old HyperOS two-finger small-window gesture on HyperOS 4 (Xiaomi 17 Pro Max, Android 17).
On older HyperOS/MIUI versions, while an app is foreground you could:
- Swipe up from the bottom edge with your thumb and keep holding (enters recents drag).
- Press anywhere with your index finger (nothing visible happens yet).
- Release your thumb — the window is dragged to the index-finger position.
- Release your index finger — the window drops into small-window mode there.
On HyperOS 4 the second finger cancels the drag instead. This LSPosed module restores the old behavior by installing an android.view.InputFilter inside system_server.
- Android 16+ (targetSdk 36+)
- LSPosed (libxposed API 102+)
- Root (Magisk / APatch / KernelSU)
- Install the APK from the latest Release.
- Enable the module in LSPosed, scope:
system(andcom.android.systemui). - Reboot.
- Only injects into
system_serverandcom.android.systemui. - Debug log:
adb logcat -s SmallWindowInputFilter:I - Diagnostics build: every release also carries
io.github.zilewang7.smallwindow-*_debug_diag.apk; it writes gesture decisions to/data/system/smallwindow_filter.log(root-readable) for issue reports - Source: https://github.com/zilewang7/HyperOS4SmallWindowInputFilter
恢复 HyperOS 4(小米 17 Pro Max,Android 17)上的旧版双指挂小窗手势。
旧版系统上:拇指从底部上滑进入多任务并按住 → 食指按住任意位置 → 松开拇指,窗口被拖到食指位置 → 松开食指,挂成小窗。HyperOS 4 上第二指会取消拖拽,本模块通过在 system_server 中安装 InputFilter 恢复旧行为。
- 需要:Android 16+、LSPosed(libxposed API 102+)、Root
- 安装:安装最新 Release 的 APK → LSPosed 中启用并勾选
system作用域 → 重启 - 日志:
adb logcat -s SmallWindowInputFilter:I - 诊断版:每个 Release 附带
io.github.zilewang7.smallwindow-*_debug_diag.apk,手势决策写入/data/system/smallwindow_filter.log(root 可读),反馈问题请附上该日志 - 源码:https://github.com/zilewang7/HyperOS4SmallWindowInputFilter