How to run the application in the background on Xiaomi: full setup

Modern smartphones Xiaomi, Redmi and POCO are famous for their aggressive optimization of power consumption. On the one hand, it allows the device to work all day without recharging, but on the other hand, it often leads to incorrect operation of messengers, navigators and activity trackers. Users often face a situation where music stops when the screen is turned off, and notifications of new emails come only after opening the application.

The problem is that the MIUI shell and the new HyperOS forcefully freeze processes that the system considers inactive, which is standard battery-saving algorithm behavior, but for many use cases it is a critical disadvantage, and in order for applications to work consistently, you need to manually configure permissions for each important service, disabling rigid restrictions.

In this article, we will take a look at all the available methods for adjusting background activity, we will look at both standard system settings and hidden developer menus that will help you make your smartphone more predictable, you will learn how to properly configure Autoboot and manage energy saving modes for each particular application.

It's important to understand that there's no one magic button that can resolve all the processes at once. Setup requires a customized approach to each application that needs to run in the background. The key is to change three things in a complex way: autostart, no battery limitations, and memory retention.

Basics of background processes in MIUI and HyperOS

The Android operating system on which Xiaomiโ€™s shells are based uses its own memory management system, but manufacturers add add add-ons to improve autonomy on top of it. In the case of MIUI and HyperOS, this mechanism works extremely rigidly: if an application is not used explicitly by the user for a certain time, the system tends to terminate it.

This behavior is driven by the desire to keep the battery power and free up RAM for current tasks, but this approach often breaks the logic of services that require a permanent connection to the server, for example, a smartwatch can lose communication with the phone if the companion application is closed by the system.

There are several levels of control that the system applies:

  • ๐Ÿ”‹ Background activity restriction โ€“ the system blocks the applicationโ€™s access to the internet and processor when the screen is off.
  • ๐Ÿšซ Auto-Start Lock โ€“ The app cannot start on its own after a phone restart or page update.
  • ๐Ÿงน Memory cleaning โ€“ with a lack of RAM (RAM) The system is forced to close the background processes, even if they are important.

To get around these restrictions, the user needs to give the app special rights, without which even the most popular messengers can work unstable, and understanding these mechanisms is the first step to properly configuring your Xiaomi smartphone.

๐Ÿ“Š How often do you have apps falling asleep in the background?
Everyday/Couple once a week/Rarely/Never noticed

Configure the absence of battery limitations

The first and most important step is to change the energy saving strategy for a particular application, and by default, the system sets the "Energy Saving" mode, which leads to background problems, and you need to switch this setting to "No Limits" mode.

To do this, go to the Settings menu, then select the Application and click All Applications. Find the desired program (for example, Telegram or Yandex.Navigator) in the list. Inside the application menu, find the Battery Savings or Battery section.

In the window that opens, you will see three options for setting up:

  • โšก Energy savings โ€“ standard regime that restricts background activities (not suitable for our purposes).
  • ๐Ÿ”‹ Savings without limits โ€“ balance between performance and charge consumption.
  • ๐Ÿš€ No restrictions โ€“ full access to system resources at any time (recommended choice).

Select the "No Limits" option, which will let the system know that the application is a priority and should not be subject to power saving algorithms, and then the changes will take effect immediately, and the application will be able to work even when the screen is locked.

โ˜‘๏ธ Checking battery settings

Done: 0 / 4

Managing application autoloading

The second critical parameter is auto-start permission, which means that if this feature is disabled, the application will not be able to start on its own after the device is restarted or after the system has forced it to close, and without auto-start, background settings may be useless.

There are two ways to find this setting: One is through the Settings menu โ†’ Apps โ†’ Permissions โ†’ Auto Run. Here is a list of all the programs installed with switches. The second way is through the Security app, which is preinstalled on all Xiaomi phones.

In the Security app, find the Permission (or Privacy) tool, and then select AutoRun. Turn on the switchboard in front of the desired application. The system may issue a warning that this may increase battery consumption - agree, as it is necessary for stable operation.

โš ๏ธ Warning: Don't turn on auto-run for all applications at once. This will lead to a significant reduction in battery life and system slowdown. Allow auto-run only for mission-critical services: messengers, trackers, smart home.

Itโ€™s also worth noting that newer versions of HyperOS may have slightly different interfaces, but the logic remains the same. If you donโ€™t find a item in one place, be sure to check the alternative path through app settings. Duplicating settings is a feature of Xiaomiโ€™s interfaces.

Affixing applications to memory (Lock)

Even after setting up the battery and auto-start, the system can shut down the application if it urgently needs RAM to trigger a heavy game or camera, and to prevent this, there is a lock or memory fixing mechanism, which tells the system that the application cannot be unloaded from the RAM during cleaning.

To perform this procedure, launch the desired application, and then go to the open tab menu (swipe from the bottom up and hold your finger, or the menu button). Find your application card and click on it with your finger held, or pull the card down (depending on the version of MIUI).

In the menu that appears, select the Lock option (lock icon), and then the closed lock icon will appear next to the app name. Now, even if you click the Clear All button (cross or broom), the application will remain in memory and will continue to work.

Action.The effectImpact on the battery
No battery restrictions.The app doesn't fall asleepHigh.
Auto-startStart after rebootAverage.
Locking (Lock)Protection against unloading from RAMLow.
What to do if the lock icon does not appear?
If you donโ€™t see a menu when you press the app card for a long time, try swiping the card down. In some versions of MIUI (especially Chinese), you first need to turn on the lock button display in the settings: Settings โ†’ Advanced Settings โ†’ Multitasking โ†’ Show the lock button.

Additional permissions and notifications

Sometimes the problem is not just energy saving, but also the lack of basic permissions. An application may need background rights, access to location, or display over other windows. Without these rights, functionality will be limited, even if the battery is set up correctly.

Be sure to check the Application Permissions section in the settings. Make sure that the important service includes the "Background Operations" and, if necessary, "Exact Location." For instant messengers, permission to "Notifications" with the option "Important Notifications" enabled or "Above other applications" is critical.

Newer versions of Android and HyperOS have added additional protection: if an application is not in use for a long time, the system can automatically revoke its permissions. To avoid this, go to Settings โ†’ Applications โ†’ Access to data (or similar path) and make sure that important applications are ticked โ€œDo not limitโ€ or similar.

  • ๐Ÿ–ฅ๏ธ Over windows โ€“ required for widgets, floating windows and some messenger features.

Don't ignore the permission pop-ups when you first start. Often users mechanically click "Discard" and then wonder why the app doesn't work. If you accidentally refuse access, reset the permissions in the app menu and try to run it again.

๐Ÿ’ก

Tip: If you use trackers for running or cycling, be sure to turn on GPS and select high-precision mode. In the screen settings, set "Do not turn off the screen" in the tracker app itself, if there is such an option.

Settings for developers and special cases

For advanced users who haven't had enough standard methods, there are hidden settings in the developer menu, where you can change the behavior of the system globally, although you need to do it with caution, and these settings affect all applications at once.

To get to the developer menu, go to Settings โ†’ About Phone and quickly click 7-10 times on the MIUI Version (or OS Version). After the message โ€œYou became a developerโ€ appears, go back to the main settings menu, select Additional โ†’ For developers.

Find a section that's associated with background processes. There may be a background process limit option. Make sure there's a No Limit value or a Standard Limit. If you select "No More than 1 Process" or "0 Processes," the background work will be disrupted throughout the system.

โš ๏ธ Warning: Changing the settings in the Developer Menu can lead to unstable system operation and rapid battery discharge. Use these settings only if you understand what each option is responsible for. Do not change the animation or scale settings unless you are sure of the result.

Also on this menu, you should pay attention to the option Do not turn off the screen (when charging) - this can be useful for navigation, but it is not related to background tasks. The main thing here is to control process limits. In some Xiaomi firmware, this option is hidden or renamed, so look for similar names.

๐Ÿ’ก

The developer menu is a powerful tool, but for 95 percent of users, standard battery settings and auto-starts are enough. Don't go into deep settings unnecessarily.

Frequently Asked Questions (FAQ)

Why is the app still unloading from memory, even though I have set it up?
This can be due to a lack of physical RAM (RAM). If you have a heavy game, the system will force the background processes to close, even with the "No Limits" settings, and check if the "Ultra Battery Saver" mode is on, which blocks almost all background activities.
Does setting up background apps affect the speed of your phone?
Yes, it can. If you allow dozens of applications to run without restrictions, they will be consuming processor and network resources all the time, which can lead to micro-slowdowns and lower battery life, and only configure the services you really need.
Are your settings reset after the MIUI or HyperOS update?
Most often, the settings are saved, but after a major system update (for example, the transition from Android 13 to 14), it is recommended to recheck key applications.
How to set up background work for Yandex.Navigator?
Three things are critical for navigators: Accurate Location (always), No Limits Battery Mode, and GPS enabled. Also, in the navigation settings, turn on the โ€œDo not turn off screenโ€ or โ€œIn the backgroundโ€ option if present.
Can I completely disable MIUI optimization?
Previously, there was a hidden feature called "Enable MIUI Optimization" in the developer menu that could be turned off. In modern versions of global firmware, this option is often hidden or removed.