Quick: Debugging Power Management

Quick reference over battery-related debugging, mainly for myself.

adb

adb shell dumpsys battery unplug
adb shell dumpsys deviceidle step

Link: StackOverflow: Force Android to sleep

Kernel

echo 1 > /sys/power/pm_print_times
adb connect xxxx
adb wait-for-device
adb shell "echo mem > /sys/power/state"

Published by

Edit source on Github