rotation_resolver

command
v0.0.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 6, 2026 License: CC0-1.0 Imports: 9 Imported by: 0

Documentation

Overview

Query device rotation and display state via WindowManager and DisplayManager.

The rotation resolver service is a bound Java service only available to the system server. Instead, this example queries the actual rotation state through WindowManager (GetDefaultDisplayRotation, IsRotationFrozen, HasNavigationBar, IsKeyguardLocked) and DisplayManager (display IDs, brightness).

Build:

GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go build -o build/rotation_resolver ./examples/rotation_resolver/
adb push build/rotation_resolver /data/local/tmp/ && adb shell /data/local/tmp/rotation_resolver

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL