ADB 调试连接时保持屏幕常亮。 Keep the screen on while ADB debugging is connected.
一个 LSPosed 模块:开启 USB 调试时屏幕保持常亮,关闭后自动恢复原有的屏幕超时设置。无界面、无桌面图标,仅在 LSPosed 中管理。
使用
- 在 LSPosed 中启用本模块,作用域仅勾选「系统框架 (system)」。
- 重启设备。
兼容
- LSPosed(libxposed API 102)
- minSdk 26 / targetSdk 35,已在 Android 15 / HyperOS 2 实测通过
源码与构建说明:https://github.com/GeneralPeople1970/AdbStayAwake
An LSPosed module that keeps the screen on while USB debugging is enabled, and restores your normal screen timeout once it is turned off. No UI, no launcher icon — managed entirely from LSPosed.
Usage
- Enable the module in LSPosed and set its scope to System Framework only.
- Reboot.
Compatibility
- LSPosed (libxposed API 102)
- minSdk 26 / targetSdk 35, tested on Android 15 / HyperOS 2
Source & build instructions: https://github.com/GeneralPeople1970/AdbStayAwake
仅供自有设备使用,按「现状」提供,无任何担保。 For use on your own device, provided "as is" without warranty.