Skip to content
 
 

Repository files navigation

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.

About

An Xposed module that stops selected apps from keeping the screen awake.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages