suspend_logger

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: 10 Imported by: 0

Documentation

Overview

Acquire and release a wake lock via the PowerManager binder service.

Uses the framework PowerManager service (accessible from shell context) rather than the SystemSuspend HAL (which requires privileged SELinux context).

Build:

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

Jump to

Keyboard shortcuts

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