How to fix the application in the background on Xiaomi Redmi Note 9: all ways

Why apps are closing in the background on Redmi Note 9 and how to fix it

Owners of Xiaomi Redmi Note 9 often face a problem: messengers, music players or navigators suddenly β€œfly out” from the background, interrupting playback or notifications. The reason for this is the aggressive optimization of the battery in the MIUI firmware, which forcibly closes β€œunnecessary” processes. But the solution is: the correct setting of background processes and exceptions will keep critical applications always active.

In this article, we will discuss 5 working methods for fixing applications in the background, including hidden MIUI settings that Xiaomi does not advertise. Importantly, some methods require administrator rights or enable developer mode - but the result is worth it. Let's start with the simplest and end with advanced tricks for power users.

Method 1: Setup the autoloading of the application

The first step is to add the app to the autoboot list, which will allow it to start automatically after the device is restarted and reduce the chances of forced closure.

Instructions:

  • πŸ“± Open the Settings. β†’ Annexes β†’ Application management
  • πŸ” Find the desired application (for example, Telegram or Yandex.Navigator) and tap it
  • πŸ”„ Go to the Autoboot section and activate the switch
  • ⚑ Reboot your smartphone to make changes take effect

This method works for most applications, but does not guarantee 100% stability. For instant messengers (such as WhatsApp), additionally check the notification settings - they must be enabled without restrictions.

Add to autoload|Check notifications|Reset the device|Testing in the background 10-15 minute-->

Method 2: Disabling Battery Optimization for a Specific Application

MIUI by default limits the background activity of hated applications to remove the restrictions:

Algorithm of action:

  1. Go to Settings β†’ Battery and Performance β†’ Battery Optimization
  2. Select All Apps in the top menu
  3. Find the right app (like Google Maps) and tap it.
  4. Choose the No Limits option (not to be confused with Optimized!)

⚠️ Note: This method can increase battery consumption 5-15% Don't use it for all programs in a row, only for mission-critical programs.

AnnexRecommended treatmentEstimated increment in consumption, %
TelegramNo restrictions.3-7%
Yandex.MusicNo restrictions.5-10%
Google MapsNo restrictions.8-15%
ViberIntelligent optimization1-3%

Telegram|WhatsApp|Yandex.Navigator.|Google Maps|Spotify|Other-->

Method 3: Fixing through developer settings

For advanced users, there's a hidden method that uses developer mode, which allows you to forcefully limit the number of background processes, but it requires caution.

How to turn on:

  1. Activate Developer Mode: Settings β†’ About Phone β†’ MIUI Version (Tap 7 times)
  2. Go back to the main settings and open a new section for developers
  3. Find the parameter Background Process Limit and set the No Limits or Standard Limit
  4. In the same menu, activate Do not disable background processes

⚠️ Note: setting the "No Limits" value can cause the device to overheat when multitasking is intense. Use this method only if previous ones have not helped.

What to do if after the changes the smartphone began to slow down?
Return the background limit to the "Standard Limit" and restart the device. If the brakes are retained, reset the developer's settings to factory settings in the same menu ("Reset" option).

Method 4: Use the memory lock function (MIUI 12+)

Starting with MIUI 12, Xiaomi added a useful feature, which is to block applications in memory, which prevents the application from unloading from RAM even when resources are scarce.

Step-by-step:

  • πŸ“² Open the latest apps (swipe up with a delay)
  • πŸ”’ Find the card of the desired application and swipe down (not to the right!)
  • πŸ›‘οΈ The lock icon will appear - tap it for activation
  • πŸ”„ Repeat for all critical applications (maximum) 3-5 piece)

This method works instantly and does not require rebooting. However, remember: abuse of locking (more than a few). 5 applications) may slow down the system. 1-2 major.

πŸ’‘

If the lock icon does not appear when swiping down, upgrade to the latest version of MIUI. In older versions (below 12.0.3), this feature may not be available.

Method 5: Adjust system settings through ADB (for experienced)

If standard methods don’t work, the last option is to disable MIUI optimization via ADB. This requires a computer and basic command line knowledge.

Instructions:

1. Connect Redmi Note 9 to your PC via USB (enable USB debugging in the developer settings)


2. Open the command line (Windows) or the terminal (Mac/Linux)




3. Enter the command:




adb shell dumpsys deviceidle whitelist +com.example.app




(Replace com.example.app with your application’s batch name)




4. To disable all restrictions, use:




adb shell dumpsys deviceidle force-idle




adb shell settings put global hidden_api_policy 1

πŸ” How to find a batch name? Install the App Inspector app from Google Play, which will show the exact packet names for all installed programs.

⚠️ Attention: misuse ADB-commands can lead to unstable system operation or reset settings. Before experiments, back up your data through Settings β†’ Additionally. β†’ Backup and reset.

Additional tips for stable operation of background applications

Besides the basic techniques, there are a few assistive tricks that will improve the situation:

  • πŸ”‹ Turn off the Adaptive Battery in the battery settings – it often conflicts with manual settings
  • πŸ“΅ Add the application to Memory Cleanup Exceptions (Cleanup section in settings)
  • πŸ”„ Regularly (once a month) reset the system cache through Settings β†’ Memory. β†’ Cleanup
  • πŸ“² For instant messengers, disable push notification optimization in their individual settings

If the problem persists despite all efforts, check the firmware version. Redmi Note 9 is the most stable global build MIUI 12.5.3 and later. Update the system through Settings β†’ Software Update.

πŸ’‘

The combination of 2 (disable battery optimization) + 4 (lock in memory) gives the best result for 90% of users.

FAQ: Frequent questions about fixing apps in the background

❓ Why After Updating MIUI Apps are starting to close again?
Xiaomi resets some optimization settings with major updates. After the update re-update: Check the autoload of applications Unlock battery limitations Update the applications themselves to the latest versions If the problem persists, reset settings through Settings β†’ Additional β†’ Reset (without deleting data).
❓ Can I fix system applications in the background (for example, Caller)?
Xiaomi system applications (Call, Messages, Camera) have default priority in the background. Additional fixation is not required, but if problems arise: Clear the app cache through Settings β†’ Apps Disable and turn on permissions (especially Phone and SMS) Check Safe Mode (hold off button β†’ Safe Mode)
❓ How to know which application is β€œkilling” background processes?
Install AccuBattery or BetterBatteryStats from Google Play. These utilities show: What processes are forced to close Which applications consume the most resources Deep sleep statistics for each application Alternative: turn on the Battery Log in the developer settings and analyze the log through Battery Historian.
❓ Will these methods work on the Redmi Note 9 Pro or POCO X3?
Yes, all of the described methods are relevant for all devices on MIUI 11-14, including: Redmi Note 9 Pro/Pro Max POCO X3/X3 Pro Redmi 9/9A/9C Differences may be in: Location of menu items (in new versions of MIUI) Availability of the function "Block in memory" (not on some budget models)
❓ Why does the app sometimes close after fixing in the background?
Possible causes and solutions: Reason Solution RAM Lack (less than 100MB free) Close unnecessary applications, clear cache Active Power Saving Mode Disable it in battery settings App not optimized for MIUI Check updates or use an alternative (e.g. Foobar2000 instead of Spotify) Conflict with another background application Turn off other fixed programs alternately