How to permanently remove ads in the gallery on Xiaomi: proven methods

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.

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.

πŸ“Š What kind of Xiaomi model do you have?
Xiaomi 13/14 series
Redmi Note 12/13
POCO X5/F5
Redmi K60/K70
Another model

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

Done: 0 / 4

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?

  1. Install the selected application from Google Play.
  2. Open Settings β†’ Applications β†’ Application Management.
  3. Find the Gallery, click on Default. β†’ Clear the default settings.
  4. 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?
Use the "Backup" feature in the Google Photos app. Select "Original Quality" (unlimited storage for photos up to 16 MP and video up to) 1080p) or "High quality" (compression, but unlimited space). To transfer: open Google Photos β†’ Profile β†’ Settings β†’ Backup and synchronization β†’ Turn on the option.

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:

  1. Download and install ADB Tools on PC.
  2. Turn on the developer mode on the phone (go to Settings β†’ About phone and 7 times click on the MIUI version).
  3. Return to Settings β†’ Additional β†’ For developers and activate Debugging over USB.
  4. Connect your phone to your PC and type in the command line: adb devices (your device should appear).
  5. 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
  6. Reboot the phone.

πŸ“Š What's shutting down these teams?

Team team.Disengaged componentThe effect
com.miui.systemAdSolutionSystem module of advertisingRemove banners in the gallery, settings, file manager
com.android.browserStandard Mi Browser browserStops displaying ads when opening links from the gallery
com.miui.msa.globalXiaomi Analytics ServiceBlocks 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.gallery

This 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:

  1. Install the module. Disable_Miui_Bloatware Magisk Manager.
  2. Reboot the phone.
  3. 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
  4. 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

  1. Go to Settings β†’ Connections β†’ Private DNS.
  2. Select the host name of the private provider DNS and type: dns.adguard.com or 1.1.1.3 (Cloudflare with malicious sites blocked).
  3. 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?

  1. Open the gallery and wait for the banner to appear.
  2. If instead of the picture you see an empty block or download error β€” DNS work.
  3. 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:

MethodDifficultyEfficiencyRisks.
Repeated ADBLow.Medium (may not work on new versions) MIUI)Minimum
Module MIUI OptimizerHigh (need root)Tall.Possible bugs in the system
Pushback through TWRPMediumTall.Data loss with incorrect backup
Installation of an alternative galleryLow.Complete (but does not eliminate ads in the system gallery)No.
❓ Why did the advertisement reappear after the reset?
Factory resets return all system applications to their original state, including ad modules. To avoid this, before reset: Backup the list of installed applications (App Backup & Restore). ADB-After resetting, immediately repeat the steps to disable the ad (see Method 1 or Method 3).
❓ Can you remove advertising without a computer?
Yes, but the choice of methods is limited: πŸ“± Use an alternative gallery (Method 2). πŸ“± Turn off personalized advertising in settings (Method 1). πŸ“± Install. VPN Ad-blocking (Method 5) To remove ads completely without a PC, root rights and the Termux app will be required (to execute) ADB-Teams on the phone).
❓ Will the gallery work without the Internet if you turn off advertising?
All methods (except for blocking through the DNS/VPN) In fact, shutting down advertising services can speed up the loading of photos, because the system does not have to load banners, except that if you use Google Photos in backup mode, the initial sync will require the Internet to be done.
❓ Why some photos don’t show ads?
This is due to the logic of displaying banners in MIUI: πŸ“Έ Advertising is more likely to appear when scrolling albums than when viewing individual photos. πŸ“Έ Banners are not shown in hidden folders and password-protected albums. πŸ“Έ In the photo with a resolution above 12 MP, advertising may not load (limitation of Xiaomi servers). πŸ“Έ In full screen view mode (double tap on the photo) banners are hidden.
❓ Can I return a standard gallery after installing an alternative gallery?
Yes for this: Go to Settings β†’ Annexes β†’ Application management β†’ Gallery. Click Disable (if the gallery has been deactivated). If the application is removed, download APK Standard gallery for your model from the site MIUI Apk Archive and set manually. Reset default settings: Settings β†’ Annexes β†’ gallery β†’ By default. β†’ Clean up. ⚠️ On some firmware (MIUI Global for Europe: The standard gallery cannot be removed completely – it is simply hidden from the menu.