How to remove a virus on Xiaomi: 5 proven ways (2026)

Viruses on Xiaomi, Redmi or POCO smartphones are not just annoying ads, but a real threat to the security of your data. Attackers use vulnerabilities in MIUI to steal logins, bank details or even remote control of the device. Unlike computers where antiviruses work around the clock, on Android viruses often disguise themselves as system processes, and users notice them only when the smartphone starts to β€œglut”: windows open spontaneously, the battery runs out in an hour, or unknown applications appear.

This article is not about magic buttons, but about a systematic approach, from diagnosing infection to completely removing the virus to ensure that it does not return. We will discuss current methods for MIUI 14/15, including hidden shell functions that are not described in the official documentation.

Signs of a virus infection on Xiaomi

The first step is to confirm that the virus is the problem, not the system failure, and here are the key symptoms that should alert you:

  • πŸ“± Unknown apps on the menu (often with Chinese characters in the title or suspicious permissions).
  • πŸ”‹ A sharp drop in autonomy: the battery sits behind 2-3 hourly.
  • 🌐 Advertising in unexpected places: banners on top of system windows, in settings or even on the lock screen.
  • πŸ“€ Spontaneous distribution SMS or social media posts (the virus may use your account to spam).
  • πŸ”’ Blocking access to Settings β†’ Applications or Security.

Viruses that masquerade as MIUI system services are especially dangerous, such as com.android.system, com.qualcomm.telephony or com.xiaomi.mipicks. They cannot be removed by standard methods - special tools will be required.

πŸ“Š How you usually detect viruses on your smartphone?
On the commercial.
By strange behavior.
Through antivirus
Accidentally in the settings
I didn't.

⚠️ Warning: If the smartphone started to overheat without loading (temperature above 50)Β°C in plain), this could be a sign of cryptocurrency mining through a virus. Check processor activity in Settings β†’ Battery β†’ Battery utilization.

Method 1: Removing the virus through safe mode

Safe Mode only loads system applications, blocking all third-party applications, including viruses, and is the most reliable way to remove infected software if the virus has not infiltrated system files.

How to run Safe Mode on Xiaomi:

  1. Turn off your smartphone.
  2. Press the power button before the MI logo appears.
  3. Once the logo appears, press and hold the volume button until the download is complete.
  4. In the lower left corner of the screen will appear the inscription Safe Mode.

In safe mode:

β˜‘οΈ Safe mode operations

Done: 0 / 4

If the virus blocks removal, try revoking its administrator rights:

  1. Go to Settings β†’ Passwords and Security β†’ Device Administrator Rights.
  2. Uncheck the boxes from unknown applications.
  3. Go back to Settings β†’ Apps and delete them.

⚠️ Note: Some viruses (e.g. xHelper) recover after rebooting. If the virus returns after leaving safe mode, proceed to method 3 (reset via Fastboot).

Method 2: Using the built-in MIUI antivirus

MIUI has a built-in security scanner that can detect and remove most viruses, but it's not always effective against new threats or rootkits.

  1. Open the Security app (shield icon).
  2. Go to the Scanner tab.
  3. Click Full Check (not quick!).
  4. Wait until it is completed (it can take 10-15 minutes).
  5. Delete or deactivate any threats you find.

If the scanner does not find the virus, but you are sure of infection, try updating the databases:

  • In the same Security app, go to Settings β†’ Database Update.
  • Update the databases and repeat the scan.

πŸ’‘

If the built-in antivirus doesn’t work, install Malwarebytes or Dr.Web Light from Google Play. They are better at detecting hidden threats, but require root rights to remove them completely.

AntivirusEffectiveness against viruses on XiaomiDemands a rut?Free version
MIUI Security ScanMedium (good for adwarΓ©)No.Yes.
MalwarebytesTall (finds rootkits)For deep cleaning, yes.Yes (with limitations)
Dr.Web LightHigh (specializes in Android)No.Yes.
Bitdefender MobileVery high (cloud scanner)No.No (14 days of the trial)

Method 3: Hard reset via Fastboot (for advanced)

If a virus has been embedded in system files and is not removed by standard methods, only a full reset via Fastboot will help.This method erases all data on the device, but is guaranteed to remove even the most persistent viruses.

You'll need:

  • πŸ–₯️ A computer with installed Xiaomi drivers and ADB/Fastboot.
  • πŸ”Œ USB-cable (original, not cheap fake).
  • πŸ“„ Firmware for your model (download from the official website).

Step-by-step:

  1. Turn off your smartphone.
  2. Press Power + Volume down before the Fastboot logo appears.
  3. Connect your phone to your PC and open the command line in the folder with the platform-tools.
  4. Enter the commands in turn: fastboot devices (should display the serial number of the device) fastboot erase userdata fastboot erase cache fastboot flash system.img (replace system.img with the current name of the firmware file)
  5. Upon completion, type in fastboot reboot
What if Fastboot doesn’t see the device?
1. Install the Mi Flash Tool. 2 drivers. Try another one. USB-3. Run the command line on behalf of the administrator. 4. In Device Manager, check that the phone is defined as Android Bootloader Interface.

⚠️ Note: Some viruses (such as Triada) can survive even after being dumped via Fastboot if they have been modified. boot.img. In this case, you need a full flashing through the Mi Flash Tool with a clean all checkmark.

Method 4: Manual removal via ADB (for power users)

If the virus blocks access to settings, but you don't want to reset, you can try to delete it via ADB (Android Debug Bridge), which requires debugging over USB enabled.

How to enable debugging if the virus blocks settings:

An alternative way to enable debugging over USB
1. Go to Settings β†’ About Phone. 2. 7 times click on the MIUI Version (you will become a developer). 3. Go back to Settings β†’ Additional β†’ For Developers. 4. Enable USB Debugging (if the virus blocks, use Google's voice assistant to navigate the menu).

Instructions for removal through ADB:

  1. Connect your phone to your PC and confirm access to debugging.
  2. In the command line, type: adb shell
  3. Get a list of packages: pm list packages -f (look for suspicious names, such as com.android.fakeupdate)
  4. Delete the virus packet: pm uninstall -k --user 0 name.packet

Viruses are often disguised as system packages with names like com.qualcomm.services or com.android.providers. Before deleting, check the name of the package in Google - system files can not be deleted!

Method 5: Flashing through the Mi Flash Tool (extremely)

If all the previous methods failed, all that remains is a complete flashing through the Mi Flash Tool, which will erase all data, but return the smartphone to the factory state.

What you need:

  • πŸ–₯️ Windows PC (7/10/11).
  • πŸ“ Fastboot firmware for your model (download from xiaomifirmwareupdater.com).
  • πŸ› οΈ Mi Flash Tool Programming.

Step-by-step:

  1. Unpack the firmware in a folder without Cyrillic characters (for example, C:\Xiaomi\ROM).
  2. Install the Mi Flash Tool and drivers.
  3. Turn off the phone and press Power + Volume Down to log into Fastboot.
  4. Connect the phone to the PC.
  5. In the Mi Flash Tool, click Select and select the folder with the firmware.
  6. At the bottom, select Clean All (complete cleaning).
  7. Press Flash and wait until it is completed (5-10 minutes).

πŸ’‘

After flashing, be sure to update MIUI to the latest version via Settings β†’ System Update. Outdated versions of the shell are vulnerable to re-infection.

How to protect Xiaomi from viruses in the future

Even after the virus is removed, the smartphone remains vulnerable if security measures are not taken.

  • πŸ”’ Disable the installation from unknown sources: Settings β†’ Privacy β†’ Special permits β†’ Installation of unknown applications.
  • πŸ›‘οΈ Install antivirus with real protection (not just scanner.
  • πŸ”„ Update regularly MIUI. New versions close vulnerabilities that exploit viruses.
  • πŸ“₯ Don't install it. APK from unverified sources (especially hacked games or modified firmware).
  • πŸ” Use an ad blocker (such as Blokada or AdGuard) to prevent infection through banners.

Pay particular attention to application permissions. Viruses often request access to:

  • πŸ“‡ Contacts (for spamming).
  • πŸ’³ SMS (to steal codes from bank notices).
  • πŸ“ Geolocation (for targeted advertising or espionage).
  • πŸ”§ Special features (e.g., Accessibility Service for screen capture).

Check permissions in Settings β†’ Apps β†’ Manage permissions and revoke unnecessary ones.

FAQ: Frequent questions about virus removal on Xiaomi

Can the virus be removed without data resetting?
Yes, if the virus has not infiltrated the system files. Try Safe Mode (Method 1) or Antivirus (Method 2). If the virus blocks deletion, use ADB (Method 4). In 80% of cases, the combination of Safe Mode + Malwarebytes helps.
The virus comes back after it's removed.
This is a sign of a rootkit or a virus that has modified system files, and the only solution is to completely flash through the Mi Flash Tool (Method 5) with the Clean All tick. After you have done the firmware, don't restore the data from the backup - the virus may be in the backup!
How to check if the virus remains after cleaning?
Do this: Install Malwarebytes and run a deep scan. Check network activity in Settings. β†’ SIM-maps and mobile networks β†’ Traffic (unknown apps should not consume traffic) Open Settings β†’ Battery. β†’ Use the battery and look for suspicious processes. use VirusTotal to check APK-Files (download a suspicious application to virustotal.com).
Can a virus damage the hardware of a smartphone?
No, viruses can't physically break the hardware. However, they can: Overheat the processor (constant load 100%), quickly drain the battery (charging/discharge cycles shorten battery life), load data in the background (traffic consumption and wear of the Wi-Fi/4G module). After removing the virus, check the battery status in Settings β†’ Battery β†’ Battery status.
Which Xiaomi models are most often infected with viruses?
Viruses are not specific to specific models, but more often attack devices: With an outdated version of MIUI (below the 14th); with an unlocked bootloader (custom firmware installed); users install pirated APKs (hacked games, modified applications); Redmi Note and POCO series (due to popularity and a large number of unofficial firmware); flagships (Xiaomi 13/14, Mix series) are most protected due to hardware isolation of processes.