Automatic redirects on Xiaomi smartphones are one of the most annoying issues users face: Your browser suddenly redirects to advertising sites and apps open the wrong pages you chose. 80 percent of the time, either malware or aggressive MIUI settings are to blame. But there are less obvious reasons, from DNS errors to hidden firmware features.
This article will help you understand why redirection is happening even on new devices (including the Redmi Note 12, POCO X5 and Xiaomi 13T), and give you step-by-step instructions for cleaning the system. We will look at both software methods (without root rights) and radical solutions for running cases. Importantly, some methods require resetting, so save important data in advance.
1. Virus and malware check
The first thing to do is to check your phone for viruses: 60 percent of the time, redirects are caused by Trojans that are replacing DNS or embedding in browsers, and devices that have applications installed from unverified sources (.apk is not from Google Play) are particularly vulnerable.
The MIUI Security scanner (built into firmware) often misses threats, so use third-party antiviruses:
- π‘οΈ Malwarebytes β specializes in the detection of advertising software and Trojan-redirectors.
- π Kaspersky Mobile - deep scanning of system files (free version limited).
- π§Ή Avast Mobile Security β Checks the installed APK for suspicious authorization.
If the antivirus has found the threats but cannot remove them:
- Go to Settings β Applications β Application Management.
- Find suspicious software (often disguised as System Updates or Optimizer).
- Press Delete. β Clear the data.
β οΈ Warning: Some viruses block removal through the standard menu, in which case you will need Safe Mode (press the power button). β Hold "Switch off" β confirm the transition).
2. Reset browser and DNS settings
If no viruses are detected, the problem may lie in the browser settings or DNS-server. MIUI default DNS Xiaomi, which sometimes redirects traffic to affiliates:
- π Google Chrome: Settings β Resetting settings (deletes cookies and cache).
- π¦ Mozilla Firefox: Settings β Delete personal data.
- π± MIUI Browser: Settings β Additionally. β Drop it.
For DNS discharge:
- Go to Settings β Connections and Sharing β Private DNS.
- Select Automatically or manually enter: dns.google or 1.1.1.1 (Cloudflare).
- Reboot the phone.
| DNS-server | Address | Advantages |
|---|---|---|
| Google DNS | 8.8.8.8, 8.8.4.4 | High speed, reliability |
| Cloudflare | 1.1.1.1, 1.0.0.1 | Phishing protection, low delay |
| AdGuard DNS | 94.140.14.14, 94.140.15.15 | Blocking Advertising and Tracking |
π‘
If the redirect is still there after changing the DNS, try turning off IPv6 in the Wi-Fi settings (sometimes conflicts with IPv4).
3. Disabling advertising and system services MIUI
Xiaomi is known for integrated firmware advertising that can cause redirects, and even if you turn off personalized ads, some services continue to run in the background to block them completely:
Method 1: Through the MIUI settings
- Go to Settings β About Phone β Click 7 times on the MIUI version to activate Advanced Settings.
- Return to the main settings menu β Additional β Special features β Advertising.
- Disable all sliders associated with Personalized Ads and MIUI Guidelines.
Method 2: ADB (for experienced users)
If standard methods do not help, you can turn off advertising services through the ADB command:
adb shell pm uninstall --user 0 com.miui.systemAdSolutionAlso useful are commands to disable analytics:
adb shell pm uninstall --user 0 com.xiaomi.midrop
adb shell pm uninstall --user 0 com.miui.analyticsβ οΈ Note: Removing system applications through ADB This can cause the firmware to work unstable. Before executing commands, back up to Settings. β System system β Backup.
βοΈ Preparation for system cleanup
4. Checking installed applications for suspicious activity
Some legitimate applications (especially SEOs, launchers, or games) contain hidden SDKs to display ads that can redirect traffic.
Step 1: Permission analysis
- π Open the Settings. β Annexes β Permits.
- Check which programs have access to: Overlay on other applications (can intercept clicks); Change system settings (can change DNS); Display on top of other windows (pop-up ads).
Step 2: Monitoring traffic
Use network analysis apps to identify suspicious activity:
- π NetGuard β shows which apps are sending data in the background.
- π‘οΈ PCAPdroid β Records network traffic for in-depth analysis.
- π GlassWire β Visualizes connections to servers.
If you find an application that connects to suspicious domains (e.g. ad., tracking.), uninstall it and check if the redirect has disappeared.
How to recognize a malicious application?
5. Network reset and factory settings
If previous methods failed, the problem could be network settings or corrupted system files, in which case:
Method 1: Resetting network settings
- Go to Settings β Connections and Sharing β Reset network settings.
- Confirm the reset (save Wi-Fi, Bluetooth devices and VPNs will be removed).
- Reboot the phone.
Method 2: Hard Reset (Hard Reset)
This is an extreme measure, but it is guaranteed to remove all viruses and reset MIUI to factory settings, and once reset, the phone will return to the "out of the box" state, including deleting all data from internal memory.
- Turn off the phone.
- Press the Power button + Volume up until the Mi logo appears.
- From the Recovery menu, select Wipe Data β Wipe All Data.
- Confirm the action and wait for the completion.
β οΈ Note: On some models (POCO F4, Redmi K50) After a hard reset, you may need to re-assign your Mi Account. Make sure you remember your username and password!
π‘
Network resets help in 30% of cases where redirects are associated with damaged Wi-Fi or mobile internet configurations.
6. Check the hosts file and system configurations
In rare cases, a redirect occurs due to a modified hosts file that redirects domains to other domains. IP-This could be due to a virus or a manual edit to check:
Step 1: View the hosts file
- Install a file manager with root access (such as FX Explorer or Solid Explorer).
- Go to /system/etc/hosts
- Open the file with a text editor.
Step 2: Restore the Standard Content
If you have redirected lines in the file (e.g., 127.0.0.1 google.com), delete them by leaving only:
127.0.0.1 localhost
::1 ip6-localhostStep 3: Verification of access rights
Make sure the file has the right permissions:
- Owner: root
- Group: root
- Rights: rw-r--r-- (644)
adb shell "echo -e '127.0.0.1\tlocalhost\n::1\t\tip6-localhost' > /system/etc/hosts"But it only works on an unlocked bootloader.-->
7. Update of firmware and core
Sometimes redirects are a firmware bug that Xiaomi fixes in newer versions of MIUI. For example, MIUI 13 had a vulnerability that allowed apps to swap DNS without user permission.
Method 1: Through OTA-update
- Go to Settings β About the phone β System update.
- Click Check for updates.
- If a new version is available, download it and install it.
Method 2: Hand-held firmware through Recovery
If OTA doesnβt offer an update, but Xiaomiβs official website has a fresh firmware for your model:
- Download the.zip file with firmware (for example, for Redmi Note) 11 will ingres_global_images_...).
- Rename the file to update.zip and place it in the root of internal memory.
- Go to Recovery (as in reset) and select Install update.zip.
| Model | The last stable MIUI | Famous redirect bugs |
|---|---|---|
| Xiaomi 12 Pro | MIUI 14.0.8 | Redirection to MIUI Browser (fixed at 14.0.6) |
| POCO X4 Pro | MIUI 13.0.12 | Advertising in Wi-Fi settings (partially eliminated) |
| Redmi 10 | MIUI 12.5.8 | DNS-spoofing when connecting to public networks |