Have you ever noticed how, after rebooting your smartphone, some applications start spontaneously in the background? Or why does the battery drain faster even though you haven't opened anything? The culprit is autostart applications, one of the key functions Android, which can both simplify life and become a source of problems. In this article, we will take a closer look at what is hidden behind this term, how the mechanism works at the system level, and why smartphone manufacturers have different approaches to its implementation.
Autostart is not just a โfeature for convenienceโ. This is a complex mechanism of interaction between Android OSinstalled apps and device hardware resources. It influences Battery life, system speed and even data security. For example, messengers like WhatsApp or Telegram use autorun to instantly receive messages, and system utilities to monitor updates. But what if these processes get out of control?
What is autorun of applications on Android
In a broad sense autostart is an opportunity applications activated without direct user participation. This happens in three main scenarios:
- ๐ After the device is rebooted โthe application starts automatically when the smartphone is turned on.
- ๐ฑ When connected to the network โactivation occurs when the phone is connected to Wi-Fi or mobile data.
- ๐ According to a schedule or event โ for example, every 30 minutes or when changing geolocation.
Technically, the mechanism is implemented via BroadcastReceiver โ a component Androidthat "listens" to system events (for example, BOOT_COMPLETED to complete the download) and initiates the launch of the application. However, not all apps are allowed to autorun: this requires a special permission in the application manifest (RECEIVE_BOOT_COMPLETED). Smartphone manufacturers (for example, Xiaomi, Samsung, Huawei) often add their own restrictions on top of the standard rules Android, which complicates the function control.
It is important to understand that autorun is not the same as background activity. Autostart initiates running the app, and background activity supports executing it after closing. For example, Google Maps can autostart when connected to a Bluetooth headset (to quickly show navigation), but continue to work in the background according to different rules.
Why autorun is needed: pros and cons
At first glance, it may seem that autorun is an extra load on the system. But the function has justified advantages:
| Advantages | Disadvantages |
|---|---|
| โ Instant notifications (messengers, mail, news) | โ Increased battery consumption (up to 15-20% per day) |
| โ Automatic data updates (weather, exchange rates) | โ Slowdown of the device with a large number of autostarts |
| โ Quick access to frequently used functions (for example, fitness trackers) | โ Risk of data leakage (some applications collect information in background) |
| โ Data synchronization between devices (for example, Google Drive) | โ Difficulty of control on some firmware (especially on MIUI i EMUI) |
The main compromise here is between convenience and performance. For example, Facebook and Instagram they often abuse autorun to show content faster when opening. But if there are dozens of such applications, the smartphone begins to slow down, and the battery runs out in a few hours. This is especially noticeable on budget devices with 2-3 GB of RAM.
โ ๏ธ Attention: Some applications (for example, antiviruses or banking clients) may use autorun to hidden cryptocurrency mining or collect data. Always check permissions in Settings โ Applications.
How autorun works at the Android level
To understand why autorun behaves differently on different devices, you need to look under the hood of the system. There are several key components responsible for this function: Android There are several key components responsible for this function:
BroadcastReceiver- a โreceiverโ of system events. The application registers it in the manifest (AndroidManifest.xml) and specifies which events to respond to (for example,android.intent.action.BOOT_COMPLETED).JobScheduler- a task scheduler that allows you to postpone autostart until later (for example, when the device is connected to charging).WorkManager- a more modern tool for background tasks that takes into account restrictions Doze Mode (power saving mode in Android 6.0+).
Smartphone manufacturers often modify these mechanisms. For example:
- ๐ฑ Xiaomi (MIUI): blocks autostart by default for most applications, requires manual permission.
- ๐ค Samsung (One UI): allows autostart for system and โtrustedโ applications, but limits third-party.
- ๐ Huawei (EMUI): aggressively closes background processes, which breaks the operation of some services (for example, Google Play Services).
Interesting fact: Google has introduced strict restrictions on background activity ( Android 8.0 Oreo Google has introduced strict restrictions on background activity (background execution limits), which prohibit applications from hanging in memory indefinitely. However, autostart on system boot (BOOT_COMPLETED) still works if the user has explicitly allowed it.
How to check which applications have the BOOT_COMPLETED permission?
To do this, you need to use the ADB command:
adb shell dumpsys package | grep "RECEIVE_BOOT_COMPLETED"
This command will list all applications that which can be launched when the device boots. Please note: to work, you need developer rights and connecting the smartphone to the PC.
How to check and disable autorun on your smartphone
Managing autorun depends on the version Android and the manufacturer's shell Below are instructions for the most popular firmware. If your model is not in the list, look for similar ones. menu items.
1. Pure Android (Pixel, Nokia, Motorola, etc.)
On "naked" Android (without shells) there is no separate menu for autorun, but you can limit background activity:
- Go in
Settings โ Applications and notifications โ All applications. - Select the desired application โ
Advanced โ Battery โ Background activity. - Disable the option
Allow background activity.
2. Xiaomi (MIUI)
Xiaomi is known for its strict control over autorun. To configure it:
- Open
Settings โ Applications โ Manage applications. - Click on the three dots in upper right corner โ
Autostart. - Enable or disable switches for the desired applications.
Please note: some system applications (for example, MIUI 12+ some system applications (for example, Mi Security) cannot disable.
3. Samsung (One UI)
On devices Samsung autorun control is hidden in the optimization menu:
- Go to
Settings โ Device maintenance โ Battery. - Click three dots โ
Battery settings โ Background restrictions. - Select applications for which you want to prohibit autostart.
Identify "hungry" applications|Open Settings โ Battery โ Battery usage
Check autostart|Find the "Autostart" or "Background Activity" section in application settings
Disable unnecessary ones|Leave only instant messengers, mail and critical services
Reboot your device|Check if unnecessary processes have appeared after reboot-->
4. Huawei (EMUI/HarmonyOS)
Huawei uses aggressive optimization that often breaks autostart even for legitimate applications. To configure:
- Open
Settings โ Applications โ Applications. - Select the desired application โ
Launch. - Enable options
Autostart,Secondary launchandManual start.
โ ๏ธ Attention: On Huawei Some applications (for example Google Play Services) may stop working correctly if you disable their autorun. This is due to the features HarmonyOS.
Which applications can (and should) be disabled
Not all apps are equally useful in autorun. Here is a list of categories that can be safely limited:
- ๐ฎ Games - they do not require background activity (exception: online games with notifications).
- ๐ Stores and promotional applications (AliExpress, Wildberries, Ozone) - they auto-start only to display advertising.
- ๐บ Streaming services (YouTube, TikTok, Twitch- they do not need a background mode without active viewing.
- ๐ Analytical tools (for example, Google Analytics in some applications) - collect data about your activity.
But hereโs what itโs better not to touch:
- ๐ฌ Messengers (WhatsApp, Telegram, Viber) - without autorun you will not receive notifications.
- ๐ง Email clients (Gmail, Outlook) - new emails will arrive with a delay.
- ๐ Banking applications - some of them require background activity for Push notifications about transactions.
- ๐ก๏ธ Antiviruses and VPN - their background operation provides real-time protection.
If in doubt, disable autorun step by step and observe the behavior of the smartphone for 1-2 days. Use the tool Settings โ Battery โ Battery usageto track which applications are draining your device even in standby mode.
adb shell dumpsys batterystats --charged
It will show statistics on battery consumption since the last charge. Look for apps with a high value top or wake_lock.-->
Autostart and security: hidden risks
Autostart is not only a matter of performance, but also potential security breach. Here are the risks it carries:
- Collecting data without the user's knowledge. Some applications (especially from unofficial sources) may use autorun to collect information about your activity, location, or even correspondence.
- Vulnerabilities in system components. If a malicious application receives permission to autorun, it can be activated every time the phone is turned on, bypassing some protections Android.
- Cryptocurrency mining. In 2022, there were cases when legitimate applications (for example, UC Browser) secretly mined Monero in the background using autorun.
How to protect yourself?
- ๐ Install applications only from Google Play (or official stores like Galaxy Store for Samsung).
- ๐ก๏ธ Use Google Play Protect to scan for malware (included in
Settings โ Security). - ๐ Regularly check application permissions in
Settings โ Applications โ Permissions. - ๐ Update Android i applications up to the latest versions - many vulnerabilities are closed in security patches.
If you suspect that some application is abusing autorun, check it through services like VirusTotal (download the APK file You can also use ADB for detailed analysis:
adb shell dumpsys package <package_name> | grep "permission"
Alternative ways to manage autorun
If the standard settings Android do not provide enough flexibility, you can use third-party tools:
| Tool | Description | Requires Root? |
|---|---|---|
| Greenify | Forcibly โfreezesโ applications, preventing them from autorunning. Works even without root on some firmware. | โ No. (limited) |
| Brevent | Blocks background activity at the kernel level. Requires ADB commands for configuration. | โ No (ADB required) |
| Tasker | Allows you to create rules for autostart (for example, launch the application only at a certain time). | โ No |
| SD Maid | Clears the cache and disables autostart for unnecessary services. There is a function for analyzing system processes. | โ Yes (for full functionality) |
For use Greenify or Brevent without root access you will need to run the ADB command:
adb -d shell pm grant com.oasisfeng.greenify android.permission.WRITE_SECURE_SETTINGS
This command gives the application the rights to change system settings. Be careful: incorrect use can lead to unstable operation of the device.
โ ๏ธ Attention: Applications like Greenify can conflict with system optimizers (for example, MIUI Optimizer on Xiaomi) Before using, make a backup copy of your data.
If you are not ready to understand ADB or root access, limit yourself to standard Android settings. In 80% of cases, this is enough. for a noticeable improvement in autonomy and performance.
FAQ: Frequently asked questions about autorun on Android
๐น Why do some applications stop showing notifications after autorun is disabled?
Real-time notifications (for example, in instant messengers) require the application to run in the background if you disable it. autostart, the app will not be able to start itself and wait for an incoming message. Solution: leave autostart for critical applications or configure exceptions in the battery menu.
๐น Is it possible to completely disable autostart for all applications?
Technically yes, but this will lead to the inoperability of many functions: from Push notifications to automatic data synchronization. disable autorun selectively, starting with the most โgluttonousโ apps. On some firmware (for example, EMUI), complete disabling can cause errors in the system.
๐น Why does autorun work differently on one smartphone than on another?
Manufacturers modify the standard one Android, adding its own optimization algorithms. For example, Xiaomi aggressively blocks background processes, and Samsung allows autorun for โtrustedโ applications. Even on the same brand, the behavior may differ depending on the regional firmware.
๐น How to check which applications are launched. loading the system?
There are several ways:
- Through ADB (see spoiler above with the command
dumpsys package). - Using applications like Startup Manager (requires root).
- Manually - reboot the phone and immediately open
Settings โ Applications โ Running(on some firmware).
Please note: system applications (for example Google Play Services) can do not appear in this list.
๐น Does autorun affect performance in games?
Yes, but indirectly. If there are many applications running in the background, they occupy RAM and processor resources, which can lead to freeze or a decrease in FPS in games. This is especially noticeable on devices with 3-4 GB. RAM. Solution: before starting the game, close all unnecessary apps through the recent tasks menu or use โgame modeโ (available on Xiaomi, ASUS ROG etc.).