Modern smartphones based on Android have complex energy management systems that automatically limit the activity of apps to extend battery life. However, sometimes such an aggressive approach results in important notifications from instant messengers not arriving on time, and music or navigation stopping when the screen is off. Users often encounter a situation where background operation of the application is blocked by the system without the explicit consent of the device owner.
Solving this problem requires a detailed dive into the operating system settings, since the location of menu items can differ significantly depending on the shell manufacturer and version. Android. In this article, we will analyze all the available methods for forcibly allowing background activity, from basic switches to specific engineering menus.
Incorrect settings can lead not only to missed calls, but also to failures in data synchronization or errors in the operation of smart watches and trackers. Understanding exactly how the system manages resources will allow you to find a balance between stable software operation and acceptable battery consumption.
Understanding mechanisms for limiting background activity
Starting with version Android 8.0 Oreo, Google has implemented strict restrictions on what applications can do when they are not in the foreground. This was done to prevent apps that uncontrollably used the processor and network connections from draining the battery. The system puts inactive processes into caching or completely stops them if they consume too many resources.
Various smartphone manufacturers, such as Xiaomi, Samsung or Huaweioften reinforce these limitations with their own shells, creating additional layers of battery protection. That is why settings that work on pure Androidmay not be sufficient for devices with custom firmware. You need to take into account the specifics of your particular gadget when searching for the necessary switches.
Why does the system kill processes?
The system analyzes usage patterns. If an application is rarely launched by the user, but is often activated by itself, the algorithm marks it as suspicious and limits background activity to save energy.
There are several levels of restrictions: from simply hiding the icon to completely banning the use of the network and processor. It is important to distinguish between the concepts of “limiting background activity” and “battery optimization”, since in the settings they are often located in different sections of the menu, but affect the same result.
Basic settings through the app menu
The simplest and most universal way to allow a app to run in the background is to change its individual settings in the application management section. This method is suitable for most devices and does not require in-depth system knowledge. You need to find a specific application in the list and remove restrictions from it.
First, go to the main settings of your smartphone and find the section Applications or Application Manager. In the list that opens, select the desired app, for example, instant messenger or email client. The interface may differ slightly, but the logic of actions remains the same for all versions Android.
Inside the application card, find an item related to battery or power consumption. On pure Android it is usually called Battery, and on shells Samsung it can be hidden under the name Energy saving. Here you will be offered several operating modes.
- 🔋 Optimized —standard mode, in which the system itself decides when to limit the application.
- 🚫 Limited —background work is almost prohibited completely, notifications may not arrive.
- ⚡ No restrictions — the application can run in the background as long as it needs, ignoring energy saving modes.
Select a mode No restrictionsto guarantee stable operation of the service. After this, the changes will take effect immediately, and the system will no longer need to ask permission to run processes in the background.
The "No restrictions" mode can increase battery consumption, so apply it only to critical applications, such as instant messengers or navigators.
Configuring exceptions in the mode Power Saver
Even if you have configured individual settings for an application, the global power saving mode may override these settings. When you activate the mode Energy saving or Ultra Energy Saving, the system forcibly limits the background activity of all apps except those included in the white list.
To avoid this, you need to go to the battery settings and find the section with exceptions. On devices Xiaomi this item is often called Activity control, where you need to select a position No restrictions. On Samsung you should look for the section Applications in deep sleep and make sure that the desired app is not there.
⚠️ Attention: Global power saving modes often reset individual settings when turned on. Always check the list of exceptions after activating the battery saving mode.
Some shells allow you to create operating profiles. You can configure it so that when connected to a charger, all restrictions are removed automatically. This is convenient for devices that are used as stationary terminals or smart home control panels.
It is also worth paying attention to the function Adaptive battery, which is available on many modern smartphones. It learns your habits and can independently limit rarely used applications. If the app is important, but is rarely used, it is better to disable adaptive optimization for it manually.
Specific settings for the MIUI and Emui shells
Owners of smartphones from Xiaomi i Huawei encounter problems with background work more often than others due to extremely aggressive memory cleaning algorithms in MIUI and Emuishells. Standard Android settings are often not enough here, and the use of built-in managers is required.
In MIUI there is a separate application Securitythat manages permissions at a deep level. Go into it, select Permissions and find the item Autostart. Turn on the switch next to the desired application so that it can start immediately after turning on the phone.
Next in the same menu, find the section Background processes or Battery saving in the background. Ensure that critical services are enabled to operate. Without this step, the system will “kill” the process a few minutes after the screen turns off, regardless of other settings.
On devices Huawei with a shell Emui or Magic UI the logic is similar. Go to Settings → Battery → Launch applications. Disable automatic control for the desired app and manually activate all three items: autorun, indirect launch and work in the background.
☑️ Checking MIUI settings
Fixing applications in the operating system memory
Another effective method is to fix the application in RAM. This gives the system a signal that this process is a priority and should not be closed when the cache is cleared or there is a lack of free space. The implementation mechanism depends on the interface version. RAM. The implementation mechanism depends on the interface version.
Open the menu of recently running applications by pressing the corresponding navigation button or swiping from bottom to top and holding. Find the window of the desired app and click on the lock icon or menu icon (three dots) above it. Select the option Block or Pin.
After this procedure, a lock symbol will appear next to the application icon. Now, even if you click the "Clear All" button, this application will remain running in the background. However, remember that fixing too many apps can slow down the system.
| Action | Effect | Impact on battery |
|---|---|---|
| No restrictions | Full work in background | High |
| Fixation in memory | Closing protection | Medium |
| Autostart | Start at inclusion | Low |
| Optimization | System control | Minimum |
Using a combination of these methods gives the best result. For example, for a navigator Yandex Navigator or Google Maps it is recommended to simultaneously remove battery restrictions and pin the window to the recent tasks menu.
Additional permissions and data access
Sometimes the problem lies not in power management, but in the lack of access to the network or other system functions in the background mode. Check the section Permissions in the application settings. Make sure that access to mobile data and Wi-Fi is allowed not only when in use, but also in the background.
On some versions Android there is a separate switch Background data. If it is turned off, the application will not be able to load information while the screen is off. Enable this option, as well as the option Unlimited data consumptionif available in the SIM cards and mobile network settings menu.
⚠️ Warning: Allowing unlimited data consumption may lead to unexpected debiting of funds if you have a tariff with limited traffic. Check the conditions of your mobile operator.
It is also worth checking whether the mode Traffic saving is enabled in the global network settings. This mode often blocks background synchronization for all applications except those added to exceptions. The path to setting usually looks like Settings → Connections → Data usage.
If the application still does not work in the background, try clearing its cache and data, and then re-provide all necessary permissions. This will reset possible configuration errors.
Diagnostics using ADB and advanced methods
For experienced users who are not afraid of the command line, it is possible to control background processes through the debug bridge ADB. This method allows you to force the application into a mode that ignores system restrictions Doze mode.
Connect your smartphone to your computer, enable USB debugging and enter a command to list all packages. Find the package name of the application you want. Then use the command to add the package to the battery optimization ignore list:
adb shell dumpsys deviceidle whitelist +com.example.app
This command adds the application to the system whitelist, preventing it from putting the device into deep sleep while the application is active. Be careful when using ADB commands, as incorrect input may disrupt system services.
It is also possible to disable the mode Doze entirely, but this is highly not recommended for everyday use, as the battery will drain much faster even at rest. Use such methods only for testing or specific tasks.
How to find the application package name?
The package name usually looks like the website address in reverse order, for example com.whatsapp or ru.yandex.maps. It can be viewed in the store Google Play in the address bar of the browser or using special inspector applications available in the market.
Is it safe to use ADB commands?
Using commands to whitelist a battery is safe. However, commands that change system settings or remove system applications may cause the device to become unstable or void the warranty.
Why are settings reset after a reboot?
On some devices with aggressive memory cleaning (especially older models Xiaomi or Meizu), settings may reset. In this case, only fixing it in memory or disabling optimization through the engineering menu helps.
Does this affect the warranty?
Changing the permission and battery settings through the standard menu does not affect the warranty. Using root access or modifying system files via ADB may be considered by the service center as interference with the software.