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
Click to show internal directories.
Click to hide internal directories.