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:
mDirty=0x0
(中略)

Settings and Configuration:
mDreamsSupportedConfig=true
(中略)

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 が取得されているのが分かる。

参考

amay077
ランチの時は呼ぶといい!
https://blog.amay0777.net/
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