LoginSignup
8
11

More than 5 years have passed since last update.

adb で電池の最適化ホワイトリストを操作する

Last updated at Posted at 2015-09-02

ヘルプ

$ adb shell dumpsys deviceidle -h

ホワイトリストを確認

パッケージが含まれていたら最適化の対象外。
(ブラックリストの方がしっくりくる気がする。)

$ adb shell dumpsys deviceidle whitelist

ホワイトリストに追加

頭に + をつけてパッケージ名を続ける。

$ adb shell dumpsys deviceidle whitelist +パッケージ名

ホワイトリストから削除

頭に - をつけてパッケージ名を続ける。

$ adb shell dumpsys deviceidle whitelist -パッケージ名

備考

「電池の最適化」設定画面にバグがあるのか、この変更がUIに反映されないことがあるようです。
(Android 6.0 Marshmallow (MPA44I) Developer Preview 3)

8
11
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
8
11