Android Marshmallow introduced Doze, a smart feature from Google that extends battery life by restricting background processes when your device is idle and stationary. However, it only activates fully if the phone isn't moving and sensors remain dormant—meaning no savings if it's in your pocket or on a car dashboard.

To overcome this, XDA developer Suyash Srijan created Force Doze, a free app that triggers Doze immediately when the screen turns off, even disabling motion sensors for true idle savings. It periodically wakes for maintenance like notifications, striking the perfect balance between battery optimization and staying connected.
Pro Tip: Not on Marshmallow yet? Learn how to enable Doze-like functionality on older Android versions without root.
Download Force Doze for free from the Google Play Store. On rooted devices, it requests Superuser (SU) access upon launch—grant it, and you're set to enable forcing Doze.
For non-rooted devices, enable USB debugging in Developer Options and install ADB drivers on your PC. (Need a quick ADB setup? Use this one-click installer—done in under 15 seconds.)

Connect your phone, open Command Prompt, and run:
"adb -d shell pm grant com.suyashsrijan.forcedoze android.permission.DUMP"

Relaunch Force Doze to activate services. Verify detection with adb devices.

Activate the app, turn off your screen, and Force Doze engages instantly—no 30-minute wait. Customize delay if preferred, and disable during charging via settings.

A persistent notification ensures it survives OS kill attempts. On some devices, enable sensor fixes for auto-rotate and brightness post-wake.

Force Doze periodically checks for notifications, but whitelist key apps for constant network access and partial wake locks—ensuring alerts without draining battery.

Note: Force Doze is free and open-source. Download the APK and source code here, and join discussions on XDA.
I've tested Force Doze on my Xiaomi Mi 5, achieving noticeable battery gains without missing important notifications—thanks to smart whitelisting. Unlike generic savers, it leverages native Doze power. Essential for Marshmallow users.
SEE ALSO: 7 Marshmallow features to get on your Android smartphone right now