How to permanently remove advertising in the Xiaomi Gallery: disable banners and recommendations

Ads in the standard Xiaomi Gallery have become one of the most annoying features of MIUI firmware in recent years, with banners offering to install games, ads for Xiaomi Cloud services, or even contextual ads in the Recommended album appearing where you least expect to see them โ€” among personal photos, and the problem affects almost all models, from the budget Redmi 10A to flagships like Xiaomi 13 Pro.

In this article, we will discuss 7 proven ways to remove ads in the Xiaomi Gallery, from simple settings in the app menu to radical methods with disabling system services. All instructions are relevant for MIUI 12, 13 and 14 (including global and Chinese versions of firmware).

The reason for the ad is Xiaomi's business model, where it monetizes its MIUI firmware through integrated advertising in system applications. The gallery is no exception. Here are the key sources of banner ads:

  • ๐Ÿ“Œ Recommendations MIUI: The algorithm analyzes your photos and offers โ€œusefulโ€ services (e.g., photo printing or cloud storage).
  • ๐ŸŽฎ Banners from partners: games, apps from the Mi App Store or promotions from Xiaomi Mall.
  • ๐Ÿ”„ Contextual Advertising: Appears in the Recommended Album based on your activity in other Xiaomi apps.
  • ๐Ÿ“ฑ System Notifications: Sometimes Masquerading as โ€œGallery Use Tips".

Interesting fact: European firmware (EEA) has a much lower advertising rate due to local data protection laws, while global and Chinese versions of MIUI have banners that can take up to 30% of the screen in some sections of the Gallery, and Xiaomi does not provide a direct option to โ€œdisable all adsโ€ โ€“ it must be manually removed.

๐Ÿ“Š What Advertising in Xiaomi Gallery Irritates You the Most?
Banners with games
Recommendations for โ€œPrinting photosโ€
Contextual announcements in albums
Pop-up notifications
other

Method 1: Disabling personalized advertising in MIUI settings

The safest and most official method is to disable the personalization of ads in the system settings, which will not remove banners completely, but will significantly reduce their number.

  1. Open Settings โ†’ Google โ†’ Advertising (if there is no item, skip the step).
  2. Click Disable Ad Personalization and confirm the selection.
  3. Go back to the main settings and go to Settings โ†’ Applications โ†’ Application Management.
  4. Find the Gallery, open its settings and select Permissions.
  5. Disable access to Location and Warehouse (if this does not interfere with the basic functionality).

After this action, MIUI will stop picking ads based on your data, but banners from partners (such as games) may remain, and additional steps will be required to remove them.

๐Ÿ’ก

If your firmware does not have an Ads option in Googleโ€™s settings, try updating Google Play services manually through the Play Market.

Sometimes ads appear because of app cache crashes or incorrect user settings. Resetting Gallery to factory settings helps in 60% of cases:

  1. Go to Settings โ†’ Applications โ†’ Application Management โ†’ Gallery.
  2. Press Warehouse and Cache โ†’ Clear the cache.
  3. Go back and select Reset (or Delete Data if the first item is not available).
  4. Confirm the action and restart the phone.

Important: Reset won't delete your photos, but it can reset album sorting and display settings. If after reboot the ad returns, move on to the next way.

What if the gallery stopped opening after the reset?
If the Gallery makes an error after resetting the settings, try: 1. Remove application updates through Settings โ†’ Apps โ†’ Gallery โ†’ Remove updates. 2. Reboot the phone in Safe Mode (press the power button โ†’ Safe Mode) and check the Gallery's operation. 3. If the problem persists, update the Gallery through the Mi App Store or install the latest version of the APK manually.

Method 3: Disabling Advertising Services via ADB (without root)

For advanced users, there is a method of disabling MIUI advertising services through ADB (Android Debug Bridge), which does not require superuser rights, but requires a computer and 10 minutes of time.

  1. Turn on Developer Mode on your phone: Settings โ†’ About Phone โ†’ MIUI version (click 7 times).
  2. Return to Settings โ†’ Additional โ†’ For developers and activate Debugging over USB.
  3. Connect your phone to your PC, download ADB Tools and unpack the archive.
  4. Open the command line in the ADB folder and enter it one by one:
adb devices


adb shell pm disable-user --user 0 com.miui.systemAdSolution




adb shell pm disable-user --user 0 com.xiaomi.midrop




adb shell pm disable-user --user 0 com.miui.analytics

These commands disable the main MIUI ad modules. Once you reboot your phone, the Gallery ad should disappear, but some features like Mi Drop (Wi-Fi file transfer) may disappear.

Install Xiaomi drivers on PC|Download ADB Tools from the official website|Enable debugging on USB phone-on|Connect your phone to the original cable|Check device detection by adb devices-->

If nothing works, you can simply replace the standard Gallery with a third-party app.

  • โœ… No advertising (most alternatives).
  • โœ… More features (editing, cloud albums, AI-sorting).
  • โœ… Does not require root or complex manipulation.

The best free alternatives are:

AnnexPlusesConsReference
Google PhotoCloud storage, AI-Search, automatic backupRestriction on free storage (15 GB)Play Market
Simple GalleryAdvertising-free, open source, dark theme supportNo cloud synchronizationPlay Market
A+ GalleryMinimalist design, RAW support, hidden foldersAdvertising in the free version (cleaned by purchasing Pro)Play Market
QuickPicFast work, GIF support, photo editorNot updated since 2018APKPure

To make the alternative Gallery the default app:

  1. Install the selected application from the list above.
  2. Open any image through the file manager.
  3. When you request, select a new Gallery and tick Always.

๐Ÿ’ก

Even after installing the alternative Gallery, the Xiaomi Gallery system app will remain in the phone. To avoid consuming resources, turn it off from the battery settings.

Method 5: Blocking Advertising via DNS (for Advanced Ads)

If the ad in the Gallery is downloaded over the Internet (for example, banners from Xiaomi Ads), it can be blocked at the DNS level. This method works for all MIUI applications, but requires network configuration.

Instructions:

  1. Go to Settings โ†’ Wi-Fi (or Mobile Network if you use mobile Internet).
  2. Click on the current network โ†’ Change the network โ†’ Additional โ†’ IP settings.
  3. Select Static and enter 94.140.14.14 (AdGuard DNS) in the DNS 1 field and 94.140.15.15 in DNS 2.
  4. Save the settings and restart the phone.

Alternative DNS for blocking ads:

  • 1.1.1.3 (Cloudflare Family)
  • 176.103.130.130 (AdGuard DNS)
  • 84.200.69.80 (DNS.WATCH)

โš ๏ธ Attention: Change DNS This can cause problems with access to some Xiaomi services (such as Mi Cloud or Mi Account). DNS automatic.

The radical method is to remove the system gallery completely, and this is only possible on phones with an unlocked bootloader and TWRP installed. Attention: after the Gallery is removed, some MIUI functions (such as editing screenshots) may not work properly.

Step-by-step:

  1. Unlock the bootloader through the official Xiaomi tool.
  2. Install custom recovery TWRP for your model.
  3. Download the system application uninstaller (e.g. Universal Debloater).
  4. Download to TWRP, uninstall and select the following packages to remove: com.miui.gallery (main app) com.miui.galleryeditor (photo editor)

Sponsors 4

โš ๏ธ Attention: Removing system applications may cause unstable firmware. Before the procedure, back up through TWRP Make sure you have access to the original firmware for recovery.

Method 7: Update MIUI to the latest version (sometimes helps)

In some cases, ads in the Gallery appear because of bugs in a particular version of MIUI. Xiaomi periodically releases patches that reduce the number of banners (especially after users complain).

  1. Go to Settings โ†’ About the phone โ†’ System update.
  2. Click Check Updates and wait for the search.
  3. If a new version is available, download and install it.
  4. After the update, perform Method 2 (reset Gallery settings).

If the automatic update does not find new versions, you can try installing the firmware manually:

  1. Download the latest stable firmware for your model from the official Xiaomi website.
  2. Rename the file to update.zip and place it in the root of internal memory.
  3. Go to Settings โ†’ About Phone โ†’ System Update โ†’ Menu (three dots) โ†’ Select a firmware file.
  4. Select update.zip and confirm the installation.

After the update, check out the Gallery โ€“ recent versions of MIUI 14 (such as the Xiaomi 12T or Redmi Note 12) have seen less advertising due to community pressure.

Can you remove ads in the Xiaomi Gallery without root and ADB?
The combination of Method 1 (disable personalization) and Method 4 (install an alternative gallery) will reduce the number of banners by 70-80%. Complete removal of ads without technical manipulation is impossible - it is a restriction of MIUI firmware.
Why did the gallery reset come back a week later?
Chances are you haven't turned off the app's background activity. Go to Settings โ†’ Apps โ†’ Gallery โ†’ Battery and select Limit Background Activity. Also check if the app has been updated automatically - sometimes new versions return ads.
Is it safe to use ADB to disable ads?
Yes, if you follow the instructions and don't disable critical system services. The commands in Method 3 only block ad units without affecting the basic functionality of the phone. ADB-scripts from unreliable sources.
Which alternative gallery is best for Xiaomi?
For most users, the best choice is Simple Gallery (no ads, open source) or Google Photos (if you need cloud storage). If speed is important, try QuickPic, but note that it does not update. For professionals, A+ Gallery with RAW support is suitable.
What if after all the manipulations the advertising remained?
In this case, there are two options: Install custom firmware (for example, LineageOS or Pixel Experience), where there are no MIUI ads. Buy a phone with a pure Android (for example, Xiaomi A3 or POCO X5 Pro 5G in the EEA version). Both methods require financial or time costs, but are guaranteed to solve the problem.