How to fix the application in the background on Xiaomi: full instructions for MIUI 12-15

Xiaomiโ€™s MIUI-based smartphones are known for aggressive power optimization, which often leads to apps being shut down spontaneously in the background, especially messengers (Telegram, WhatsApp), navigators (Yandex.Maps, Google Maps), and tracking services (Strava, Nike Run Club), all of which are experiencing missed notifications, music breaks, or interrupted routes, all because the system forcibly freezes background processes.

In this article, weโ€™ll look at all the available ways to fix apps in the background on Xiaomi, Redmi and POCO devices (relevant to MIUI 12-15 and HyperOS). Youโ€™ll learn how to turn off battery optimization, set up auto-start, use hidden developer features, and even bypass restrictions through ADB. Importantly, some methods require administrator rights or a PC connection โ€“ weโ€™ll detail each step.

Why is Xiaomi closing apps in the background?

The reason is because of the MIUI Security Center algorithms, which are built-in antivirus and power manager, and it analyzes the activity of applications and forcibly stops those that:

  • ๐Ÿ”‹ Consume more than 5% of battery per hour in the background.
  • ๐Ÿ“ฑ Do not use push notifications through Google or Mi Push.
  • โณ Not opened by the user within 24-48 hours.
  • ๐Ÿšซ They are on the blacklistยป MIUI (For example, some Chinese applications).

Xiaomi is also actively using Deep Optimization, which blocks background processes to save charge, especially on low-end models (Redmi 9A, POCO M3), but even flagships (Xiaomi 13 Ultra, MIX Fold 3) are not immune to problems unless the settings are turned off.

๐Ÿ“Š What Xiaomi model do you use?
Redmi Note 12/13
POCO X5/F5
Xiaomi 13/14
Budget model (Redmi 9/10)
other

Method 1: Disabling Battery Optimization for an Application

The easiest and safest method is to remove the application from optimization mode, so that it can work in the background without forced closure.

  1. Open Settings โ†’ Applications โ†’ Application Management.
  2. Select the application you want (such as Telegram).
  3. Go to the section Saving battery power.
  4. Choose the option without restrictions.

For MIUI 14/15, the path may be different: Settings โ†’ Battery and Performance โ†’ Application Selection โ†’ [Application Name] โ†’ Charge Savings โ†’ No Limits.

App selected from list | Battery optimization disabled |Rebooted smartphone (recommended) | Checked after 12 hours (app not closed)

-->

โš ๏ธ Note: On some models (Redmi Note 11, POCO X4 Pro after updating to MIUI 15 this parameter may reset. Check the settings every 1-2 weeks.

Method 2: Setup autostart and background activity

Even after the battery optimization is turned off, the application can close if it does not have autostart and background activity rights.

  1. Go to Settings โ†’ Applications โ†’ Application Management โ†’ [Select App].
  2. Press Permissions โ†’ Autostart and turn on the switch.
  3. Back up and activate Background Activity (or Background Work in MIUI 15).

For Android 13+ (MIUI 14/15), another item has been added: Settings โ†’ Privacy โ†’ Special Access โ†’ Access to Notifications โ€“ you need to enable permission for the application so that it can show notifications in the background.

Setting upMIUI 12/13MIUI 14/15HyperOS
Auto-startSettings โ†’ Permissions โ†’ AutostartSettings โ†’ Applications โ†’ Auto LaunchSettings โ†’ Applications โ†’ Management โ†’ Auto-Run
Background activitySettings โ†’ Battery โ†’ Selection of applicationsSettings โ†’ Battery โ†’ Background activitySettings โ†’ Battery โ†’ Without restrictions
Push notificationsSettings โ†’ Notifications โ†’ Application settingsSettings โ†’ Notifications โ†’ Notification channelsSettings โ†’ Notifications โ†’ Permissions

๐Ÿ’ก

If the autorun list doesnโ€™t have the right app, try running it manually first โ€“ sometimes MIUI adds programs to the list only after opening it for the first time.

Method 3: Secure the application through โ€œRecently usedโ€

MIUI has a feature to lock apps into the multitasking menu, which prevents them from closing when cleaning the RAM. This is a temporary solution, but useful for navigators or players:

  1. Open the application that needs to be fixed.
  2. Click the recently used button (square at the bottom of the screen).
  3. Click on the app icon and select Secure (pin icon).

Limitations of the method:

  • ๐Ÿ”„ It only works until the smartphone is rebooted.
  • ๐Ÿ“ต Does not protect against forced closure of the system in case of lack of RAM.
  • ๐Ÿ”ข You can fix no more than 3-5 applications at the same time (depending on the model).

How to remove the limit on the number of fixed applications?
On some firmware (MIUI EU, Xiaomi.eu limit can be removed through file editing /system/build.prop (Root rights are required. Add a line: ro.miui.multitasking.max_fixed_app_count=10 After rebooting, the system will allow you to fix up to 10 Risk: Incorrect editing can lead to a download failure.

Method 4: Using Developer Mode (for experienced)

If standard methods don't work, you can activate the developer's hidden settings and manually disable MIUI restrictions.

  1. Go to Settings. โ†’ The phone.
  2. Click the MIUI version 7 times in a row until you get a message: You are a developer!
  3. Back to Settings โ†’ Additionally. โ†’ For developers.

Key options are now available:

  • ๐Ÿ› ๏ธ Do not disable background processes โ€“ disables forced closure.
  • ๐Ÿ”„ Limit background processes โ†’ Choose Without Limitations.
  • ๐Ÿ“ฑ Not optimize MIUI (firmware).

โš ๏ธ Warning: Activating the Do Not Disable Background Processes mode can increase battery consumption by 10-15%. Use this method only for mission-critical applications (e.g., medical monitors or security trackers).

๐Ÿ’ก

The Do Not Disable Background Setting is reset after resetting or updating MIUI. Always check it after updates!

Method 5: ADB-commands to completely disable optimization

For advanced users, there is a way to disable optimization via ADB (Android Debug Bridge) which is guaranteed to work on all versions of MIUI, but requires a PC connection.

Instructions:

  1. Install ADB Tools on your computer.
  2. Enable USB debugging in the developer settings.
  3. Connect your smartphone to your PC and perform at the terminal:

adb shell dumpsys deviceidle whitelist +com.example.app


adb shell cmd appops set com.example.app RUN_ANY_IN_BACKGROUND allow




adb shell settings put global hidden_api_policy 1

Replace com.example.app with your applicationโ€™s batch name (e.g. org.telegram.messenger for Telegram). You can find out the batch name through the App Inspector app or Google Play site (in the address bar after id=).

List of packet names of popular applications
WhatsApp: com.whatsapp Viber: com.viber.voip Yandex.Maps: en.yandex.yandexmaps Google Maps: com.google.android.apps.maps Spotify: com.spotify.music

Method 6: Alternative solutions (if nothing helps)

If all of the above methods have not worked, consider alternative options:

  • ๐Ÿ”„ Custom firmware: Install Xiaomi.eu, LineageOS or Pixel Experience โ€“ they are devoid of aggressive optimization MIUI. Cons: loss of warranty and risk of โ€œbrickingยป.
  • ๐Ÿ“ฑ Second smartphone: Use an old Xiaomi (like Redmi) 4X) exclusively for background tasks (navigator, tracker).
  • โšก Automation: Set up MacroDroid or Tasker to restart the application periodically (e.g., every 30 minutes).
  • ๐Ÿ”Œ Constant charging: Connect your smartphone to a power source โ€” MIUI less often closes applications with a charged battery (>80%).

Critical information for POCO F5 and Xiaomi 13T owners: on these models, MIUI 15 added a hidden โ€œSuper-Saving Modeโ€ that blocks background processes even for applications with disabled optimization. To deactivate it, enter the dial code ##4636## โ†’ select โ€œBattery Informationโ€ โ†’ turn off โ€œUltra-Economic Modeโ€.

FAQ: Frequent questions about background apps on Xiaomi

Why do you reset your autorun settings after the MIUI update?
In major updates (e.g., from MIUI 13 to MIUI 14), the system resets application permissions for security reasons. This is due to a policy change in MIUI Security Center. To avoid problems, before updating: Take screenshots of the current autorun settings. Synchronize settings through Mi Account (if available).
Can system applications (e.g., Camera) be fixed in the background?
System applications (Camera, Phone, Gallery) are prioritized by default in MIUI and rarely shut down. However, if you encounter a problem (e.g., Camera crashes while shooting a video), check: Battery settings โ†’ Power savings โ†’ No restrictions. Settings โ†’ Applications โ†’ Special Access โ†’ Battery Optimization. App Updates in Google Play or Mi App Store. If the problem persists, reset the camera settings through Settings โ†’ Apps โ†’ Camera โ†’ Storage โ†’ Clean Data.
How do I check if MIUI is closing my app in the background?
There are two ways: Through the system event log: Enable USB Debugging. Connect to your PC and execute the command: adb shell dumpsys activity activities | grep "mFocusedApp" Open the application and turn it down. After 5-10 minutes, repeat the command - if the packet name has disappeared, MIUI has closed it. Through Developer Options: Activate Do not disable background processes. Turn on Show background processes in the developer settings. Open the multitasking menu - closed applications will be marked in gray.
Will the background audio playback (Spotify, YouTube Music) work after these settings?
Yes, but with reservations: Spotify and YouTube Music only need to turn off battery optimization and enable autoplay. If the music is interrupted, check the Privacy settings โ†’ Special Access โ†’ Access to Notifications. On some models (Redmi Note 10 Pro) it helps to turn off the Adaptive Battery in the developer settings. For YouTube Music, additionally enable Background playback in the app settings (premium subscription is required).
Can I turn off optimization for all applications at once?
Technically, yes, but it's highly discouraged: โšก Increased battery consumption 30โ€“50%. ๐Ÿข Slowdown of the smartphone due to overloading of RAM. ๐Ÿ”ฅ CPU overheating (trottling risk) If you still need to turn off optimization en masse, use it. ADB-Adb shell settings put global hidden_api_policy 1 Warning: This can cause unstable work MIUI, including occasional reboots.