Recently I've been trying to optimize the doze settings for my device. I found many guides that date back to 2015/16. All of them say something similar: To change a deviceidle setting, I have to input adb shell settings put global device_idle_constants inactive_to=30000,sensing_to=0 (for example) in a terminal. When typing in adb shell settings list global, device_idle_constants doesn't get listed tho. Seems to me it's deprecated.

My Problem: This setting doesn't change anything at all. When I change sensing_to to 0 like I have shown above, it's still at 4m0s0ms. I can confirm this by putting adb shell dumpsys deviceidle in the terminal.

Does anyone know how to change those doze parameters in Android 12(L)?

Btw: I have a Poco F3 with LineageOS 19.1

  • 1
    I've checked the source code and looks like device_idle_constants was still available in the Settings.Global on Android 11 but have been migrated to DeviceConfig in Android 12
    – Andrew T.
    Jul 24 at 5:21
  • @AndrewT. Thanks for the help! However, how would I go about changing the parameters at DeviceConfig? I clicked on the links, but I didn't find out how to do it. Is this command valid then? "adb shell settings put global DeviceConfig sensing_to=0"? Jul 24 at 16:41
  • 1
    There's also adb shell device_config command, and based on the commit, the namespace is device_idle, so the full command would be like adb shell device_config put device_idle sensing_to=0, but I haven't tried it yet.
    – Andrew T.
    Jul 24 at 16:51
  • @AndrewT. Thanks man, you're a lifesaver. It works like this: adb shell device_config put device_idle sensing_to 0. Jul 24 at 17:38

1 Answer 1


Doze configuration has been moved from global system settings until Android 11 to device configuration since Android 12.

Until Android 11, the Doze configuration is in Settings.Global with device_idle_constants as the key, thus it's still possible to change the configuration using adb shell settings put global device_idle_constants [VALUE], with [VALUE] as a single string, separated with comma for multiple values.

However, since Android 12, the flags have been migrated to DeviceConfig with device_idle as the namespace. To change the configuration, use adb shell device_config put device_idle [KEY] [VALUE] instead.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .