15
16

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.

Android N Doze mode first(浅いDoze)を検証するコマンド

Last updated at Posted at 2016-06-17

Android N preview4が出たのでDoze mode firstの検証を行うためのコマンドを調査したところ、オプションに[light|deep]が追加されていることがわかりました。

ヘルプの確認
~ adb shell dumpsys deviceidle -h
Device idle controller (deviceidle) commands:
  help
    Print this help text.
  step [light|deep]
    Immediately step to next state, without waiting for alarm.
  force-idle [light|deep]
    Force directly into idle mode, regardless of other device state.
  force-inactive
    Force to be inactive, ready to freely step idle states.
  unforce
    Resume normal functioning after force-idle or force-inactive.
  get [light|deep|force|screen|charging|network]
    Retrieve the current given state.
  disable [light|deep|all]
    Completely disable device idle mode.
  enable [light|deep|all]
    Re-enable device idle mode after it had previously been disabled.
  enabled [light|deep|all]
    Print 1 if device idle mode is currently enabled, else 0.
  whitelist
    Print currently whitelisted apps.
  whitelist [package ...]
    Add (prefix with +) or remove (prefix with -) packages.
  tempwhitelist [-u] [package ..]
    Temporarily place packages in whitelist for 10 seconds.
Doze_firstを有効化
~ adb shell dumpsys deviceidle enable light
画面OFFでlight_idleへ移行
~  adb shell dumpsys deviceidle step light
Stepped to light: IDLE

参考
Behavior Changes
Android Marshmallow の Doze テストの正しい手順

15
16
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
15
16

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?