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 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.

  • I know I'm late, but I wanted to thank you for this. Still using this to tweak idle drain for my Android phone. I've also written a guide on xda for this and mentioned your answer there. If you want to check it out, here it is: xdaforums.com/t/… Jan 19 at 10:55

You must log in to answer this question.

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