Advertising in the standard Xiaomi gallery is one of the most annoying features of MIUI firmware. Even after buying a smartphone, users encounter intrusive banners in the app, where only personal photos should be available. The problem affects all the brandβs devices, from the budget Redmi Note 12 to the flagship Xiaomi 14 Ultra. In this article, we will analyze all the working methods of removing ads, from simple settings to technical solutions using ADB.
It's important to understand that MIUI integrates ad units at the system level, so standard ad-cutting in settings often works incompletely. Some ways require superuser rights or a computer connection, but the result is worth it: a clean gallery without the banners "Mi Video", "GetApps" and other services. If you're willing to spend 10-15 minutes, follow the instructions below - and the ads disappear forever.
Why is there an advertisement in the Xiaomi Gallery?
The reason lies in Xiaomi's business model: the company monetizes its firmware through integrated advertising, even in Europe, where data protection regulations are stricter, banners in the gallery remain.
- π± Gallery System App (com.miui.gallery) β shows banners at the bottom of the screen when viewing a photo.
- π¬ Mi Video service - embeds advertising in miniatures of video files.
- π GetApps β Xiaomi app store that puts up banners βRecommended apps".
- π Mi Cloud β sometimes adds promo banners when synchronized.
Fun fact: there's even more advertising on devices for the Chinese market, because there's different monetization rules, and in global versions of firmware, banners are less intrusive, but they're still there, and after MIUI updates, ads can come back, so it's important not only to remove them, but also to block the sources.
Method 1: Disabling Advertising in MIUI Settings (without root)
The easiest method is to use the built-in MIUI settings. It is suitable for most users and does not require technical skills, but does not work on all firmware versions (in MIUI 14 and later, some options can be hidden).
Instructions:
- Open Settings β Password and Security β Authorization and Locking.
- Find the option βPersonalized Adsβ (or Personalized Ads in English) and turn it off.
- Return to the main settings menu and go to Settings β Additional β Special features.
- Activate the option βDelete Advertising in System Applicationsβ (if available).
- Reboot your smartphone.
If these are not available, try an alternative route:
- π Open the Settings. β About the phone and tap 7 times according to the version MIUI, activate the developer mode.
- π§ Back to Settings β Additionally. β For developers and find "Debugging by" USB" (Turn it on).
- π± Now in the settings of the gallery (Open gallery) β Three points. β Settings) may appear hidden option "Advertising" - disable it.
βοΈ Preparing for the Advertising Disconnection
Method limitations: On some devices (e.g., POCO X5 Pro or Redmi K60), these settings may be missing or reset after the update.
Method 2: Using ADB to Deeply Disable Advertising
If the system settings don't work, it's time to connect to the computer. ADB (Android Debug Bridge allows you to disable advertising modules at the system level without obtaining root rights.
What you need:
- π₯οΈ Computer with Windows/macOS/Linux.
- π USB-cable (preferably original).
- π₯ Utility. ADB Tools (download and unpack in any folder).
- π± Included debugging by USB on a smartphone (see previous section).
Step-by-step:
- Connect your smartphone to your computer and select File Transfer Mode (not Charge).
- Open the command prompt (Windows) or terminal (macOS/Linux) in the folder with ADB.
- Enter the command to check the connection: adb devices If the device is displayed β you can continue.
- Follow the commands one by one (after each press Enter): adb shell pm hide com.miui.systemAdSolution adb shell pm hide com.xiaomi.midrop adb shell pm hide com.miui.analytics adb shell settings put global hidden_api_policy 1
- Reboot your smartphone.
Important: After the MIUI update, the ads may return, in which case repeat the procedure or use the method with the blocking through hosts (see the next section).
What if the ADB canβt see the device?
Method 3: Blocking ads through hosts file (without root)
This method intercepts requests to Xiaomiβs ad servers at the network level, doesnβt require root rights, but requires a computer and a little patience, and is suitable for all models, including the POCO F5 and Redmi Note 13 Pro+.
Instructions:
- Download a modified hosts file for Xiaomi (e.g., from here).
- Connect your smartphone to your computer and copy the file to the root folder of internal memory.
- Install the Hosts Editor app from Google Play.
- Open the app, import the downloaded hosts file and apply the changes.
- Reset the device.
Alternative (via ADB):
adb shell "echo '127.0.0.1 ad.xiaomi.com' >> /system/etc/hosts"
adb shell "echo '127.0.0.1 sdkconfig.ad.xiaomi.com' >> /system/etc/hosts"
adb shell "echo '127.0.0.1 track.ad.xiaomi.com' >> /system/etc/hosts"These commands will add entries to the system hosts, redirecting advertising requests to a non-existent address.
adb pull /system/etc/hosts hosts_backup.txtMethod 4: Install an alternative gallery (simple solution)
If previous methods seem complicated, the easiest way out is to install a third-party gallery, which not only eliminates advertising, but also offers additional features: cloud backup, improved photo editor and no surveillance of your data.
The best alternatives to the standard Xiaomi gallery:
| Annex | Advantages | Deficiencies | Reference |
|---|---|---|---|
| Google Photo | Free cloud storage (15GB), automatic sorting, no advertising | Requires a Google account, free storage restriction | Download |
| Simple Gallery | Open source, no advertising, support for dark theme | Fewer functions for photo editing | Download |
| A+ Gallery | Minimalist design, gesture support, no surveillance | Paid version for some functions | Download |
| F-Stop | Advanced tags and photo organization, support for RAW | A complex interface for beginners | Download |
How to install and configure:
- Download the selected application from Google Play.
- Open it and give access to the storage.
- In the settings of the standard Xiaomi gallery, turn off auto-start (Settings β Applications β Gallery β Auto-Start).
- Install the new gallery app by default (Settings β Apps β Default β Gallery).
π‘
Third-party galleries not only remove ads, but also save battery life β the standard Xiaomi app often works in the background, consuming resources.
Method 5: Completely remove ads with Magisk (for advanced)
If you're ready to get root rights, this method is guaranteed to remove all ads in MIUI, including banners in the gallery, browser and even in the settings menu.
- π± Unlocked bootloader (instructions from Xiaomi).
- π§ Installed by Magisk (or other root manager).
- βοΈ Disabler for Xiaomi or Xiaomi ADB Fastboot Tools.
Step-by-step:
- Unlock the bootloader via Mi Unlock Tool (can take up to 7 days to wait) SMS-code).
- Install Magisk through Custom Recovery (TWRP).
- In Magisk, install the Disabler for Xiaomi or Xiaomi Debloater module.
- Restart the device and check for no ads.
Advantages of the method:
- β Removes all ads in MIUI, not just in the gallery.
- β Blocks telemetry and analytics collection.
- β Allows you to remove unnecessary system applications (e.g. Mi Video, GetApps).
π‘
Before unlocking the bootloader, make a full data backup via Mi PC Suite or TWRP. The process will reset the device to factory settings!
β οΈ Note: Getting root rights voids Xiaomi warranty and may lead to update issues OTA. Also, some banking applications (like Sberbank Online) may stop working, and only use this method if you understand the risks.
What if the advertisements returned after the update?
MIUI is known for returning previously deleted ad units after updates, and to avoid this, follow these tips:
- π Turn off automatic updates MIUI: Settings β The phone. β Updating the system β Three points. β Settings β Deactivate "Car Update"
- π₯ Install updates manually by pre-checking reviews on forums (for example, 4PDA).
- π§ Repeat the ad blocking through ADB after each update.
- π‘οΈ Use Magisk modules to permanently lock (e.g. Xiaomi Debloater).
If the advertisement appears again, check:
- Have you reset your hosts file (see Hosts Editor)?
- Have you been able to get back on the system services (com.miui.systemAdSolution)?
- Have you seen any new advertising modules (check out ADB: adb shell pm list packages | grep -i ad)?
β οΈ Note: On some devices (e.g. Xiaomi) 13T or Redmi K70) post-update MIUI 15 standard methods of blocking ads may stop working, in which case you only have to install an alternative gallery or roll back on the previous version of the firmware.