Many users of modern smartphones notice that some applications do not send notifications on time, and background processes are constantly terminated by the system. Behind this is a complex mechanism power management, often referred to in technical documentation as power management. Understanding the principles of operation of this subsystem is critical for those who want to find a balance between device autonomy and its performance.
It is based on the Linux kernel, which takes over the primary allocation of processor resources. However, on top of this there are special Google services and manufacturers’ shells that aggressively “put to sleep” processes that, in their opinion, are unnecessary. Incorrectly setting these parameters can lead to messengers being silent for hours, and the navigator resetting the route in the background. Android OS lies the Linux kernel, which takes over the primary allocation of processor resources. However, on top of this there are special Google services and manufacturers’ shells that aggressively “put to sleep” processes that, in their opinion, are unnecessary. Incorrectly setting these parameters can lead to messengers being silent for hours, and the navigator resetting the route in the background.
Let's take a look at where these settings are hidden and how they affect the daily use of your gadget. We will look at both standard system tools and hidden features for advanced users.
What are Power Management and Doze Mode
The technology Doze Mode was introduced in Android 6.0 Marshmallow and has since become the foundation of the battery saving system. When the device lies still and the screen is turned off, the system enters a deep sleep state. In this mode, network activity is completely blocked for all applications except those that are whitelisted.
Periodically, the system wakes up from deep sleep mode for a short period of time, called a “maintenance window.” At these moments, pending tasks are synchronized, notifications arrive, and the device goes to sleep again. If you're actively using your phone, Doze won't activate, but another mechanism will come into play. Smartphone manufacturers (Xiaomi, Samsung, Huawei) often add their own, more aggressive power management layers on top of stock Android. They can kill processes even when the standard Doze has not yet been activated. App Standby.
⚠️ Attention: Smartphone manufacturers (Xiaomi, Samsung, Huawei) often add their own, more aggressive power management layers on top of stock Android. They can kill processes even when the standard Doze is not yet activated.
Application developers should adapt their code to these restrictions by using the API Firebase Cloud Messaging to deliver notifications. If an application uses its own background services to poll the server, it is likely to be limited by the system.
If a mission-critical application does not send notifications, try adding it to the list of power saving exceptions in the battery settings.
Basic power saving modes
The Android user interface offers several preset operating scenarios. Usually they are located in the Settings → Batterysection. The choice of a specific mode directly affects the processor clock speed and display brightness.
Mode Optimization is standard for most devices. The system analyzes usage patterns and automatically limits background activity of rarely used apps. This is a safe option for everyday life that does not require user intervention.
When the mode is activated Energy saving the system reduces the maximum CPU frequency, limits vibration and background data transfer. Visually, this can be manifested in a decrease in screen brightness and disabling the always-on display (AOD).
- 🔋 Maximum savings: disables almost all functions, leaving only calls and basic applications to work, turning the smartphone into a push-button dialer.
- 🚀 Performance: Relieves CPU limitations, allowing games and heavy applications to run at their best, but drains the battery quickly.
- 🌙 Adaptive mode: Learns your habits, predicting which apps you'll need soon and preparing them in advance.
It is worth noting that the names may differ in different shells. For example, OneUI from Samsung has a “Battery Protection” function, which programmatically limits the charge to 80-85% to extend the life of the battery chemistry.
Setting exceptions for important applications
The most common problem for users is missing notifications from instant messengers or email clients. The solution is to manually configure exceptions for specific packages. This allows you to bypass Doze Mode restrictions for selected apps.
To configure exceptions, go to Settings → Applications, select the desired application and find the “Battery” or “Power Consumption” item. Here you will see an optimization switch. Change the value from “Optimized” to "Do not optimize".
In some versions of Android, access to the full list of applications is hidden. To see it, click on the three dots in the corner of the battery optimization menu and select All applications. Only after this you will be able to find the desired app in the general list.
| Application type | Recommended setting | Impact on battery |
|---|---|---|
| Messengers (Telegram, WhatsApp) | Do not optimize | Minimum |
| Social networks | Optimize | Average |
| Games | Optimize (if not in game) | High in the background |
| Activity tracking | Do not optimize | Noticeable (GPS) |
Remember that removing restrictions from a large number of applications will lead to increased battery consumption in standby mode. Act selectively, adding to the exceptions only those services where notification delay is unacceptable.
☑️ Checking notification settings
Advanced settings via ADB
For users who want to gain full control over the system, there are configuration options via USB debugging. Using the tool ADB (Android Debug Bridge) you can forcefully enable or disable saving modes that are hidden in the regular menu.
One of the useful commands is to force entry into Doze mode to test application behavior. This allows developers and enthusiasts to check if data syncing is working correctly without having to wait for hours of inactivity on the phone.
adb shell dumpsys battery unplug
adb shell am set-inactive com.example.app true
You can also reset battery usage statistics if you think the system is not displaying battery usage correctly after a firmware update. The command adb shell dumpsys batterystats --reset will clear the accumulated data.
⚠️ Attention: Using ADB commands requires developer mode to be enabled and connected to a computer. Incorrect commands may result in system instability or data loss.
Be careful with the command to disable deep sleep on a permanent basis. This can lead to the device being discharged overnight by 20-30% due to the constant activity of network modules.
List of useful commands for power management
The 'dumpsys deviceidle force-idle' command forces idle mode. The command 'dumpsys deviceidle unforce' will undo this. Use them only for short-term testing.
Analyzing charge consumption and finding the culprits
The standard battery statistics screen in Android often shows only the tip of the iceberg. It sorts applications by screen time or background activity, but does not always reveal the true cause of the discharge.
Pay attention to item “Battery usage since the last full charge”. If the discharge percentage does not coincide with the sum of the percentages for applications, it means that a significant part of the energy is spent on the operation of the equipment: the screen, modem or GPS.
A frequent cause of abnormal discharge is a poor cellular network signal. When the phone is in an area of poor reception, the communication module increases the transmitter power in an attempt to maintain the connection. This may consume more energy than running the processor in heavy games.
For detailed analysis, you can use commands via ADB that display information about wakelocks (wake-up blocking). They are the ones who keep the processor from falling asleep, even when the screen is turned off.
- 📉 High percentage in the background: the application works even when you are not using it. Check your exception settings.
- 📡 Mobile network at the top: coverage problem or SIM card malfunction. Try switching to Wi-Fi.
- 🌡️ Overheating: at high temperatures, the system may limit performance or discharge quickly due to a chemical reaction in the battery.
If you see an app that you haven't launched, but it's consuming a lot of power, it may have gotten into viral activity or has a bug in the code that is causing an infinite loop.
The biggest enemy of the battery is not the brightness of the screen, but a poor cell signal and buggy apps that wake up the system.
Optimization to extend battery life
Power management concerns not only the current autonomy, but also the physical health of the battery. Lithium-ion cells degrade faster at extreme charge values and high temperatures.
Modern smartphones support the function Adaptive charging. The phone learns your sleep schedule and charges up to 80% quickly, and slowly charges the remaining 20% just before you wake up. This reduces the time the battery remains at maximum voltage.
It is recommended to avoid a complete discharge of 0% and constant charging to 100% unless absolutely necessary. Maintaining a charge in the range from 20% to 80% significantly extends the life cycle of the chemical element.
It is also important to monitor the temperature during charging. Using the phone in heavy games while connected to the network causes double heating: from the processor and from the power circuit. This is the fastest way to kill the battery.
⚠️ Attention: Menu interfaces and function names may vary depending on the Android version and device model. Always check the official documentation of the manufacturer of your smartphone.
Do not use cheap chargers without certificates. They can incorrectly control current and voltage, which leads to overheating and degradation of the power controller inside the smartphone.
Why does the phone discharge even when turned off?
Even when turned off, modern smartphones consume microcurrents to operate the real-time clock and power controller. In addition, if the battery is old, its self-discharge may be significantly higher than normal due to chemical changes inside the element.
Does dark theme affect battery saving?
Yes, but only on AMOLED and OLED screens. In such matrices, black pixels are physically turned off and do not consume energy. On IPS screens, the dark theme does not provide significant savings, since the backlight is constantly on.
Should you close applications from the multitasking menu?
No, this is a myth. When minimized, applications go into a cache state and do not consume CPU resources. Forced closing forces the system to reload the application into memory, which wastes more energy than storing it in the background.
How to find the actual battery capacity?
On many devices, you can enter the code ##4636## in the dialer and go to the battery information section. There are also third-party applications like AccuBattery, which calculate the actual capacity based on the rate of charging and discharging over several cycles.
What is ultra-power saving mode?
This is an extreme measure in which the system turns off all non-essential functions, reduces the processor frequency to a minimum, disables the Internet for most applications and limits the brightness. The goal is to ensure the ability to make calls in a critical situation with a minimum charge remaining.