ShizuStore

息屏运行

WuDi-ZhanShen

20 · GitHub

Download APK
Power management Android 5.0+ 2 years ago Proprietary
23 ShizuStore
10.1k GitHub
265 Stars
92 KB Size

More about this app

Turn off your Android's screen without entering standby/sleep mode

ScreenOff

An android app to control your Android's screen to display or not display via Shizuku. This is not the same with pressing power key, since other APPs will CONTINUE working after turning off the screen.

How it works

By reflecting "android.view.SurfaceControl" (the same way with Scrcpy). Check it in "SurfaceControl.java".

Close

How Shizuku is used

Can turn the screen off without sleeping and back on via `SurfaceControl.setDisplayPowerMode` through Shizuku.

This is an AI-assisted analysis of Shizuku-related usages in the app's public source code. It is best effort, so it may not catch every single usage.

How this app uses Shizuku

Shizuku is used to start a privileged helper that controls the display power while keeping the device awake.

  • Turn screen off awake: turn the display off without entering standby and turn it back on from the in app switch, using display power control through Shizuku.
  • Trigger from system controls: start the screen off or on from the quick tile, shortcut activities, volume keys and floating control, using the same privileged display control through Shizuku.
  • Control over local network: check the current screen state and switch the display off or on from a local web page, using the same privileged display control through Shizuku.

Android APIs or commands used

  • android.view.SurfaceControl.setDisplayPowerMode
  • android.view.SurfaceControl.getBuiltInDisplay
  • android.view.SurfaceControl.getInternalDisplayToken
  • com.android.server.display.DisplayControl.getPhysicalDisplayIds
  • com.android.server.display.DisplayControl.getPhysicalDisplayToken
  • android.app.IActivityManager.broadcastIntent
  • android.app.IActivityManager.unbroadcastIntent
  • pm grant
  • app_process
  • sh
Close

Changelog

What's new for version 20

Close

Permissions

6 permissions requested

  • android.permission.INTERNET
  • android.permission.SYSTEM_ALERT_WINDOW
  • android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS
  • android.permission.RECEIVE_BOOT_COMPLETED
  • android.permission.WRITE_SECURE_SETTINGS
  • moe.shizuku.manager.permission.API_V23
Close