3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

WakeLock の状態を確認する

Posted at

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

参考

3
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?