Disable App Hibernation on Android: How and Why
In this article
Android’s “app hibernation” feature, also called App Standby or Doze, automatically puts unused apps to sleep to save battery. You can turn it off for specific apps or globally, but it’s not a permanent setting in stock Android. Below you’ll find how to disable it, why you might want to, and what to watch out for.
What Is App Hibernation?
When an Android device is idle for a period, the system enters Doze mode. In Doze, background network access, sync, and alarms are throttled. App Standby is a lighter version that moves apps that haven’t been opened in a while into a low‑power state. In both cases the app’s processes are suspended, and the system limits its ability to run code until the next wake‑up event. This reduces battery drain but can delay push notifications, background updates, and scheduled tasks.
Why Disable It?
Disabling hibernation can be useful if you rely on an app for real‑time data, such as a messaging or navigation service, or if the app’s background work is essential for your workflow. It can also help when troubleshooting performance issues, because a suspended app may restart unexpectedly, causing lag or crashes. However, turning off hibernation increases battery consumption and may cause the device to heat up if many apps stay active.
How to Turn Off Hibernation for a Single App
Most recent Android versions provide a per‑app setting in the Battery section of Settings. The steps are consistent across many OEM skins.
- Open Settings and tap Battery & performance (or just Battery).
- Select Battery usage or Battery optimisation.
- Choose All apps from the dropdown.
- Find the app you want to keep awake and tap it.
- Toggle Don’t optimize or Never put to sleep (label varies by device).
- Confirm any prompts that warn about battery impact.
On some devices, the option is called Background restriction. Turning it off ensures the app’s background services are exempt from Doze and App Standby.
Disabling Hibernation System‑Wide (Root or ADB)
For a full‑device approach, you’ll need either root access or the Android Debug Bridge (ADB) tool. Rooting gives permanent access to system files; ADB allows temporary changes while the device is connected to a computer.
- Using ADB (no root required)
- Enable Developer options by tapping Build number seven times in Settings > About phone.
- Turn on USB debugging.
- Connect the phone to a PC and open a terminal.
- Run
adb shell dumpsys deviceidle disableto turn off Doze. - To re‑enable, use
adb shell dumpsys deviceidle enable.
- Rooted devices
- Open a terminal or file manager with root privileges.
- Edit
/system/etc/sysconfig/idle.cfgand setdoze_enabled=0andapp_standby_enabled=0. - Reboot the device.
Note that disabling Doze system‑wide can cause rapid battery drain and may trigger the device’s thermal management, leading to throttled performance.
Common Issues After Disabling
Users often encounter a few predictable problems once hibernation is turned off:
- Increased battery drain – The device will stay awake longer, especially if many apps are exempt.
- Thermal throttling – Continuous background activity can raise CPU temperature, causing the system to slow down.
- App crashes on restart – Some apps expect to be suspended and may crash if they’re forced to stay active.
- Notification delays – Ironically, disabling hibernation can sometimes delay push notifications if the app’s own background logic is disrupted.
To mitigate these, limit the exemption to only the most critical apps and monitor battery usage through Settings > Battery.
Alternatives to Full Hibernation Disable
If you want better battery life but still need certain background tasks, consider:
- Scheduled wake‑ups – Use
AlarmManagerwithsetAndAllowWhileIdle()for critical updates. - Foreground services – Run a service with a persistent notification to keep the app alive without disabling Doze.
- Battery optimisation exceptions – Add only the essential apps to the “Don’t optimize” list instead of turning off Doze for all.
- Battery saver mode – Enable it selectively during heavy use periods; Android will still allow your critical apps to run.
These options strike a balance between responsiveness and power efficiency.
Frequently Asked Questions
1. Does disabling hibernation improve push notification delivery?
Not always. Push notifications rely on Firebase Cloud Messaging, which is throttled in Doze. Disabling hibernation can help, but it may also cause the notification service itself to behave unpredictably if the device is constantly awake.
2. Will this affect my phone’s warranty?
Using ADB does not alter the hardware, so it typically doesn’t void the warranty. Rooting, however, can void the warranty on many manufacturers and may prevent official software updates.
3. Can I disable hibernation on Android 12 or newer?
Yes, the per‑app optimisation setting is available on Android 12 and later. System‑wide disabling still requires ADB or root, but the process is the same as earlier versions.
4. How do I restore the default hibernation behavior?
For per‑app changes, simply toggle the optimisation back on in Settings. For ADB, run adb shell dumpsys deviceidle enable. If you edited system files, revert the changes and reboot.
5. Is there a risk of data loss when disabling hibernation?
No direct data loss, but some apps may crash or lose unsaved state if they’re forced to stay active. It’s a good idea to back up critical data before making large changes.