ShizuStore

Display Toggle

UlyssesZh

0.1.0 · GitHub

Download APK
Quick settings Android 7.0+ 1 year ago MIT
18 ShizuStore
811 GitHub
22 Stars
7 MB Size

More about this app

Provides quick settings tile and shortcuts to turn off the display without locking the screen or stopping foreground running apps

icon

Display Toggle

An Android app that uses Shizuku to toggle the physical/internal/built-in display on and off without locking the screen or stopping foreground running apps.

There are app shortcuts and Quick Settings tiles to use to toggle the display, too.

Installation

Get it on F-Droid Get it on Obtainium Get it on GitHub

Screenshots

main

Build

./gradlew build

License and credits

MIT.

Core code adapted from here (very short code snippet without a license).

Shortcut icons and Quick Settings tiles icons adapted from Material Symbols & Icons, licensed under Apache-2.0.

Close

How Shizuku is used

Can turn the display off and back on without locking 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 change the display power state without locking the screen or stopping foreground apps.

  • Turn display off and on: the user can switch the screen off and back to normal from buttons in the app, and the chosen mode is applied through a privileged Shizuku user service that calls the system display power control.
  • Quick tiles and shortcuts: the same off and on actions are available from Quick Settings tiles and app shortcuts, which forward the selected mode to the privileged Shizuku user service.

Android APIs or commands used

  • android.view.SurfaceControl#setDisplayPowerMode
  • android.view.SurfaceControl#getInternalDisplayToken
  • android.view.SurfaceControl#getBuiltInDisplay
  • com.android.server.display.DisplayControl#getPhysicalDisplayIds
  • com.android.server.display.DisplayControl#getPhysicalDisplayToken
Close

Changelog

What's new for version 0.1.0

Close

Permissions

2 permissions requested

  • io.github.ulysseszh.displaytoggle.DYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION
  • moe.shizuku.manager.permission.API_V23
Close

Sources

2 sources

0.1.0 Universal GitHub · io.github.ulysseszh.displaytoggle
Selected Download
0.1.0 arm64-v8a,armeabi-v7a,x86,x86_64 F-Droid · io.github.ulysseszh.displaytoggle · io.github.ulysseszh.displaytoggle
Download