Owners of Xiaomi smartphones (including the Redmi, POCO and Mi series) often face the problem of unauthorized redirects โ when the browser or applications are spontaneously redirected to advertising sites, phishing pages or suspicious resources. This problem can arise from viruses, malicious scripts in the cache, incorrect DNS settings or even โchipsโ of MIUI firmware. Unlike computers, on mobile devices, it is more difficult to eliminate redirects due to limited access to system files.
In this article, we will discuss 5 proven ways to remove redirects to Xiaomi, from basic (clearing browser cache) to radical (reset to factory settings). Particular attention will be paid to hidden MIUI settings, which the manufacturer does not advertise, but which often cause redirects. All instructions are relevant for MIUI 12/13/14 firmware and 2019-2026 models (including Redmi Note 12 Pro+, POCO F5, Xiaomi 13T).
1. Browser check: clearing cache and data
In 70% of cases, redirects are caused by an infected browser cache or extensions installed, starting with the simplest one: a complete cleanup of Google Chrome, Mi Browser or any other browser used.
How to do this:
- ๐ฑ Open the Settings. โ Annexes โ Application management.
- ๐ Find your browser (such as Chrome or Mi Browser) and tap it.
- ๐งน Select Warehouse. โ Clear the cache and Clear the data.
- ๐ Reboot the phone.
If you use Mi Browser (built-in Xiaomi browser), additionally:
- Open the browser and go to โฎ โ Settings โ Confidentiality.
- Turn off the Personalized News option โ it often loads advertising scripts.
- In the "Security" section, turn on "Blocking pop-up windows".
โ ๏ธ Warning: Cleaning up your browser data will delete all saved passwords, bookmarks and history. Export important data in advance through Settings โ Export of bookmarks (in Chrome).
2. Removal of malicious applications
Redirects can be caused by advert viruses or Trojans masquerading as legitimate programs, and on Xiaomi, such applications often penetrate through:
- ๐ฆ APK-files downloaded from third-party sources (not Google Play).
- ๐ฎ Pirate games or โhackedโ versions of paid software.
- ๐ฑ Xiaomi pre-installed services (e.g. Mi Video, Mi Music) that load ads.
How to find and remove the virus:
- Go to Settings โ Applications โ Application Management.
- Sort the list by installation date (โฎ โ Sorting โ By installation date).
- Check for apps with suspicious names (e.g. System Update, Flash Player, Clearer Master).
- Remove unknown programs, even if they donโt have an icon.
For a thorough check, use the antivirus:
โ๏ธ Virus testing
List of known viruses causing redirects on Xiaomi
3.DNS Change: Blocking Advertising Servers
If the redirection occurs at the network level (for example, when connecting to Wi-Fi), the problem may lie in the network. DNS-By default, providers or public networks (cafes, hotels) often use the DNS, which redirect traffic to advertising pages.
How to change DNS to Xiaomi:
- Open the Settings. โ Wi-Fi.
- Slip on the current network and select "Change Network" (or "More").
- Enable "Additional options" โ "IP settings" and select "Static".
- In the DNS 1 and DNS 2 fields, enter:
| Type DNS | Address 1 | Address 2 | Features |
|---|---|---|---|
| Google DNS | 8.8.8.8 | 8.8.4.4 | Quick but does not block advertising |
| Cloudflare | 1.1.1.1 | 1.0.0.1 | Safe, supports DNS-over-HTTPS |
| AdGuard DNS | 94.140.14.14 | 94.140.15.15 | Blocks ads and trackers |
After changing the DNS, restart your phone and check if the redirect has gone away. If the problem persists, try an alternative method โ using an ad-blocked VPN (such as AdGuard VPN or 1.1.1.1 from Cloudflare).
๐ก
If some websites (such as banking sites) stop opening after changing the DNS, return the standard settings or use a VPN without blocking ads.
4.Reset network settings and clean hosts
On Xiaomi (especially on firmware) MIUI 12โ14) the redirect may be associated with a corrupted hosts file, a system file that manages the matching of domain names and IP-Viruses often edit it by adding entries to redirect to advertising sites.
How to reset your network settings and clear hosts:
- ๐ง Go to Settings. โ SIM-maps and mobile networks โ Resetting network settings.
- ๐ Confirm the reset (this will remove all stored Wi-Fi and Bluetooth devices).
- ๐ฑ To clean the hosts file, root rights will be required or ADB. If you have them, use the command:
adb shell su -c "echo '' > /system/etc/hosts"Without root, you can try an alternative method:
- Install a file manager with access to system folders (e.g. FX File Explorer or Solid Explorer).
- Go to /system/etc/ and find the hosts file.
- Open it with a text editor and delete all lines except 127.0.0.1 localhost.
โ ๏ธ Note: Editing system files without root may cause a crash MIUI. If the phone stops loading after the changes, reset via Recovery Mode (press Power). + Volume Up when switched on).
5. Disabling advertising in MIUI (hidden settings)
Xiaomi is known for embedding ads into system applications (e.g., Security, Themes, Mi Video), sometimes these ad modules cause not only banners, but also redirects in the browser, and you can turn them off through hidden MIUI settings.
Instructions for MIUI 13/14:
- Open the Security app (shield icon).
- Move to the โ Settings โ Advertising.
- Turn off all switches: ๐ซ "Personalized recommendations" ๐ซ "Promotional notices" ๐ซ "Showing Advertising in System Applications"
Security
Clean up
To completely disable advertising in MIUI can also be used ADB-Teams (computer required):
adb shell pm disable-user --user 0 com.miui.systemAdSolution
adb shell pm disable-user --user 0 com.xiaomi.midropThese commands disable the system services responsible for displaying ads. After you do, restart your phone.
๐ก
Disabling advertising in MIUI not only removes redirects, but also speeds up the phone by freeing up RAM.
6.Extreme measure: reset to factory settings
If none of these things work, you'll have to completely reset your phone, and that will delete all the data, including viruses, but you'll also have to erase your photos, contacts and apps.
- ๐ค Make a backup copy through Settings โ The phone. โ Backup.
- ๐ Write down usernames/passwords from accounts (they will be saved if the phone is linked to Mi Account).
- ๐ฑ Make sure your phone is at least 50 times charged%.
How to perform the reset:
- Go to Settings โ About the phone โ Reset settings.
- Select "Erase all data."
- Confirm the action and wait for the reboot (it will take 5-10 minutes).
After discharge:
- ๐ก๏ธ Do not restore data from a backup if it was created after the redirects appeared (the virus could have been saved in the backup).
- ๐ Install antivirus and check your phone before recovering files.
โ ๏ธ Note: Some Xiaomi models (such as the Redmi Note 10 Pro) may require re-assignment to the Mi Account after reset.If you forget your password, use the official recovery site.