Xiaomi Redmi 5 smartphones are still popular due to their reliability and low price, but many users face one unpleasant feature β intrusive advertising in system applications, settings menus and even on the lock screen. Unlike the new models, where advertising can be turned off through standard settings, on Redmi 5 with MIUI 9/10 firmware, this process requires additional manipulation.
The reason for the ads is because of Xiaomiβs monetization policy: the company integrates ad units into its MIUI shell to offset the low cost of the devices. But if youβre willing to spend 10 to 15 minutes, you can get rid of it forever β at least until the next setup reset. In this article, weβll look at 7 proven ways, including methods without superuser rights (root) and using ADB.
It's important to understand that some methods may require you to unbundle your Mi Account or reset to factory settings, and if you're not ready for radical measures, start with the simplest of the first three sections.
1. disable personalized advertising in your Xiaomi account
The safest and most reversible way is to deactivate targeted ads through your Mi Account settings. This wonβt delete all banners, but will significantly reduce their number, especially in Mi Video, Mi Music and Themes apps.
Instructions:
- Open the Settings. β Mi Account.
- Slip on the profile avatar at the top of the screen.
- Select the Mi Account Settings β Advertising.
- Turn off the slider Personalized recommendations.
- Confirm the action by clicking Disconnect in the pop-up window.
β οΈ Note: This method only works for ads linked to your account. System banners (e.g., in Security or Settings) will remain.
Once you disable personalization, the ads will become less intrusive, but they won't disappear completely. To remove them, move on to the next section.
2. reset of the advertising ID (Advertising ID)
Each Xiaomi device is assigned a unique Advertising ID, which is used to display targeted ads, and resets it doesnβt remove banners completely, but resets your preferences, making ads less relevant (and generally less visible).
How to Reset Advertising ID:
- Go to Settings β All settings β Google β Advertising.
- Click Reset Advertising ID.
- Confirm the action in the dialog window.
- Activate the slider Turn off personalized advertising (if any).
This is especially effective if you have recently dropped your phone to factory settings or reflashed it, in which case the system has not yet collected data about your actions, and resetting the ID will make the ads almost invisible.
π‘
After resetting Advertising ID, reboot your phone β this will speed up the application of changes and clear the cache of advertising services.
If the ads still appear, check to see if your Redmi 5 has apps like Mi Browser or Cleaner installed, which often display banners regardless of system settings, and can be either removed (if they are not system-based) or disabled through Settings β Apps.
3. disabling advertising through MIUI settings (hidden settings)
The MIUI 9-11 firmware for Redmi 5 has hidden options to disable some of the system ads, which are not documented by Xiaomi, but work on most devices.
Step-by-step:
- Open the Security app (shield icon).
- Go to the Optimization (or Acceleration) section.
- Slap the icon. βοΈ (Settings) in upper right corner.
- Find the Advertising or Recommendations item and turn it off.
- Return to the main Security menu and check if the banners at the bottom of the screen have disappeared.
We also recommend checking the following sections:
- π± Settings β Lock screen β Additionally, disable Recommended Content.
- π΅ Settings β Sound and vibration β Music Player β Deactivate Show recommendations.
- π Settings β Home Screen β Turn off Show Mi apps.
β οΈ Note: Some firmware may not have these items or may be called something else (e.g. Mi Video recommendations instead of Advertising). If you don't find the right option, skip the step and move on to the next method.
Disable recommendations in βSecurity"|Remove ads on the lock screen|Deactivate banners in the music player|Check the settings of the home screen|Reboot your phone after the changes-->
4. Blocking Advertising through ADB (without root)
If previous methods didnβt work, you can use the Android debugging bridge (ADB), which does not require superuser rights, but requires connecting the phone to a computer.
What you need:
- π₯οΈ Computer with Windows/macOS/Linux.
- π USB-cable (preferably original).
- π¦ Installed drivers Xiaomi and ADB (download from Android).
- βοΈ Included debugging by USB phone-on.
Instructions:
- Activate Developer Mode: Go to Settings β About Phone. Tap 7 times on MIUI Version. Go back to Settings β Additional β Developer. Turn on USB Debugging.
Redmi 5
File transfer
CMD
ADB
adb devices
adb shell pm disable-user --user 0 com.miui.systemAdSolution
adb shell pm disable-user --user 0 com.android.browser
adb shell pm disable-user --user 0 com.miui.analyticsReboot the phone.
After these commands are executed, the system applications responsible for displaying ads will be disabled, however, this may lead to unstable operation of some MIUI functions (for example, design themes or battery optimizer).
What if the ADB canβt see the device?
5. Removing Advertising through Hosts File Editing
Another effective way is to block Xiaomi ad servers at the system level, by editing the hosts file that redirects domain names, which requires superuser rights (root) or access via ADB with the bootloader unlocked.
List of domains to block:
| domain | Appointment | The blocking effect |
|---|---|---|
| tracker.ai.xiaomi.com | Analytics gathering | Reduces targeted advertising |
| sdkconfig.ad.xiaomi.com | Advertising configuration | Turns off banners in MIUI |
| api.ad.xiaomi.com | Advertising display | Remove most system ads |
| data.mistat.xiaomi.com | Usage statistics | Reduces personalized recommendations |
How to edit hosts:
- Download any file manager with root support (such as Root Explorer or FX File Explorer).
- Go to /system/etc/hosts.
- Open the file in the text editor and add at the end of the line: 127.0.0.1 tracker.ai.xiaomi.com 127.0.0.1 sdkconfig.ad.xiaomi.com 127.0.0.1 api.ad.xiaomi.com 127.0.0.1 data.mistat.xiaomi.com
- Save the changes and restart the phone.
β οΈ Warning: Incorrect editing of the hosts file can lead to loss of Internet access.Before making changes, back it up!
If you don't have root, you can use apps like Blokada or AdGuard that block ads at the VPN level, but they won't remove MIUI system banners, just ads in the browser and third-party apps.
6. Flashing on custom firmware (radical method)
If none of these methods worked, the last resort is to install custom firmware without advertising, a method that is suitable for advanced users because it requires unlocking the bootloader and could potentially lead to a loss of warranty.
Popular firmware for Redmi 5:
- π± LineageOS β pure Android without advertising and unnecessary applications.
- π Pixel Experience β firmware with Google Pixel interface.
- π‘οΈ MIUI by Xiaomi.eu - modified version MIUI Advertising-free and Chinese-based.
Instructions:
- Unlock the bootloader through the official Xiaomi tool (can take up to 72 hours).
- Install Custom Recovery (TWRP)
- Download the firmware (e.g. MIUI by Xiaomi.eu) and transfer it to your phone.
- Download to TWRP and run Wipe β Format Data (full reset!).
- Install the firmware through Install.
β οΈ Warning: Firmware erases all data from your phone, including photos and contacts. Pre-backup through Mi Cloud or TWRP. Also note that informal firmware may contain bugs (for example, broken firmware). NFC or camera problems).
π‘
Custom firmware removes ads completely, but requires unlocking the bootloader and resetting data, a method only suitable for advanced users who are prepared for potential risks.
7. Alternative methods: launchers and blockers
If you don't want to mess with the system settings, you can just replace standard apps with ads-free ones, which won't take away the system banners, but will make them less visible.
Recommended replacements:
- π Install Nova Launcher or Lawnchair β they will replace the standard MIUI Launcher with advertising widgets.
- π Browser: Use Firefox or Bromite with uBlock Origin ad blocker.
- π΅ Music player: Replace Mi Music with Poweramp or VLC.
- πΊ Video player: Install MX Player or VLC instead of Mi Video.
You can also use the application-blockers:
- π‘οΈ AdGuard β blocks ads in the browser and some applications through VPN.
- π« Blokada is a lightweight blocker without root.
- π NetGuard β controls the access of applications to the network (you can manually block advertising domains).
These methods don't require a lot of knowledge, but they don't give you 100% of the result, like the banners in Settings or on the lock screen, but you get rid of the ads in most everyday scenarios.