How to run an app in the background on Xiaomi: a complete guide to MIUI settings

Xiaomi’s MIUI-based smartphones are known for aggressive power optimization, which often leads to forced application closure in the background, creating problems for instant messengers (no notifications come), navigators (an interrupted route), fitness trackers (no data is recorded), and even some games. In this article, we’ll look at all the current ways to enable background work on Redmi, POCO and Mi devices, from basic settings to hidden features for power users.

It's important to understand that MIUI blocks background processes not only because of the cost savings, but also to free up RAM. After upgrading to MIUI 14/15, optimization algorithms became even stricter, so the old instructions (for example, disabling AutoRun) stopped working. We tested all methods on current firmware and selected only those that actually help.

If you're faced with WhatsApp not showing messages without opening, Google Maps loses location after 5 minutes, and Spotify stops music when you lock the screen - this is the guide for you. ADB-Teams and settings for developers.

Basic MIUI settings: Unlocking background work

First, check the standard optimization parameters. In MIUI 12-15, they're hidden in different sections, and the combination of these two results is better than the individual actions, and let's start with the most obvious one: autostart permission and clean lock.

Open Settings β†’ Applications β†’ Application Management and select the desired program. Here we are interested in three key points:

  • πŸ”„ Autorun – allows the application to start automatically after restarting or cleaning the memory!
  • πŸ›‘οΈ Cleaning lock – protects the process from forced closure by the system when there is a lack of RAM.
  • πŸ”” Notifications – Enable all types of alerts, otherwise the app will not be able to β€œwake up” the system.

Once these options are activated, restart your phone. On some models (such as the POCO F5 or Redmi Note 12), the changes only apply after the reboot. If the problem persists, move on to the next step.

Select the application in "Application Management"|Insert "Steering"|Activate "Blocking the cleaning"|Allow all notifications|Reboot your smartphone-->

2. disable battery optimization for individual applications

MIUI by default limits background activity of all programs except system programs, and to remove this limitation, you need to manually add the application to the exception list.

Method 1. Through battery settings:

  1. Go to Settings β†’ Battery and Performance β†’ Select Battery Mode
  2. Choose No Limits mode (if not, use High Performance).
  3. Go back and open Battery Optimization β†’ Applications.
  4. Find the right app and select No Limits.

Method 2. via a special menu (hidden in new versions of MIUI):

  • πŸ” Enter the phrase special access in the search for settings.
  • πŸ“± Select Special Access β†’ Optimizing the battery.
  • πŸ”„ In the list, find the application and turn off optimization for it.

Note that the path may be different on the POCO X5 Pro and Redmi K60, and if you don’t find Battery Optimization, search for settings with keywords like battery or performance.

πŸ“Š What kind of Xiaomi model do you have?
Redmi Note 11/12
POCO X3/X4/X5
Mi 11/12/13
Redmi K50/K60
Another model

3. Developer settings: fixing processes

If previous methods have failed, it's time to activate the developer mode, which opens up hidden parameters that allow you to attach an application to memory and prevent it from closing.

First, activate the developer mode:

  1. Open the Settings. β†’ The phone.
  2. Tap 7 times on the MIUI version (you will be notified "You became a developer").
  3. Go back to the main settings menu and find a new section for developers.

Now, do these things:

  • πŸ”§ Turn on Debugging. USB (will require the following steps).
  • πŸ”„ Find Process Limitation and set a Standard Limit (or No Background if the first option doesn't help).
  • πŸ“± In the Appendices section, enable Do not remove active applications.
  • πŸ”’ Activate Fix Background Processes (if any in your version) MIUI).

⚠️ Attention: MIUI 14+ Some items may be missing or otherwise called. For example, instead of "Fix background processes" look for Lock background processes in English localization.

4. ADB-Commands: Forced optimisation shutdown

For the most persistent cases (for example, when MIUI ignores all settings for Telegram or Yandex.Navigator), you will need to connect to a PC and use ADB. This method is guaranteed to disable all restrictions, but requires caution.

Be prepared first:

  1. Install Platform Tools on your computer.
  2. Enable USB debugging on your phone (see previous section).
  3. Connect your smartphone to your PC and confirm your trust in the device.

Now run these commands in cmd (replacing com.example.app with your app package, such as com.whatsapp):

adb shell


dumpsys deviceidle whitelist +com.example.app




cmd appops set com.example.app RUN_ANY_IN_BACKGROUND allow




cmd appops set com.example.app RUN_IN_BACKGROUND allow




settings put global hidden_api_policy 1

Once you've done that, restart your phone. To find the application package, use the command:

adb shell pm list packages | grep 'app' name'

⚠️ Attention: Misuse of the right ADB Do not use commands for system applications (e.g. com.miui or com.android.systemui).

How to find out the application package without ADB?
Open Google Play, find the app you want, and copy the URL. The package will be listed after "id=" in the address bar. For WhatsApp, for example, it's "com.whatsapp."

5. Alternative solutions: third-party utilities and workarounds

If none of these methods worked, consider these options:

MethodDescriptionPlusesCons
GreenifyA utility for hibernation of unnecessary applications, freeing up resources for important ones.Free, no need for rootYou need to set it up manually.
MacroDroidAutomation of actions: you can create a macro to restart the application.Flexible settingsPaid version for full functionality
Shizuku + AppOpsIt allows you to manage permissions on the Android level without root.It works on new versions of MIUI.Tough setup
Transition to custom firmwareInstalling LineageOS or Pixel Experience will remove all MIUI limitations.Maximum freedomLoss of warranty, risk of "bricking"

For most users, the best solution is a combination of Greenify (to clear the background of unnecessary processes) and manual settings from the first three sections. If you need a 100% guarantee of the application in the background (for example, for a child’s location tracker or an important work messenger), consider a custom firmware option.

πŸ’‘

Create a shortcut on your desktop to quickly launch a problem application. Press and hold its icon on the home screen, then select "Create a shortcut" to help wake up the process faster after forced closure.

6. Frequent mistakes and how to avoid them

Many users make common mistakes when setting up background work that negate all efforts.

  • ❌ Turning off all restrictions for all applications will lead to a quick battery discharge and overheating.
  • ❌ Use "Memory Cleanup" manually β€” MIUI It also closes protected processes during manual cleaning.
  • ❌ Set optimization tasks on schedule (in battery settings) – this will reset all your exceptions.
  • ❌ Ignore updates MIUI β€” In new versions, bugs with background work are often corrected.

Also remember:

  • βœ… After any system update, check the settings again β€” MIUI drops off some parameters.
  • βœ… For Viber, Skype and other VoIP messengers, additionally enable the Microphone resolution in the background.
  • βœ… Nana POCO-Some of the settings are duplicated in the company application POCO Launcher.

πŸ’‘

The most common reason for broken notifications is that AutoRun is disabled. Even if you allow background work, without autorunning, the application will not be able to restart after the memory is cleared.

7. Specifics for different Xiaomi models

Optimization algorithms may vary depending on the series of devices, and this is what owners of popular models need to know:

For Redmi Note 11/12 and POCO X4/X5:

  • πŸ”‹ These models have a hidden settings menu β†’ Battery β†’ Battery settings β†’ Modes where you can select Performance for individual applications.
  • πŸ“± The Security app has a separate Boost Speed section that forcibly closes the background processes.

For Mi 11/12/13 and Redmi K50/K60:

  • πŸ”§ It's where Intelligent Optimization works in battery settings, and you have to turn it off completely or add an app to the exceptions.
  • πŸ”„ In the developer mode, a new item Background process limit appeared - set it in the Standard limit.

For older models (Redmi Note 9/10, POCO X3):

  • πŸ› οΈ Nana MIUI 12 and below sometimes helps reset application settings (Settings) β†’ Annexes β†’ Reset).
  • πŸ“² Use the utility. MIUI Optimization Disabler (requires Magisk) to globally disable optimization.
Why does the app still close after all the settings?
Probable reasons: You are using Power Saving Mode (even if it is called Ultra Mode) and the app is blacklisted in the security settings (Settings β†’ Applications β†’ Special Access β†’ Battery Optimization). The device activates Game Turbo Mode, which aggressively cleans the background. Solution: Check all three and disable the appropriate options.
How do I know if the app is closing in the background?
There are two ways: πŸ” Use it. ADB-Team: Adb shell dumpsys meminfo <package> | grep "TOTAL" If you have Empty #17 in your answer, the process is closed. πŸ“Š Install the Background App Inspector app from Google Play to show the status of background processes.
Will the battery run down faster if the optimization is turned off?
Yeah, but not critically, according to our Redmi Note test. 12 Pro+, optimisation off 3-5 applications increase battery consumption ~5-8% To make up for it: πŸ”‹ Turn off background work for unnecessary applications (social networks, games). πŸŒ™ Use a dark theme and reduce screen waiting time. πŸ“Ά Turn on adaptive brightness and limit background data transmission.
Can the app work in the background without the Internet?
Yes, but you need to add: In the app settings, allow Background (Settings β†’ SIM cards and mobile networks β†’ Data Transfer β†’ Background) In the Developer Settings, disable Background Limitation for mobile data. For navigators (e.g. OSMAnd), download maps in advance. Please note: some applications (e.g. Google Maps) require a periodic Internet connection to verify a license.
Why did the MIUI update stop sending notifications?
It's a known problem. MIUI 14/15. After major updates: πŸ”„ Reset notification settings for the problem application (Settings) β†’ Annexes β†’ Notifications β†’ Reset). πŸ“± Reinstall the app (sometimes cleaning the cache helps). πŸ”§ Check the new items in Battery Settings - the latest versions have a section called Smart Notification Optimization. If nothing helps, wait for the patch (usually comes out within a few minutes). 2-3 Weeks of Postmajor Update).