Help us understand the problem. What is going on with this article?

WakeLock の状態を確認する

More than 5 years have passed since last update.

どのアプリが WakeLock を取得しているかを見る方法。

adb shell dumpsys power

を実行して、ずらっと出力される中から "Wake Locks:" を探す。

POWER MANAGER (dumpsys power)

Power Manager State:

Settings and Configuration:

Screen off timeout: 30000 ms
Screen dim duration: 6000 ms

Wake Locks: size=1
SCREEN_BRIGHT_WAKE_LOCK 'WindowManager' ON_AFTER_RELEASE (uid=1000, pid=389, ws={WorkSource: uids=[10070]})


"Wake Locks: size=1" となっており、
'WindowManager' という TAG で SCREEN_BRIGHT_WAKE_LOCK が取得されているのが分かる。


Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away