How can I see which wakelocks are active

前端 未结 8 2154
时光说笑
时光说笑 2020-12-12 16:02

For some reason my Android phone won\'t go to sleep. I assume that a wakelock is keeping it awake, but there is no way to tell which wakelocks are active. The running servic

8条回答
  •  长情又很酷
    2020-12-12 16:26

    In new versions of Android you can see list of wakelocks here:

    adb shell "cat /sys/kernel/debug/wakeup_sources"
    

提交回复
热议问题