Keep Screen Off

Xposed module that stops selected apps from holding the screen awake. The display turns off on your system screen-timeout instead.

Handles both the FLAG_KEEP_SCREEN_ON window flag and screen wakelocks, which video players acquire during playback. PARTIAL_WAKE_LOCK is not affected.

Requirements

  • LSPosed or Vector, with libxposed API 102
  • Android 8.1+

Usage

Enable the module, scope it to the apps you want, then force-stop them.

The system framework does not need to be scoped, as every hook runs in the app's own process.

Limitations

Views that set keepScreenOn in XML are not covered; ViewRootImpl aggregates that into the window flags below every hook here.

Building

./gradlew assembleRelease

Credits

Maintained by ncyxie. Originally by w311ang, forked from VarunS2002/Xposed-Disable-FLAG_SECURE, since rewritten for libxposed API 102.

License

GPL-3.0 — see LICENSE.

Releases

v1.1.0

Stable

9/3/2026, 9:33:35 AM

  • Rewritten for the modern libxposed API. Hooks are now installed once per process rather than per loaded package.
  • Added wakelock handling. Screen wakelocks are downgraded, so apps that bypass window flags can no longer keep the display awake. Partial wakelocks are untouched.
  • Removed inherited hooks that disabled screenshot protection. These were carried over from the parent project and were unrelated to screen wake behaviour.
  • Hook failures are now logged rather than silently ignored.
  • Updated build toolchain and target SDK.

Requires libxposed API 102 — LSPosed 2.1 or Vector 2.2, or newer.


app-release.apk SHA-256
2F4B9D674A35ED209E0A2E82D896CE4F90552637CF7E681A87BB466EA0530A8D

Assets

1