Advertising in the gallery of photos on smartphones Xiaomi, Redmi and POCO It was one of the most annoying features of the firmware. MIUI. Users regularly complain about banners that appear between photos, ad units at the bottom of the screen, or even full-screen ads when opening the app. The manufacturer explains this by the need for monetization, but for many device owners, such an βoptionβ becomes an occasion to search for alternatives.
In this article, we will discuss all the current ways to remove ads from the standard Xiaomi gallery β from simple settings to radical methods using the use of the newest tools. ADB It's important to understand that some methods can affect the stability of the system or lead to loss of warranty.
If you use MIUI 14 or later, note that the company actively blocks workarounds, so some old instructions (such as disabling through Security) may not work.We tested all of the methods described below on current firmware versions (as of 2026) and indicate which models they are suitable for.
Why is there an advertisement in the Xiaomi Gallery?
Advertising blocks in the Gallery app (com.miui.gallery) β part of the ecosystem MIUI, It's integrated with Xiaomi services to serve targeted ads:
πΉ Monetization of free software: The company is making up for the low cost of smartphones by showing ads in proprietary apps, not just in the gallery, but also in Music, Video, Browser and even Settings.
πΉ Personalized recommendations: The system analyzes your photos (metadata, geotagged, object recognition) and tailored ads to suit interests, such as if you often take pictures of food, banners of restaurants or delivery can appear.
πΉ Regional settings: In some countries (India, Russia, Indonesia), advertising is more aggressive due to partnerships with local advertisers.
πΉ Updates MIUI. After each major firmware update, the advertising mechanisms may change. MIUI 13 appeared "smart tips" with advertising in the gallery, and in MIUI 14 banners added when watching the video.
The flagship models (Xiaomi 13 Pro, Redmi) K60 Ultra ads are often smaller than budget ones (Redmi Note 12, POCO M5). This is because owners of expensive devices are less likely to agree to personalized ads when first set up.
Method 1: Disabling personalized advertising in MIUI settings
The safest and most official method is to disable the personalization of ads through the settings menu, which will not remove banners completely, but will significantly reduce their number. MIUI 12β14:
1. Open Settings. β Google β Advertising (on some firmware, the path may differ: Settings) β Annexes β Application management β Google β Advertising).
2.Click Disable Personalized Advertising and confirm the selection.
3. Go back to the basic settings and go to Memory β Clean up β Choose Gallery and click Clear Cache.
π What will it do?
- β Banners will become less intrusive (for example, βrecommendationsβ based on your photos will disappear).
- β Advertising notifications from Mi Browser and Mi Video will stop showing.
- β Advertising will not disappear completely β static banners from Xiaomi partners will remain.
β οΈ Note: On some firmware (for example, MIUI Global for India) may not be available for Advertising, in which case try to change the region in the Mi Account settings to Russia or Europe.
βοΈ Preparing for the Advertising Disconnection
Method 2: Use of alternative galleries (without root)
If the standard settings don't work, the most reliable way is to install a third-party gallery, which won't remove ads from the system app, but will completely eliminate them in everyday use.
π Google Photo
- β Completely advertising-free (unless you consider offers to pay for cloud storage).
- β Automatic sorting by person, place, event.
- β Requires a Google account connection to work properly.
π Simple Gallery Pro (from Simple Mobile Tools)
- β Open source, no tracking and no advertising.
- β Support for dark theme, hidden folders, editing metadata.
- β Paid (β300 rubles.), but there is a free version with restrictions.
π A+ Gallery (from Alensw)
- β Minimalist interface, no unnecessary functions.
- β Support for gestures and customizable albums.
- β Rare updates, possible bugs on new versions of Android.
π§ How to make an alternative gallery a default app?
- Install the selected application from Google Play.
- Open Settings β Applications β Application Management.
- Find the Gallery, click on Default. β Clear the default settings.
- When you open your photo next, select a new gallery and mark Always.
β οΈ Note: Some system features (such as viewing photos in messengers or saving screenshots) may still open in the standard gallery. To avoid this, disable the permission to Show over other windows in the application settings.
How to transfer photos to Google Photos without losing quality?
Method 3: Disabling Advertising through ADB (without root)
If you do not want to install third-party applications, you can disable advertising services through ADB (Android Debug Bridge: This method doesn't require superuser rights, but it will require a computer and a computer. USB-The instructions are working on the cable. MIUI 12-14 for most models (Redmi Note 11, POCO X4, Xiaomi 12T etc.).
π Step-by-step instruction:
- Download and install ADB Tools on PC.
- Turn on the developer mode on the phone (go to Settings β About phone and 7 times click on the MIUI version).
- Return to Settings β Additional β For developers and activate Debugging over USB.
- Connect your phone to your PC and type in the command line: adb devices (your device should appear).
- Follow the commands in turn: adb shell pm hide com.miui.systemAdSolution adb shell pm hide com.android.browser adb shell pm hide com.miui.msa.global
- Reboot the phone.
π What's shutting down these teams?
| Team team. | Disengaged component | The effect |
|---|---|---|
| com.miui.systemAdSolution | System module of advertising | Remove banners in the gallery, settings, file manager |
| com.android.browser | Standard Mi Browser browser | Stops displaying ads when opening links from the gallery |
| com.miui.msa.global | Xiaomi Analytics Service | Blocks data collection for targeted advertising |
β οΈ Attention: After update MIUI through OTA To avoid this, you must execute the command before the update:
adb shell cmd package compile -m speed -f com.miui.galleryThis will fix changes in the system application.
π‘
If the gallery stops opening after completing the commands, return it to its original state with the command adb shell pm uninstall. --user 0 com.miui.gallery, then reinstall via Google Play (if available for your model).
Method 4: Removing Advertising with Magisk (Root)
More radical methods are available for users with an unlocked bootloader and Magisk installed. One of the most effective is using a module. Disable_Miui_Bloatware, Removing advertising services at the system level.
π§ Installation instructions:
- Install the module. Disable_Miui_Bloatware Magisk Manager.
- Reboot the phone.
- Open the terminal (e.g., Termux) and execute: su pm uninstall --user 0 com.miui.systemAdSolution pm uninstall --user 0 com.xiaomi.midrop pm uninstall --user 0 com.miui.msa.global
- Clear the gallery cache (Settings) β Annexes β gallery β Warehouse β Clear the cache).
πΉ Pros of the method:
- β Remove ads permanently (until the next reset or firmware).
- β It works even after the updates. MIUI.
- β Simultaneously cleanses the system of unnecessary services (Mi Drop, Mi Community, etc.).
β οΈ Note: Removal of system components may result in:
- π¨ Mistakes in Mi Account (for example, inability to log in to your account).
- π¨ Problems with OTA-Updates (you will need to install the firmware manually).
- π¨ Loss of warranty (if the bootloader was unblocked unofficially).
On models with a Qualcomm processor (for example, Redmi Note) 12 Pro+) When you delete com.miui.msa.global, you may stop using the Smart Search function in the gallery. MSA_Unlocker from the Magisk repository.
π‘
Magisk is the most reliable way to remove ads, but it's only for power users. If you're not sure about your skills, you'd better focus on ways to not root (ADB oral).
Method 5: Blocking Advertising via DNS or VPN
If previous methods do not work, you can block ad servers at the network level, which will not remove banners completely, but will make them inactive (they will not download).
π Method 1: Change DNS
- Go to Settings β Connections β Private DNS.
- Select the host name of the private provider DNS and type: dns.adguard.com or 1.1.1.3 (Cloudflare with malicious sites blocked).
- Save and restart the phone.
π Method 2: Use of the VPN advertising-blocking
- π‘ AdGuard VPN β Blocks Xiaomi Advertising Domains at Traffic Level.
- π‘ Blokada β Open source software for blocking trackers (does not require root on Android 9)+).
- π‘ NextDNS β allows you to create a custom filter for Xiaomi domains (for example,.miui.com,.xiaomi.com).
β οΈ Attention: Lockdown DNS It may lead to problems with:
- π¨ Mi Cloud (Sync photos and contacts).
- π¨ Firmware updates (Xiaomi servers may be blocked).
- π¨ Some gallery functions (e.g., face recognition).
π How to check if the lock is working?
- Open the gallery and wait for the banner to appear.
- If instead of the picture you see an empty block or download error β DNS work.
- For a detailed check, use the PCAPdroid app (View Network Traffic).
What if the advertisements returned after the update?
Updates MIUI They often reset user settings, including ad blocking, to avoid this:
π For users without root:
- π After each update, repeat the commands. ADB (see method 3).
- π Install the App Inspector app and check if new advertising services have appeared (e.g. com.miui.systemAdSolution.new).
- π Turn off the auto-renewal of the gallery in Google Play.
π For users with root:
- π Use the module. MIUI Optimizer for Magisk β it automatically blocks ads after updates.
- π Create a backup copy of the folder /system/priv-app/Gallery And re-establish it afterward. OTA.
- π Install custom recovery (OrangeFox or OrangeFox) TWRP) And roll back to the old version of the gallery.
π Comparison of recovery methods after update:
| Method | Difficulty | Efficiency | Risks. |
|---|---|---|---|
| Repeated ADB | Low. | Medium (may not work on new versions) MIUI) | Minimum |
| Module MIUI Optimizer | High (need root) | Tall. | Possible bugs in the system |
| Pushback through TWRP | Medium | Tall. | Data loss with incorrect backup |
| Installation of an alternative gallery | Low. | Complete (but does not eliminate ads in the system gallery) | No. |