Xiaomi and Redmi smartphone owners often face an annoying notice that says โdevice search is unexpectedly closedโ This system error can appear at the most inopportune moment, blocking access to basic functions or simply annoying with persistent pop-ups.
To make matters worse, standard notification closure often fails, and the error returns at short intervals, which can indicate both a temporary software failure and a conflicting version of the MIUI or HyperOS firmware. Understanding the nature of the error is the first step to successfully fixing it without losing data.
In this article, we will discuss the causes of the failure in detail and offer step-by-step instructions for fixing it. You do not need to be an expert in mobile technology to perform the actions described below.
Causes of System Failure
The fundamental reason for the error message is the unstable operation of the system application, which scans the space around in the background. In the Android operating system, on which the shell from Xiaomi is built, this process is integrated deep into the kernel, the failure can occur due to cache damage or version conflict after the update.
Often, the problem occurs after installing applications from unverified sources. Third-party programs can request access to geolocation and Bluetooth, causing a conflict with system permissions. If an application is written with errors or contains malicious code, it can โdropโ the process of finding devices, causing cyclical notifications.
โ ๏ธ Note: If an error occurs immediately after installing a particular application, try to delete it. Malware can not only cause crashes, but also steal your personal data.
Also worth considering is the impact of overflowing RAM: When RAM is filled with background processes, the system begins to force services to close, sometimes resulting in incorrect system components shutting down.
Another factor is the desynchronization of Googleโs system clocks and services, where if the time on a device is very different from the real time, security certificates may not pass the verification, which blocks the operation of network modules, which leads to the search process being interrupted with a critical error.
๐ How often do you make a mistake?
Only after turning on the phone
Constantly every 5 minutes
After installation of the application
Rarely, once a week.
Basic reset and discharge methods
The easiest and often effective way to fix temporary software errors is to completely reboot the device. However, in the case of Xiaomi, a conventional shutdown may not clear up the problem processes.
To do this, press the power button and hold it for about 10-15 seconds until the screen goes out and the brand logo appears. If the device responds to touch, you can use the software menu. Go to the settings and find the expansion point where the reboot function is available.
- ๐ Press the power and volume button (increase) simultaneously for 10 seconds for a forced restart.
- ๐ฑ Through the menu: Settings โ The phone. โ Reboot (the path may differ depending on the version) MIUI).
- ๐ Extract. SIM-card on the device turned off, wait a minute and paste back, then turn on the phone.
If a simple reboot doesn't work, you need to clear the cache of the problem component. Unlike a full reset, this operation is safe for your photos and contacts. It only deletes temporary files that may have been corrupted.
Find the app section in the settings menu. You need to sort the list and find the system process. Often it is hidden, so you need to enable the system process display in the settings menu (three dots in the corner of the screen).
Settings โ Applications โ All applications โ Show system processes โ Device search โ Clean
After cleaning the cache and data, be sure to restart the smartphone, which will force the system to recreate the configuration files from scratch, and in most cases, this eliminates the error associated with overflowing or corrupting temporary files.
Configuring Permits and System Services
The root cause of the error is often incorrect access rights. The system search service requires certain permissions to work correctly. If the user previously manually restricted these rights or they were reset by a security update, a conflict arises.
You need to check the settings for special features and permissions for system components. In modern versions of the MIUI 13/14 shell and HyperOS, access control has become more stringent, and the system can block background activity, considering it suspicious.
Open the settings and go to the privacy section, where you can see which apps tried to access geolocation or Bluetooth at the time of the crash, and this will help identify the culprit if the problem is caused by third-party software.
| Component | Permission required | Default status | Action. |
|---|
| Bluetooth | Location | Included. | Check it out. |
| Wi-Fi Scan | Geolocation | Included. | Permission. |
| Systemic UI | Launch in the background | Limited. | Lift the limit |
| Google Play | Notifications | Included. | Check it out. |
It is also important to disable battery optimization for system services. Xiaomiโs aggressive power saving mode often kills search processes, leading to a closing error. Find battery mode in your settings and select โNo Limitsโ for system components.
Hidden Developer Settings
To access the advanced settings, click 7 times on the build number in the About Phone section. Then, in the Developer Menu, look for Device Search and see if the scan limit is right there."> Debugging by USB If the software didn't work, maybe the problem is network settings, resetting the network settings will bring Wi-Fi, Bluetooth and mobile data back to factory values, and it won't delete your personal files, but you'll have to re-enter the passwords from the Wi-Fi networks. To do the reset, go to Connect and Sharing. At the bottom of the screen, there's usually a reset button. Confirm and wait for the communication modules to reboot. This often solves the problem of desynchronizing network protocols. A more advanced method is to use debugging by USB. This method requires connecting the smartphone to the computer. You will need a cable and installed drivers. ADB The method allows you to send a command to reset specific services without completely reinstalling the system. โ ๏ธ Attention: Use of teams ADB It requires caution. Introducing incorrect commands can disrupt the system. Act strictly on instructions. Enable debugging mode in the developer menu. Connect your phone to your PC and open the command line. Enter a command to restart the connection framework. This will force all network services to be updated. adb shell pm clear com.android.settings adb shell am restart-package com.android.bluetooth After the commands are executed, the phone may briefly lose communication with the computer. This is normal behavior. Check if the error notification has disappeared. If the problem persists, it is possible that damage to the affected layers of the system. Firmware update and system rollback Often a bug is a known bug of a particular version of the operating system. Xiaomi developers regularly release security patches and patches. Check for updates in the About menu. If a new version is available, be sure to install it. In some cases, the problem appears after the update. If the error occurs immediately after the update, perhaps the new version of the firmware contains a bug. In this situation, waiting for the next patch or rollback on the previous stable version of the system will help. To roll back the system, you will need to download the archive with the firmware (Recovery ROM) from the official website. ๐ฅ Download the current or previous stable firmware version for your model. ๐พ Place the file. update.zip rootfold. โ๏ธ Go to Settings. โ The phone. โ Version. MIUI. ๐ Click on the menu and select "Select firmware file," then run the update. The system reinstallation process takes from 10 before 30 It's going to reboot a few times, and it's important to keep the battery up. 50%. Interrupting firmware can lead to the inability to load the phone. ๐กReinstalling the firmware through the update menu is the safest way to fix system errors without losing data and using the computer. Radical measures: full reset (Hard Reset) When none of the gentle methods does not help, the last option is a complete reset to factory settings. This action will remove all the data from the device: contacts, photos, apps and settings. So before you start, make sure to back up. You can reset through the settings menu if the phone turns on. If the system is unstable, use Recovery mode. Turn off your phone and press the power and volume buttons at the same time. From the Recovery menu (which can be in Chinese or English), select Wipe Data. Confirm the action by entering the code if necessary. The system will clear the userdata and cache partitions, returning the phone to the โout of the boxโ stateยป. โ ๏ธ Warning: After a full reset, you will need to enter the Google and Mi Account account that were previously associated with the device. Make sure you remember the passwords, otherwise the phone may lock. Once the reset is complete and the initial setup is complete, don't rush to install all the apps at once. Check the system's "clean" state. If the bug doesn't appear, install apps one at a time to identify conflict software. Frequently Asked Questions (FAQ) Is it safe to ignore this error? Ignoring the bug is not recommended. Although the phone may be operating, the background process causing the failure consumes battery resources and may indicate more serious problems with the security or stability of the system in the future. Could this error be a virus? Yes, there is a possibility that malware is masked under the guise of a system process. If the error appeared after installing a game or application from an unknown source, the risk of infection is high. It is recommended to check the device for antivirus after the network connection, or the network does not affect the network. Your photos, contacts and files will be preserved. However, the Wi-Fi passwords will have to be re-entered. Will flashing through your computer help? Yes, Fastboot firmware from your computer (Clean Install) is the most effective method, since it completely replaces all system partitions. However, this is more difficult and requires unlocking the bootloader, which can take up to 7 days to wait.