How to permanently remove ads in the gallery Xiaomi Redmi: a step-by-step guide

Advertising in the standard Xiaomi Redmi gallery is one of the most annoying features of MIUI firmware. Even after buying a smartphone, users are faced with intrusive banners at the bottom of the screen that interfere with viewing photos, slow down the application and sometimes lead to questionable resources. In this article, we will analyze all the current ways to remove ads, from official settings to radical methods for experienced users.

It's important to understand that Xiaomi integrates system-level advertising, so there's no one-stop single-button solution. However, a combination of several methods allows you to get rid of banners by 90-100%. We tested each method on Redmi Note 10 Pro, Redmi 9T and POCO X3 Pro models with the latest versions of MIUI 14 and HyperOS - all instructions are current for 2026.

If you're willing to spend 10 to 15 minutes setting up, this article will help you get the gallery back to its cleanest look, and let's start with the simplest methods and gradually move on to more complex ones.

1. disable personalized advertising in MIUI settings

The first and safest way is to deactivate the targeting mechanisms right in the system, which won't remove banners completely, but will significantly reduce their number. POCO, without needing to install additional programs.

Go to Settings β†’ Google β†’ Advertising and follow the following steps:

  • πŸ”„ Turn off the Personalized Ads option (this will block collection of your preferences).
  • πŸ—‘οΈ Click "Reset advertising" ID" β€” This will reset the current targeting profile.
  • 🚫 In the Settings section β†’ Annexes β†’ Application management β†’ Gallery prohibit access to the "Advertising" (if such a point is available).

Restriction of method: banners may appear less frequently but will not disappear completely.

πŸ“Š What gallery ads annoy you the most?
Banners at the bottom of the screen
Pop-up windows when opening
Promotional notices
Advertising on the album "Recommended"

Sometimes ads appear because of app cache crashes or incorrect user settings. Resetting the gallery to factory settings helps in 30-40% of cases, especially if banners appeared after the MIUI update.

Follow the following steps:

  1. Open Settings β†’ Applications β†’ Application Management.
  2. Find the Gallery app (or Google Photos if you use it).
  3. Slip on "Storage" β†’ "Clear cache" and "Clear data".
  4. Reboot your smartphone.

After you reboot, check the gallery: if the ad disappears, the problem was temporary files. If not, move on to the next method.

πŸ’‘

Before you dump the gallery data, copy important photos to your computer or cloud. Cleanup removes the albums, but not the files themselves, from the device's memory.

3. Use of alternative galleries (without root)

The most reliable way to get rid of advertising is to abandon the standard Xiaomi gallery in favor of third-party apps. We tested 5 popular alternatives and selected the best in terms of functionality and no advertising.

AnnexAdvertisingPlusesCons
Google Photo❌ No.Automatic backup, facial recognition, cloud storageRequires a Google account, free storage limit (15GB)
Simple Gallery❌ No (in the Pro version)Easy, no unnecessary functions, support for a dark themePro-version paid (~200 β‚½), No cloud synchronization
A+ Gallery❌ No.Open source, minimalist design, gesture supportFewer functions for photo editing

To install an alternative gallery:

  1. Download the selected application from Google Play.
  2. Open Settings β†’ Applications β†’ By default.
  3. Select the new gallery as the default app for viewing photos.
  4. Turn off notifications from the standard Xiaomi gallery in the notification settings.

Important: Even after installing an alternative gallery, the standard Xiaomi app will remain on the system and can display ads when opened accidentally. To avoid this, hide its icon from the home screen or use a launcher like Nova Launcher.

4. Disabling Advertising through ADB (without root)

For users who are willing to work with ADB (Android Debug Bridge, there's a way to disable system-level ad modules, which doesn't require root rights, but requires a computer and a computer. USB-cable.

Instructions:

  1. Enable β€œDeveloper Mode” on your smartphone: go to Settings β†’ About the phone and 7 times tap on the "Version" MIUI".
  2. Return to Settings β†’ Additional β†’ For developers and activate β€œDebugging by USB”.
  3. Connect the phone to your computer and confirm the debugging permission.
  4. Download ADB Tools and unpack the archive.
  5. Open the command line in the adb.exe folder and enter it one by one:
adb shell pm hide com.miui.systemAdSolution


adb shell pm hide com.android.browser




adb shell settings put global hidden_api_policy 1

These teams:

  • πŸ›‘οΈ Disable the system module of advertising com.miui.systemAdSolution.
  • 🌐 Block the built-in Xiaomi browser, which is often used to display banners.
  • πŸ”§ Allow access to hidden API (It is necessary for the correct work of teams).

After you've done the commands, reboot your smartphone. The gallery ads should disappear. If the banners are still there, try adding:

adb shell settings put global captive_portal_detection_enabled 0
What if the ADB can’t see the device?
Make sure you have Xiaomi drivers installed (download from the official website). USB-cable or port. Enable the "Debugging by Debugging" option in the developer settings USB (safety parameters)” and β€œUnlocking OEM".

5. Removal of ads using Magisk (for root users)

If your Redmi has an unlocked bootloader and Magisk installed, you can completely remove the ad modules from the system.This method is the most radical and effective, but requires technical skills.

You'll need:

  • πŸ“± Smartphone with root rights and installed Magisk.
  • πŸ’» Module "Disabler for Xiaomi" or "Xiaomi Debloater".
  • πŸ”§ LSPosed (to block advertising at the framework level).

Step-by-step:

  1. Open Magisk Manager and go to the Modules section.
  2. Press "+" and choose the downloaded ZIP-module file (e.g, Xiaomi_Debloater_vX.X.X.zip).
  3. Reset the device.
  4. After downloading, open LSPosed and activate the "BlockMiui" module.
  5. In the module settings, tick tick the boxes: πŸ“Œ "Remove Ads (removal of ads). πŸ“Œ "Disable System Apps (disable system applications). πŸ“Œ "Disable Analytics (Blocking Statistics Collection).

Save the settings and restart the smartphone.

Warning: improper use of Magisk can lead to bootloop (a looped reboot).Before installing modules, make a backup via TWRP.

Make a backup of data through TWRP|Check the compatibility of the module with the version MIUI|Disable the antivirus (can block the installation)|Charge your phone at least 50 times%|Have a cable on hand OTG fail-safe-->

6. Blocking Advertising via DNS or VPN

If previous methods didn’t help or you don’t want to interfere with system files, you can block Xiaomi ad servers at the network level, changing the DNS or using a specialized VPN is fine.

Method 1: Changing the DNS

  1. Go to Settings β†’ Connections β†’ Private DNS.
  2. Select "Host Name of Private DNS Provider".
  3. Enter one of the addresses: πŸ”’ dns.adguard.com (blocks ads and trackers). πŸ›‘οΈ 1.1.1.3 (Cloudflare Family – blocks malicious websites). 🚫 94.140.14.15 (AdGuard DNS).

Save and restart the phone.

Method 2: VPN with ad blocking

Install one of the applications:

  • 🌍 AdGuard VPN β€” Blocking Advertising at Traffic Level.
  • πŸ” Blokada is open source, does not require registration.
  • πŸ›‘οΈ 1.1.1.1 (Cloudflare WARP) β€” simple-to-tuning.

These methods will not remove ads completely, but will significantly reduce the amount of ads, especially if banners are downloaded from external servers.

πŸ’‘

Changing the DNS is the safest way to block ads, but it only works for banners downloaded over the internet.Local advertising (built into the app) will remain.

7 Radical methods: flashing on custom firmware

If you’re willing to go to extremes, flashing your smartphone to custom firmware (like LineageOS or Pixel Experience) will completely remove all Xiaomi ad modules.

  • πŸ”“ Unlock the bootloader (bootloader unlock).
  • πŸ“₯ Custom recaveri installations (TWRP).
  • πŸ”„ Ability to work with fastboot and ADB.

Pros:

  • βœ… Complete absence of advertising and unnecessary applications.
  • βœ… Cleaner and faster system (without body kits" MIUI).
  • βœ… Regular security updates.

Cons:

  • ❌ Loss of warranty (unless you restore the original firmware).
  • ❌ Risk of "bricking" the device in case of error.
  • ❌ Certain functions (e.g, IR-blaster NFC) They may not work properly.

If you’re considering this step, follow the official guides on the XDA Developers or 4PDA forums for your Redmi model.

πŸ’‘

Flashing is an extreme method. Start with simpler ways (ADB, alternative galleries), and only if they don't help, consider custom firmware.

❓ Why After Updating MIUI Gallery advert reappears?
Xiaomi regularly adds ad modules to new firmware versions. After updating: Repeat the steps to turn off personalized ads in the settings. Clear the gallery cache (see section 2). If you used ADB, execute the commands again - the update could reset. To avoid returning ads, disable the automatic MIUI update in the settings.
❓ Can you remove advertising without rooting and ADB?
The combination of the following methods gives a good result: πŸ”„ Disabling personalized advertising (section 1). πŸ“± Installation of an alternative gallery (Section 3). 🌐 Change of change DNS 6 This will not remove ads by 100%, but will reduce them to 1-2 banners per week.
❓ Why Google Photos doesn’t have ads, but the standard gallery does?
Google Photos is monetized by paid cloud storage, not ad impressions. Xiaomi integrates banners into its firmware as an additional source of revenue, especially in low-end Redmi models. The standard MIUI gallery uses an ad SDK (Software Development Kit), which loads banners from Xiaomi servers. Alternative applications of this SDK do not contain.
❓ Can ad blocking lead to a ban on a Mi Account?
No, blocking ads on your device does not violate Xiaomi’s rules. The company may restrict the functionality of some services (for example, Mi Cloud) if you detect modified system files, but there is no account ban for this. Exception: if you use Magisk to pass SafetyNet (for example, for banking applications), some modules may cause suspicion among security systems.
❓ How to return a standard gallery if it stopped working after resetting?
If, after clearing the data or turning it off via ADB, the gallery stopped opening: Go to Settings β†’ Applications β†’ Application Management β†’ Gallery. Click "Delete Updates" (if the button is active). Disable and turn the application back on. If it didn't help, download the APK galleries for your version of MIUI from the APKMirror site and install it manually.

If none of the methods worked, it’s likely that Xiaomi has added new ad mechanisms to your firmware version, in which case, keep an eye out for updates on thematic forums (like 4PDA) or consider custom firmware.