The operating system Android is famous for its thoughtful resource management system, which automatically closes background processes to extend battery life. However, sometimes this “concern” turns against the user: important instant messengers stop sending notifications, the navigator resets the route, and the smart alarm clock does not go off on time. This happens because the system aggressively optimizes the operation of the software, considering it inactive.

To solve this problem, you need to know how to add a app to Android exceptions. This procedure allows you to “allow” a specific application to run in the background without restrictions, ignoring standard rules for saving power and clearing memory. In this article, we will look at all the nuances of setup: from system parameters to settings of third-party security utilities.

Why the system closes applications and when exceptions are needed

The operating mechanism background processes in modern versions of Android has undergone significant changes. Starting with version 8.0 (Oreo), Google introduced strict restrictions on what apps can do in the background. This was done in order to prevent malicious or simply unoptimized software from “consuming” RAM and draining the battery.

When you minimize an application, the system puts it in a “cached” state. If the device begins to run out of RAM (RAM) or if the sleep timer is triggered, the process is forcibly terminated. This is normal for lightweight utilities, but for critical services it is unacceptable.

Adding to exceptions creates a kind of “immunity” for the application. The system marks it as a priority and tries not to unload it from memory even if there is a lack of resources. This is especially true for:

  • 📱 Messengers (Telegram, WhatsApp), which must always be online.
  • 🎵 Music players running in the background while using other apps.
  • 🏃 Activity trackers and pedometers that collect data 24/7.
  • 📡 Applications for remote access and monitoring.

It is important to understand the difference between system optimization and the operation of antiviruses. Often the user looks for a way to add a file to exceptions, confusing system settings with security settings. These are different procedures that require different approaches.

Configuring exceptions in system battery settings

The very first and most important step is to disable power consumption restrictions for a specific application. The interface may differ depending on the manufacturer's shell (MIUI, OneUI, ColorOS), but the logic remains the same. You need to tell the system that this application should not be limited in the background.

Go to the main settings of your smartphone and find the section responsible for power. It is usually called Battery or Power and performance. Inside this menu, look for the item Battery optimization or Battery consumption by applications. A list of all installed apps is displayed here, indicating the time they work in the background.

Select the desired application from the list. You will see several operating mode options. The default mode is almost always "Optimized" or "Smart Limit". You need to switch this parameter to No restrictions or No restrictions. After this, the system will stop “putting to sleep” the process of this application.

💡

On some Xiaomi and Redmi smartphones this setting is hidden deeply: Settings → Applications → All applications → [Select application] → Battery → Energy saving → No restrictions.

Don't forget to also check your notification settings. Sometimes, even when running in the background is allowed, the system blocks pop-ups. Go to Settings → Notifications and status bar, find the application and make sure that all types of notifications are allowed and the priority is set to "High".

💡

The "Unlimited" mode in the battery settings is the foundation for the stable operation of any background service on Android. Without this step, other settings may not work.

Exceptions in the Accessibility and AutoPlay menu

In addition to battery management, smartphone manufacturers implement their own control mechanisms. In shells from Chinese vendors (Huawei, Honor, Xiaomi, Oppo) there is a separate task manager that clears memory more aggressively than Android itself. Here you need to configure autorun and fix the application in memory.

Find on the desktop or in the application menu a utility called "Phone Manager", "Security" or "Optimization". Inside it, find the section Autostart. Add the desired app to the list of allowed ones. This ensures that the application will launch immediately after turning on the smartphone, even if you did not open it manually.

The second important point is blocking the application in the list of recent tasks. Open the multitasking menu (Square button or swipe up from bottom and hold). Find the application card you need. Usually, if you pull the card down or click on the lock icon next to it, it will lock. When you press the "Clear all" button, the pinned applications will remain in memory.

Smartphone brand Name of the settings section Key action
Samsung Device maintenance → Battery Sleep in standby mode → Exceptions
Xiaomi / Redmi Applications → Autorun Enable the switch for the application
Huawei / Honor Phone manager → Launch applications Disable "Automatic management" and enable everything manually
Oppo / Realme Phone Manager → Permissions Autostart and Work in the background

It is also worth looking at the section Special capabilities. Some applications require the right to display on top of other windows or access to use data in the background. These items are often found in the menu Applications → Special access. Make sure that the checkboxes are in front of all the necessary permissions for your software.

📊 What problem do you encounter most often?
Applications crash on their own
Notifications do not arrive
The battery runs out quickly
The phone is slow

How to add an application to antivirus exceptions

If you use a third-party antivirus (for example, Kaspersky, ESET, Dr.Web) or a built-in scanner security, it can block the operation of certain apps, considering them suspicious. This often happens with utilities for system modification, emulators, or specific software.

To add a app to antivirus exceptions, open the security software interface. Find the section Settings or Protection. Look for an item with the name Exclusions, White list or Trusted applications. The adding mechanism is simple: you select an application from the installed list or specify the path to the APK file.

⚠️ Attention: Add to your antivirus exceptions only those apps whose origin you are 100% sure of. If the security system flags a file as a threat, ignoring this warning may result in your device becoming infected with miners or spyware.

In some cases, the antivirus may quarantine files. If your legitimate application has been deleted or blocked, go to the Quarantine or Threat historysection. Find the file in the list, click on it and select the option Recover and Add to exceptions. This will prevent the file from being deleted again during the next scan.

For built-in security solutions (for example, Google Play Protection) the procedure is slightly different. Go to the application Google Play Market, click on the profile icon and select Play Protection. In the settings (gear) you can disable scanning, but this is not recommended. It is better to simply ignore false positives for a specific application if you are confident in its security.

What to do if the antivirus deletes the file immediately after installation?

Try to temporarily disable real-time protection, install the application, add it to white list, and only after that turn the protection back on. This is the most reliable way to avoid the deletion cycle.

Setting exceptions in memory cleaners and accelerators

A ​​separate category of problems is associated with cleaning applications (Clean Master, CCleaner, built-in “accelerators”). These apps work on the “scorched earth” principle: they see any process running in the background as a load on the system and strive to terminate it.

If you use such utilities, it is vital for you to configure the list ignored applications. Open the cleaner settings and find the section White list, Ignored applications or Lock (Lock). Add there all the apps that should run constantly.

Often users complain that the music stops when starting a game or a heavy app. This is the work of memory cleaning algorithms. Adding the player to the cleaner exceptions will solve this problem. However, experts recommend being careful:

  • 🧹 Do not add system cache or garbage to exceptions - this will slow down the phone.
  • 🔋 Exclude only active services (messengers, navigation), not games.
  • ⚙️ Regularly check the white list, removing apps from there that you no longer use.

It is worth noting that on modern smartphones, using third-party memory cleaners often does more harm than good. Built-in Android mechanisms (starting from version 9.0) handle memory management more efficiently. If you notice problems with the operation of applications, try completely uninstalling a third-party cleaner and setting up system exceptions.

☑️ Checking the cleaner settings

Completed: 0 / 5

Advanced methods: ADB and developer rights

For advanced users for whom standard settings are not enough, there are customization methods via ADB (Android Debug Bridge) or the menu for developers. These methods allow you to control processes at a deeper level, ignoring some shell restrictions.

To use this method, you must first activate developer mode. Go to Settings → About phone and quickly click on the item Build number 7 times until a notification about activating the mode appears. Then in the menu For developers enable USB debugging.

Connect your smartphone to your computer and run a command that will prevent the system from “killing” the processes of a specific application. The command looks like this:

adb shell am set-inactive com.example.app false

Where com.example.app need to be replaced with the real batch identifier of your application. You can find it out in the application settings or through special utilities. There is also an item in the developer menu Background processeswhere you can set the limit to "No restrictions", although this affects the entire system as a whole.

⚠️ Attention: Changing system parameters via ADB requires caution. Incorrect commands can lead to unstable system operation or cyclic reboots. Use this method only if you understand what you are doing.

Another useful option in the developer menu is Do not unload activities. If you enable this switch, the system will keep application state in memory for as long as possible. This is useful for testing, but can lead to memory overflow on devices with a small amount of RAM (less than 4 GB).

Frequent errors and troubleshooting

Even after making all the settings, users sometimes encounter that applications are still unloaded. Most often, the reason lies in aggressive energy saving settings, which are duplicated at different levels of the system. For example, you allowed work in the background, but the "Ultra-saving" mode is enabled, which blocks everything except calls.

Check whether the mode is enabled Traffic savings. In the network settings (Connections → Data usage → Traffic savings), make sure that your application is allowed to transfer data in the background. If this item is disabled, the application will not be able to connect to the server, even if the process is not killed by the system.

It is also worth paying attention to updates to the operating system itself. Manufacturers often change the logic of background processes in major Android updates. What worked on version 11 may require new settings on versions 13 or 14.

⚠️ Attention: Settings interfaces may change with the release of new firmware versions. If you do not find the exact name of the item, look for synonyms: “Sleep”, “Optimization”, “Restrictions”, “Background activity”.

If nothing helps, try deleting and installing the application again. Sometimes the permissions configuration files become corrupted during the upgrade process. A clean installation will reset all restrictions to factory settings, and you will just need to re-configure exceptions.

💡

The main cause of failures is a conflict between system battery saving and smart memory cleaning settings. You need to solve the problem comprehensively, checking both sections of the settings.

FAQ: Frequently asked questions

Does adding to exceptions affect the speed of the phone?

Yes, it can. If you add too many heavy applications to exceptions, they will constantly consume RAM and CPU time. This may lead to the system not having enough resources to run new apps, and the phone will start to slow down. Add only really necessary software to the white list.

Does an application in exceptions consume more battery?

Of course. The point of exceptions is that the application does not go to sleep. If this is a messenger, the cost will be minimal. But if you add a game or a heavy application to the exceptions that continues to perform calculations in the background, the battery will drain much faster, even when the screen is turned off.

Is it possible to add system applications to the exceptions?

Technically it is possible, but it is highly not recommended. System processes (Android System, Google Play Services) already have the highest priority. An attempt to change their settings can lead to conflicts, unstable network operation, or even a “bootloop” (infinite reboot).

Why are the settings reset after a reboot?

This behavior is typical for some shells (for example, older versions of MIUI), which reset custom optimizations when rebooted. In this case, the only thing that helps is disabling “smart” optimization in the global developer settings or using third-party utilities to freeze settings (Root is required).

How to find out which application is draining the battery in the background?

Go to Settings → Battery → Battery usage. There will be a detailed list of applications sorted by energy consumption. If you see an application that you have not used, but it is at the top of the list, it means that it is actively running in the background, and perhaps it should be limited rather than added to exceptions.