Xiaomi Redmi 4X (codenamed santoni) is still a popular budget smartphone, but many users face an annoying problem: the device spontaneously redirects from one site to another, opens advertising pages or even blocks access to certain resources. 80% of the time, it is not the sites themselves that are to blame, but the built-in MIUI services, third-party applications or malware that penetrated through vulnerabilities of old firmware.
In this article, weβll look at all the possible causes of a Redmi 4X redirect, from harmless browser settings to hidden system services that Xiaomi has integrated into MIUI to βimprove the user experience.β Youβll learn how to turn off redirects through the phoneβs menu, which apps to remove first, and what to do if the problem returns after a reset.
Why Redmi 4X is redirecting to other sites: 4 main reasons
Redirects on a smartphone are rarely accidental, most often the result of one of the four perpetrators:
- π Built-in services MIUI: Xiaomi is actively using analytics and personalized advertising, and services like Msa (Mobile Services Analytics) and MiuiDaemon can modify network traffic by replacing it with a new model. DNS-request.
- π¦ Adware and malware: Outdated version of Android (7.1 Nougat on Redmi) 4X) vulnerable to exploits, especially if you have installed APK Viruses like HiddenAds or AgentSmith masquerading as system processes.
- π Switched network settings: If someone accessed your Wi-Fi or mobile hotspot, they could change the settings. DNS-servers to malicious (for example, 185.222.20.253 or 45.11.12.13).
- π± Browsers and applications with redirect scripts: Even legitimate programs (e.g., legitimate programs, UC browser APUS Launcher) may contain code for redirecting to affiliate sites.
Fun fact: Redmi 4X with MIUI 9/10 firmware is 3 times more likely to have a problem than newer models, which is because Xiaomi stopped releasing security updates for the santoni after 2019, leaving users without protection from modern threats.
Method 1: Disabling analytics and personalized advertising in MIUI
The first thing to do is to block system services that collect data and can affect network traffic. On Redmi 4X, this is done through the hidden Msa menu:
- Open the Settings app.
- Go to About Phone β click 7 times on the MIUI version to activate the developer mode.
- Return to the main settings menu and select Additional β For developers.
- Activate the USB Debugging Switch (this is temporary, to access hidden settings).
- Now enter the msa request in the settings search box and select Msa Settings.
- Turn off all the switches on this menu, especially: π Auto update (Auto-Update) π Data collection (Data collection) π― Personalized Ads (Personalized Advertising)
After this, restart the phone. If the redirect was linked to Msa, it should disappear. However, this method only works for "clean" firmware without modification.
π‘
On Redmi 4X with custom firmware (e.g. LineageOS), the Msa menu may not be available, in which case use the ADB-disabled method (described below).
Method 2: Manually clean DNS and reset network settings
If the problem is DNS swapping, it can be solved without any complicated manipulation. The Redmi 4X has two options:
Option A: Reset DNS via Wi-Fi settings
- Open the Settings. β Wi-Fi.
- Click on the current network and hold its name for 2 seconds, then select Change the network.
- Scroll down and find the DNS field. By default, it may be something like 114.114.114 (Chinese DNS from Xiaomi).
- Replace it with 8.8.8.8 (Google) or 1.1.1.1 (Cloudflare).
- Save the changes and reconnect to the network.
Option B: Complete reset of network settings
If the DNS substitution is fixed at the system level, only a hard reset will help:
- Go to Settings β System and device β Additional β Resetting.
- Select Network Reset (not to be confused with a full reset!).
- Confirm the action and wait for the reboot.
After resetting, all stored Wi-Fi networks and passwords will be deleted, but malicious redirects associated with the network will disappear.
What if the problem has returned after the DNS reset?
Method 3: Remove malicious applications (including hidden ones)
On Redmi 4X, some system applications cannot be removed in the standard way, but they can be disabled or uninstalled via ADB.
| Title of the annex | Package name (package name) | What's he doing? | Can I remove it? |
|---|---|---|---|
| MiuiDaemon | com.miui.daemon | Background service for analytics and updates | Yes (via ADB) |
| Msa | com.miui.msa.global | Data collection and personalized advertising | Yes (via ADB) |
| Browser | com.android.browser | Standard browser with redirect scripts | Yes (can be turned off) |
| Clean Master | com.cleanmaster.mguard | Optimizer with advertising modules | Yes (fully) |
| Security | com.miui.securitycenter | Security Center with Integrated Advertising | No (only shutdown) |
To remove system applications, follow the following steps:
- Install ADB Tools on your computer and connect Redmi 4X over USB (donβt forget to enable USB Debugging in the developer settings).
- Open the command line and type: Adb devices Make sure the device is defined.
- To delete, for example, com.miui.msa.global, type: adb shell pm uninstall --user 0 com.miui.msa.global
- Reboot the phone.
β Debugging is on. USB
β Drivers installed ADB PC-only
β Backup of important data is made
β Battery charge > 50%
-->
Warning: Removal of system applications can lead to unstable MIUI operation. If errors occur after uninstallation, restore the application by command:
adb shell cmd package install-existing com.miui.msa.globalMethod 4: Blocking redirects via hosts file
The hosts file in Android is responsible for matching domain names with IP-If you add entries to it to block ad domains, it can stop the redirect. 4X You can edit hosts only with root rights or through ADB.
Here's how to do it:
- Download the ready-made locking hosts file (for example, from AdAway) and save it to your phone.
- Connect to the device via ADB and execute: adb shell su mount -o rw,remount /system cp /sdcard/hosts /system/etc/hosts chmod 644 /system/etc/hosts reboot
Step-by-step:
- Download the firmware for santoni from the official Xiaomi website (Fastboot section).
- Unpack the archive into a folder without spaces in the title (e.g., C:\MIUI\).
- Turn off the phone and press Volume Down + Power to log into the Fastboot.
- Connect the device to your PC and start the Mi Flash Tool.
- Select the firmware folder and click Refresh β Flash.
- Wait for the process to finish (5-10 minutes) and the phone will reboot automatically.
β οΈ Note: Fastboot flashing erases all data, including photos and contacts. If you have an unlocked bootloader but no backup, it will not be possible to restore information.
If you're not sure about your skills, you should go to a service center. The wrong firmware can turn the Redmi 4X into a brick.
What to do if the redirect is returned?
If after all the manipulations the problem appears again, this is a sign:
- The malware activity at the kernel level (like Triada or Ztorg), in which case only complete flashing with data and cache formatting will help.
- Switching IMEI or serial number (occurs on hands-on phones). Check the IMEI with *#06# and compare it to the sticker under the battery.
- Vulnerabilities in the modem (such as the DirtyCow exploit for Qualcomm).Update the modem firmware via QFil.
For diagnosis, use:
- π‘οΈ NetGuard β Monitoring application network activity.
- π Fing β To check devices on your network.
- π‘ PingTools Network Utilities for analysis DNS and routing.
If you suspect that your phone is hacked, do not enter passwords from banking applications and do not connect to important accounts until the device is completely cleaned.