Xiaomi Redmi 5 is one of the most popular budget smartphones, but its owners often face annoying advertising in MIUI. Advertising banners appear in the settings menu, on the lock screen, in system applications and even in notification panels. The reason lies in the policy of monetization of the brand shell: Xiaomi integrates advertising into the firmware to compensate for the low price of the device.
The good news is that most ads can be removed without root rights using hidden MIUI settings. Bad β some banners (for example, Security or Themes) require radical measures. In this article, we will analyze all the working methods: from official methods to modification of system files. Importantly, on Redmi 5 with MIUI 12+, some methods may not work due to the tightening of Xiaomi policy β for such cases there are workarounds.
1. disable personalized advertising in MIUI settings
The safest and fastest way is to deactivate targeted ads through the privacy menu, which won't remove all ads, but will reduce the number of ads by a few minutes. 40-60%. The instructions are relevant to MIUI 9β14:
- Open Settings β Memory β Clean (or Settings β Applications β Managing Applications in New Versions).
- Slap the icon. βοΈ In the upper right corner and select Advertising Preferences.
- Turn off the sliders: πΉ Personalized recommendations πΉ Showing interest-based advertising
Settings β Google β Advertising
Personalized advertising
This method works at the device ID level (GAID and MIUI ID), but does not block ads in system applications like Security or Weather.
π‘
After disabling advertising preferences, restart your smartphone β this will reset the cache of advertising services and accelerate the application of changes.
2. Manual disabling of advertising in system applications
MIUI is embedding advertising modules into standard tools: Security, Themes, Weather, Music, and even Calendar, to turn them off:
| Annex | The path to settings | What to turn off |
|---|---|---|
| Security | Settings β About the program β Version (shap 5 times) | There will be a hidden menu β turn off the recommendations |
| Topics | Profile β Settings β Advertising preferences | All sliders in the Personalized Content section |
| Weather. | Settings β About the program β Version (shap 7 times) | Hidden Developer Mode β Turn off Show Ads |
| Music. | Settings β Additional β Advertising | Item Show banners on the main screen |
β οΈ Attention: B MIUI 12+ The path to hidden settings in Security may be different. If after 5 taps, according to the version, nothing happens, try it:
- Install the App Cloner.
- Cloning the Security app.
- In the cloned version, tap on version 10 times β the Debug Settings menu will open.
How to set up:
- Go to Settings. β Wi-Fi (or Mobile Network).
- Hold your finger on your network β Change the network β Additional β IP settings.
- Select Static and type DNS 1 and DNS 2 (like AdGuard).
- Save and reconnect to the network.
To check your health, open your browser and go to the DNS Leak Test. If the results show your selected DNS, the filtering works.
What if the DNS does not block ads?
4. Removal of Advertising via ADB (without root but with PC)
If previous methods did not help, you can disable advertising packages through Android Debug Bridge (ADB). This does not require superuser rights, but a computer and USB-The method works on the cable. MIUI 9β14, but newer versions may need to be re-executed after updates.
Step-by-step:
- Turn on Debugging. USB on the phone: Settings β The phone. β Version. MIUI (Tap 7 times until the message "You became a developer" appears. β Additionally. β For developers β Debugging by USB.
- Download ADB Tools on PC and unpack it into the C:\adb folder.
- Connect Redmi 5 to your PC, open the command line in the adb folder and execute: adb devices (a device with a serial number should appear).
- Enter the commands in turn: adb shell pm hide com.miui.systemAdSolution adb shell pm hide com.android.browser adb shell pm hide com.miui.weather2 adb shell settings put global captive_portal_detection_enabled 0
These teams:
- π§ Disable the system advertising module com.miui.systemAdSolution.
- π Blocking the standard browser MIUI (main source of banners).
- βοΈ Remove ads in the weather widget.
- π‘ Deactivate the portal check (elimines pop-ups when connecting to Wi-Fi).
Make sure that:
β Debugging is on. USB
β Installed drivers Xiaomi on PC
β Phone unlocked (no screen locking)
β Cable USB Supports data transfer (not just charging)
-->
β οΈ Attention: After update MIUI Some packets may be activated again. To avoid this, create a script with these commands and run it after each update. ADB β This can lead to bootloop (locked phone turn on).
5 Radical methods: root and modification of system files
If you are willing to take the risk, getting root rights and editing hosts or build.prop files will remove 100% of the ads, including hidden banners in the settings.
- π¨ Cancels the guarantee.
- π Requires unlocking the bootloader (the official method from Xiaomi takes 7-30 days).
- π οΈ It can cause unstable system operation in case of errors.
Method 1: Editing the hosts file
- Get root through Mi Unlock and install Magisk.
- Download Hosts Editor from Play Market.
- Add the following lines to /system/etc/hosts: 127.0.0.1 ad.mi.com 127.0.0.1 globalapi.ad.xiaomi.com 127.0.0.1 sdkconfig.ad.xiaomi.com 127.0.0.1 track.ad.xiaomi.com
- Save it, reboot the phone.
Method 2: Modification of build.prop
Open /system/build.prop file via Root Explorer and add at the end:
ro.miui.has_real_bl=1
ro.miui.sf.fake_touch=0
persist.sys.use_fifteen_qs=1These lines disable firmware authentication and block some of the advertising triggers.
π‘
Root methods are guaranteed to remove all advertising, but require technical skills. If you are a beginner, use methods 1-4 or consult a specialist.
6.Alternative firmware: transition to custom MIUI or AOSP
If nothing has worked, the last option is to install custom firmware. Redmi 5 (codename rosy) is available:
| Firmware | Type | Pluses | Cons |
|---|---|---|---|
| Xiaomi.EU | MIUI (modified) | No ads, weekly updates, full localization | I need to unlock the bootloader, possible bugs |
| LineageOS | AOSP (Pure Android) | No advertising, high performance, long-term support | There are no MIUI branded chips (for example, camera modes) |
| Havoc OS | AOSP (castomizable) | Maximum interface setting, no advertising | Can brake on the weak iron Redmi 5 |
How to determine:
- Unlock the bootloader through the Mi Unlock Tool.
- Install TWRP Recovery for rosy.
- Download the firmware (e.g. Xiaomi.EU) and transfer it to your phone.
- In TWRP, run Wipe β Format Data, then Install and select the firmware file.
β οΈ Attention: Installing custom firmware erases all data from internal memory. Pre-backup through Settings β Additionally. β Titanium Backup (requires root).