How to fix the application in the RAM Xiaomi Redmi Note 7: the full guide

Owners of Xiaomi Redmi Note 7 often face a problem when important applications (messengers, navigators or games) are spontaneously closed by the system to free RAM. This is due to aggressive management policies of RAM in the shell of MIUI, which prioritizes energy saving over performance.

In this article, we will discuss 5 working methods of fixing applications in RAM — standard-function MIUI advanced tricks with the use of ADB You will learn how to block the cleaning of background processes for specific programs, what restrictions the system imposes, and how to circumvent them without root rights. 7 with regard to its hardware features (4/6 GB RAM, Snapdragon processor 660).

Why does MIUI close apps in the background?

The MIUI shell uses a Memory Management algorithm that aggressively cleanses background processes to save battery power and prevent deceleration. On the Redmi Note 7, this is especially evident because:

  • 🔋 Optimizing power consumption for the Snapdragon 660 processor (14 nm process technology).
  • 📱 Limited RAM (4 GB in the basic version).
  • 🤖 Built-in mechanism LMK (Low Memory Killer, which forcibly terminates processes when short RAM.
  • 🔄 Functions “Optimization” MIUI", which resets the app cache when the screen is locked.

The system does not distinguish between “important” and “non-important” applications, it is guided only by process priorities and current load. For example, Telegram or Google Maps can close in 5-10 minutes in the background, even if you have 1.5 GB of RAM free.

📊 How often do you close your apps in the background on Redmi Note 7?
Constantly (every 5-10 minutes)
Sometimes (once an hour)
Approximately (only when memory is lacking)
Never noticed.

Method 1: Standard fixation through "Blocking in memory"

The easiest method is to use the built-in MIUI memory lock feature, which is available for most applications, but has limitations:

  1. Open Settings → Applications → Application Management.
  2. Select the app you want (such as WhatsApp).
  3. Put it on the battery. → Locking in memory.
  4. Activate the switch.

⚠️ Attention: On the Redmi Note 7 with MIUI 12+ This option may be hidden for some system applications (e.g. Settings or Phone) and it does not work for service processes (e.g. Google Play Services).

☑️ Preparation for blocking the application

Done: 0 / 4

Once activated, the application will remain in RAM even when the memory is cleared with a button in the multitasking menu, but the system can still close it if critical resource constraints (for example, when you start a heavy game).

AnnexSupports lockdown?Limitations
Telegram✅ Yes.Doesn't work for widgets.
Google Maps✅ Yes.Can close when navigating in the background
Facebook❌ No.It is blocked by the system as "energy intensive".
Spotify✅ Yes.Requires to turn off battery optimization

Method 2: Disabling Battery Optimization for an Application

MIUI automatically limits the background activity of applications through the Battery Optimization mechanism, so that the application stays in memory longer, you need to remove it from this list:

  1. Go to Settings → Battery and Performance → Battery Consumption Management.
  2. Select Applications (or Applications in new versions of MIUI).
  3. Find the right application and set a No Limits mode for it.

This does not guarantee 100% RAM fixation, but it increases the chances that the system will not close it at the first opportunity. For example, for Yandex.Navigator this is critical - without disabling optimization, it can "fly" during the trip.

💡

If the “No Limits” option is not available, try adding the app to “Settings → Permissions → Auto Run” first.

⚠️ Attention: Disabling optimization for 5+ Apps can simultaneously increase battery consumption by 10-15% and overheat the Snapdragon 660 processor with prolonged load.

Method 3: Using Developer Options (Developer Mode)

Redmi Note 7 has advanced process control settings that allow you to manually limit the operation of the LMK (Low Memory Killer).

  1. Go to Settings. → The phone.
  2. Tap 7 times on the MIUI version until the notification “You became a developer” appears.
  3. Back to Settings → Additionally. → For developers.
  4. Find options: Do not save actions → Disable (this will allow applications to stay in the background). Process limit in the background → Set a Standard limit or No restrictions. Background process limitation → Select a Maximum 4 process.

On the Redmi Note 7 with 4 GB of RAM, the “No Limits” setting can lead to lags when multitasking – we recommend using the “Standard Limit” value.

What is LMK and why does it close applications?
LMK (Low Memory Killer) is an Android kernel mechanism that forcibly terminates processes when RAM is scarce. It is more aggressive on Xiaomi than on pure Android because of optimizations for weak processors (for example, the Snapdragon 660 in Redmi Note 7). When a critical threshold is reached (usually 300-500 MB of free RAM), LMK begins to close processes on priority, starting with background applications.

These settings are global and affect all applications, and if you change the phone to slow down, you can return the settings to factory values.

Method 4: Fixing through ADB (no root rights)

For advanced users, there is a method of fixing applications in memory using ADB (Android Debug Bridge.It doesn't require root rights, but it will require a computer and a computer. USB-Instructions:

  1. Install ADB Tools on your PC.
  2. Turn on the phone debugging over USB (Settings → For developers).
  3. Connect the Redmi Note 7 to your computer and confirm the debugging permission.
  4. Open the command line (Windows) or the terminal (macOS/Linux) and type: adb shell cmd appops set <package> RUN_ANY_IN_BACKGROUND allow For example for Telegram: adb shell cmd appops set org.telegram.messenger RUN_ANY_IN_BACKGROUND allow
  5. Then, do: adb shell dumpsys deviceidle whitelist +<application package>

These commands add an application to the system optimization whitelist, which prevents it from being closed. To find an application package, use the command:

adb shell pm list packages | grep -i "name"

💡

ADB-This method works even for system applications that do not support standard locking in memory, but after resetting or updating. MIUI repeat the procedure.

⚠️ Attention: Misuse of the right ADB Do not apply commands for unknown packages and do not change system settings without understanding the consequences.

Method 5: Third-party utilities (require caution)

If standard methods don’t help, you can use third-party apps from Google Play, such as:

  • 🛠️ Greenify – allows you to “freeze” applications in the background without closing them (requires settings through the application). ADB).
  • 🔒 Don't Kill My App! - Analyzes the settings MIUI and offers optimal parameters for fixing applications.
  • ⚡ RAM Manager Pro – allows you to manually set process priorities (only works on rooted devices).

On the Redmi Note 7, without root rights, Greenify is the most effective, but it needs to be configured correctly:

  1. Install the application and grant it permission through ADB: adb -d shell pm grant com.oasisfeng.greenify android.permission.WRITE_SECURE_SETTINGS
  2. Add the apps you want to use to the Hibernate list (but don’t activate hibernation!).
  3. Enable the Boost Mode option in the Greenify settings.

⚠️ Note: Using third-party memory management utilities may conflict with built-in mechanisms MIUI. On the Redmi Note 7, this sometimes results in spontaneous reboots or freezes when used intensively.

Frequent Mistakes and How to Avoid Them

When trying to fix the application in RAM, Redmi Note 7 users often face typical problems:

  1. The option "Block in memory" is not available: 🔹 Reason: MIUI hides it for system or optimized applications (e.g. Facebook or Mi Video). 🔹 Solution: Use ADB-Method (Method 4) or disable battery optimization (Method 2).
  2. The app's still closing: 🔹 Reason: Not enough free RAM (less than 500 MB) or energy saving mode is active. 🔹 Solution: Close unnecessary apps manually and turn off Battery Mode in the settings.
  3. The phone started to brake: 🔹 Reason: Too many applications are locked in memory or disabled LMK. 🔹 Solution: Return the Process Limit settings to factory settings (Method 3).

If none of the methods worked, check:

  • 📱 Version MIUI (Redmi Note 7 is still available for the MIUI 14).
  • 🔄 Availability of updates for problem application.
  • 🛠️ Google Play Services background (sometimes crashes lead to other apps being shut down).
Can system applications (e.g., “Phone” or “Messages”) be stored in memory?
Standard methods, no. MIUI It blocks this capability for critical services. ADB (Method 4) Or applications like Greenify with superuser rights (requires root). For example, for a phone application (com.android.dialer), the command would be: adb shell cmd appops set com.android.dialer RUN_ANY_IN_BACKGROUND allow ⚠️ Risk: Incorrectly configuring system applications can cause phone malfunctions.
Why did the application lock settings reset after the MIUI update?
In case of major updates (for example, with MIUI 12 on MIUI 13) the system resets user optimisation and memory management settings, this is due to policy changes LMK To avoid this, write down a list of fixed applications before updating. Repeat the settings after updating (Methods 1-3). ADB-commands (Method 4) may require reconnecting debugging.
How to check if the application is actually fixed in RAM?
There are several ways: through the multitasking menu: Close all applications except the test one. Lock the screen for 10-15 minutes, then unlock. If the application remains on the list, it is fixed. Through ADB: Follow the command: adb shell dumpsys meminfo <package application> | grep -i "native" If the output is a TOTAL: XXXXXX line with a non-zero value - application in memory. Through the Simple System Monitor: It shows current processes and their status (background/active).
Will memory fixation work on custom firmware (like LineageOS)?
On custom firmware (e.g. LineageOS or Pixel Experience), memory management mechanisms differ from those of the user. MIUI. In most cases: 🔹 Standard "Blocking in memory" (Method) 1) It does not work, it is replaced by the Lock app in function. RAM developer-setting. 🔹 ADB-methods (Method 4) work, but may require other commands (for example, for LineageOS, use adb shell cmd appops set) <package> RUN_IN_BACKGROUND allow). 🔹 There's no aggressive battery optimization, so apps stay in the background longer. 7 custom-made firmware usually has enough shutdown LMK Kernel Adiutor (requires root).
Can I remember a game (such as PUBG or Genshin Impact)?
Games are a special case. They're fixed in RAM possible, but: 🎮 PUBG Mobile and similar games reserve memory when they start, so the standard lock (Method 1) does not apply to them. 🔹 You can also use Genshin Impact or Honkai: Star Rail for the game. ADB (Method 4), but this will increase the load on the Snapdragon 660 processor and lead to overheating. ⚠️ Important: Fixing the game in the background can cause strong lags when switching between apps due to lack of RAM (Redmi Note 7 with 4GB is critical. The best solution for gamers is to use the Game Turbo feature in the game. MIUI (It optimizes the allocation of resources for games without manual fixation).