Advertising virus on Xiaomi: how to remove forever and disable annoying advertising

Xiaomi smartphone owners often face the problem of suddenly appearing ads โ€” banners on the menu, pop-ups in the browser or even advertising notifications in the curtain. In most cases, this is not a virus in the classical sense, but aggressive monetization of the branded shell MIUI or the consequences of installing dubious applications.

In this article, we will analyze all possible reasons for the appearance of advertising on Xiaomi โ€“ from built-in MIUI functions to real viruses, as well as give step-by-step instructions for removing it, taking into account the firmware version and device model.

Why Xiaomi Advertising: Virus or MIUI Feature?

Before you start to โ€œtreat,โ€ itโ€™s important to understand the source of the problem, and Xiaomi ads can appear for three main reasons:

  • ๐Ÿ“ฑ Systemic advertising MIUI โ€” embedded monetization (especially in regional versions for China, India, Russia) is shown in the settings menu, file manager, Mi Browser browser and even on the lock screen.
  • ๐Ÿฆ  Adware viruses โ€“ malware that penetrates the device through pirated APK, Unofficial firmware or vulnerabilities in the system, such advertising can open a browser with fraudulent sites or display banners on top of all windows.
  • ๐ŸŽฏ Mi Account settings โ€“ sometimes ads are activated after linking the device to a Xiaomi account or synchronizing data, for example, on Mi Video or Mi Music services.

How do you tell a virus from a system ad? Viral banners are usually:

  • โš ๏ธ Appears on top of all windows, even in games or instant messengers.
  • โš ๏ธ Redirected to suspicious sites (gambling, โ€œyou won an iPhone,โ€ porn ads).
  • โš ๏ธ They do not disappear after resetting advertising in MIUI.
  • โš ๏ธ Can arbitrarily install applications or change settings.

If one of these signs matches, your device is infected, and if the ads only appear in standard applications (Mi Browser, Security, Cleaner) it is built-in MIUI monetization, and it can be turned off without drastic measures.

๐Ÿ“Š Where do you get the most ads on Xiaomi?
Settings menu.
In the Mi Browser browser
In the notification curtain
In games/applications
On the lock screen

How to remove the ad virus on Xiaomi: step-by-step instructions

If you're sure that the device is malware, then you can follow this algorithm, and the methods range from the safest to the radical (reset to factory settings).

1. Verification of installed applications

Many adware viruses disguise themselves as harmless utilities (optimizers, launchers, games).

  1. Open Settings โ†’ Applications โ†’ Application Management.
  2. Sort the list by installation date (Recently installed).
  3. Check out apps with suspicious names: ๐Ÿ” Clean Master, DU Speed Booster, Battery Doctor โ€“ well-known advertising distributors. ๐Ÿ” Applications with Chinese or random letter sets (e.g. com.abc.xyz). ๐Ÿ” Games or utilities you have not installed.

Remove suspicious programs and restart your phone.

Some viruses block the removal through the standard menu.

โš ๏ธ Note: If you try to remove the application, you see an error "failed to delete" or it is restored after a reboot, the virus has received administrator rights.

2. Clearing the cache and browser data

Often, ads are caused by infected extensions or scripts in your browser, and even if you don't use Mi Browser, some viruses are replacing the settings:

โ˜‘๏ธ Cleaning the browser from advertising

Done: 0 / 4
  1. Open Settings โ†’ Applications โ†’ Application Management โ†’ Mi Browser.
  2. Click Warehouse โ†’ Clear the cache and Clear the data.
  3. Return to the main browser menu, open โ‹ฎ โ†’ Settings โ†’ Additionally. โ†’ Reset the settings.
  4. If the browser has been updated through Google Play, delete the updates (โ‹ฎ โ†’ Remove updates).

If the ads disappeared after that, the problem was in the browser. If not, move on to the next step.

3. Verification of administrator rights and special features

Some viruses gain device administrator rights, which prevents them from being removed, and they can use special features (for example, to display ads on top of other windows).

How to check:

  1. Administrator rights: Go to Settings โ†’ Passwords and Security โ†’ Device Administrator rights. In the list, find suspicious applications (e.g. Device Test, System Update with the gear icon). Uncheck the boxes and click Disable.
  2. Special features: Open Settings โ†’ Special features โ†’ Installed services. Disable all unknown services (especially those with names like Accessibility Service or Auto Click).

If you have an app on your admin list called com.android.system.update or something like that, it's 100% a virus. Uninstall it via ADB (instruction below).

Removal of the virus via ADB (for advanced users)

If the virus is not removed by standard methods, you can use Android Debug Bridge (ADB), which requires connecting the phone to your computer.

Instructions:

  1. Download and install ADB Tools on PC.
  2. On your phone, activate Settings โ†’ About Phone โ†’ MIUI version (click 7 times to turn on Developer Mode).
  3. Return to Settings โ†’ Additional โ†’ For developers and enable USB debugging.
  4. Connect your phone to your PC and type in the command line: adb devices (your device should appear).
  5. To remove the virus application, type: adb shell pm uninstall -k --user 0 name.packet (e.g. adb shell pm uninstall -k --user 0 com.virus.app).

How do you know the name of the virus packet? Use the command:

adb shell pm list packages | grep "suspicious word"

(e.g. grep "clean" or grep "system").

โš ๏ธ Note: Do not remove Xiaomi system packages (starting with com.miui. or com.xiaomi.) โ€“ this may cause your phone to fail.

5. Reset to factory settings (last resort)

If none of these things work, you have to reset completely.

  • ๐Ÿ“ฑ Backup important data (photos, contacts, messages).
  • ๐Ÿ”‹ Charge your phone at least 50%.
  • ๐Ÿ”‘ Remember the username and password from the Mi Account (required after resetting).

Instructions:

  1. Go to Settings โ†’ About the phone โ†’ Reset settings.
  2. Choose to erase all data.
  3. Confirm the action and wait for the reboot.

After reset, do not restore data from the backup, the virus can come back. Install applications only from official sources (Google Play, Mi App Store).

๐Ÿ’ก

Resetting to factory settings deletes ALL data, including viruses, but does not guarantee protection against re-infection. MIUI last-minute!

How to disable system advertising in MIUI (without viruses)

If the ads only appear in standard applications (Mi Browser, Security, Download Manager) it is not a virus, but an embedded monetization of MIUI. It can be turned off without drastic measures.

1. Disabling personalized advertising

MIUI collects your preferences to show โ€œrelevantโ€ ads to stop you from:

  1. Open Settings โ†’ Google โ†’ Advertising.
  2. Activate the option to disable personalized advertising.
  3. Return to Settings โ†’ Additional โ†’ Privacy โ†’ Advertising and disable Personalized Recommendations.

2. Disabling Advertising in Mi Browser

Mi Browser is one of the main sources of advertising, to remove banners:

  1. Open the browser, press. โ‹ฎ โ†’ Settings.
  2. Go to the Supplementary โ†’ Recommendations and turn off: ๐Ÿ”˜ ยซRecommend newsยป ๐Ÿ”˜ ยซShowing quick newsยป ๐Ÿ”˜ ยซShow recommendations on the main pageยป

Confidentiality

Collection of data on use

3. Disabling Advertising in the MIUI Menu

In the latest versions of MIUI (13/14), you can disable advertising in the settings through hidden settings:

  1. Open the Security app (Security).
  2. Move to the โš™ โ†’ Advertising.
  3. Turn off the option to show recommendations.
  4. For MIUI 12 and older, type ad in your settings search and disable all advertising options found.

If these items are not available, your version of MIUI does not support disabling ads through the menu, and changing the firmware region will help.

4. Change of the firmware region (for advanced)

The Chinese and Indian versions of MIUI have more ads than the global ones (EEA, Global).

Method 1: Through Update (without unlocking the bootloader)

  1. Download the official firmware for your model with the EEA region (Europe).
  2. Rename the file to update.zip and place it in the root of the phoneโ€™s memory.
  3. Open the Settings. โ†’ The phone. โ†’ Updating the system โ†’ โ‹ฎ โ†’ Select a firmware file.
  4. Select update.zip and wait for the installation.

Method 2: Through Fastboot (requires unlocking the bootloader)

This method is more complex and only suitable for power users, and detailed instructions can be found on the 4PDA or XDA-Developers forums.

โš ๏ธ Warning: Changes in region may result in loss of warranty and unstable performance of certain functions (e.g, NFC or 5G in some countries).

How to protect Xiaomi from re-infection

Removing the virus is half the battle, so that the ads don't come back, follow these rules:

  • ๐Ÿ›ก๏ธ Install apps only from official sources (Google Play, Mi App Store). APK from torrents and third-party sites.
  • ๐Ÿ” Check reviews and ratings before installing.Apps rated below 4.0 and few reviews often contain ads.
  • ๐Ÿ“ฑ Update regularly MIUI. New versions close vulnerabilities that use viruses.
  • ๐Ÿ”’ Use an antivirus. Xiaomi will do Malwarebytes or built-in Security Scan (but don't trust it at 100%).
  • ๐Ÿšซ Disable the installation from unknown sources: Go to Settings โ†’ Annexes โ†’ Special access โ†’ Install unknown applications. Disable permission for all browsers and file manager.

We also recommend:

  • ๐Ÿ”„ Clean the cache regularly (once a month through Settings) โ†’ Warehouse โ†’ Clean up).
  • ๐Ÿ“ต Do not connect to public Wi-Fi without VPN โ€” It is one of the channels of spread of viruses.
  • ๐Ÿ” Use an ad blocker (such as AdGuard or Blokada).

๐Ÿ’ก

If you frequently install APKs from the Internet, create an individual user on Android (Settings โ†’ System โ†’ Multiple users) and test questionable apps there.

Table: Comparison of Ad Removal Methods on Xiaomi

MethodSuitable forDifficultyEfficiencyRisks.
Removal of suspicious applicationsAdware viruses installed manuallyโญโญโญโญโญLow.
Cleaning the browserAdvertising in Mi Browser, redirectsโญโญโญโญLow.
Disabling Administrator RightsViruses with superuser rightsโญโญโญโญโญโญMedium (you can accidentally disable the system application)
ADB-teamPersistent viruses that are not removed by standard methodsโญโญโญโญโญโญโญโญHigh (risk of damaging the system)
Reset to factory settingsExtreme case if nothing helpsโญโญโญโญโญโญโญHigh (data loss)
Change of the firmware regionMIUI System AdvertisingโญโญโญโญโญโญโญโญHigh (risk of "bricking")

Frequent questions about advertising on Xiaomi

โ“ Why the Advertising Returns After the Reset?
You probably recovered the data from a backup copy that saved the virus files, and the ads can come back if: You installed the infected application again. Your version of MIUI contains embedded ads (for example, Chinese or Indian firmware), the virus persisted in the system partition (solved by firmware reflashing). Solution: after the reset, do not restore the backup, install the applications selectively and check them with antivirus.
โ“ Can I remove Xiaomi system apps that show ads?
Technically, yes, but it is highly discouraged. Uninstallation of system applications (Mi Browser, Security, Cleaner) can lead to: Unstable phone performance; loss of functionality (e.g., disabling updates); cyclic reboot; it is better to disable ads in the settings of these applications or hide them with a launcher (e.g., Nova Launcher).
โ“ Does antivirus software help from advertising on Xiaomi?
Standard antiviruses (Avast, Dr.Web) Detect adware viruses, but often miss the built-in MIUI ads. More effective: Malwarebytes finds and removes adware. AdGuard blocks banner ads at the DNS level. Built-in Security Scan in MIUI (but it is not always updated). However, no antivirus can remove the system MIUI ads - you need to turn it off manually.
โ“ Why Advertising Appears Even in Games and Messengers?
If the ad is displayed over all windows (including games and chat rooms), this is a sign: Virus with rights SYSTEM_ALERT_WINDOW (I'll show you on top of other apps. A Trojan that uses the Accessibility Service. Solution: Check Settings. โ†’ Special features and disable suspicious services, remove applications that requested permission to display on top of other windows, if it doesn't work, reset to factory settings.
โ“ How to check if the virus remains after removal?
To make sure the device is clean: Check Settings โ†’ Battery โ†’ Battery Use. If there are unknown high-consumption applications, the virus is not removed. Open Settings โ†’ Traffic โ†’ Traffic โ†’ Traffic Use. Suspicious applications can transmit data in the background. Install Malwarebytes and run a deep scan. Watch the phone for 2-3 days. If there is no ad, the problem is solved. If in doubt, reset to factory settings and do not restore data from the backup.