How to permanently disable ads in the video gallery on Xiaomi: the full guide 2026

Advertising in the standard video gallery on Xiaomi smartphones has become one of the most annoying features of MIUI firmware. Users regularly encounter banners at the bottom of the screen, pop-ups when viewing photos and even video ads between videos. The manufacturer has integrated ad units so deeply into system applications that turning them off has become a separate technical task.

In this article, weโ€™ll look at all the current ways to remove ads, from official MIUI settings to radical methods using ADB and third-party launchers. Itโ€™s important to understand that some solutions will require superuser rights or may affect device stability. Weโ€™ll also analyze why ads return after updates and how to avoid this.

The material will be useful to owners of all modern models Xiaomi, Redmi and POCO base MIUI 12โ€“14, including the flagship Xiaomi series 13/14, Budget Redmi Note 12 playful POCO F5. We will pay special attention to the differences in the interface for Chinese (CN) global (Global/EEA) firmware.

Ad integration into the standard video gallery (com.miui.gallery) is part of Xiaomiโ€™s monetization strategy, which compensates for the low cost of devices by displaying ads in system utilities. Unlike Google services, where ads can be disabled through account settings, MIUI makes this process more complicated:

  • ๐Ÿ“ฑ System level: Advertising modules are sewn into APK-Gallery file and updated with firmware.
  • ๐Ÿ”„ Dynamic loading: Some of the ads are loaded from Xiaomi servers by device ID (MIUI ID).
  • ๐Ÿ›ก๏ธ Protection from Change: When you manually remove advertising components, they are restored after a reboot or update.

Can we take down ads forever? Technically, but with reservations:

  • โœ… Partial Shutdown: Through Settings MIUI remove ~70% of ads (banners but not pop-ups).
  • โš™๏ธ Deep Deletion: Requires root rights or ADB-The team, but it may disrupt the gallery.
  • ๐Ÿ“ฒ Alternative apps: Replacing the standard gallery with Google Photos or Simple Gallery solves the problem, but strips the functionality MIUI (For example, editing videos with effects).

Important: After major MIUI updates (e.g., version 13 to version 14), ads can return even after manual removal, due to Xiaomi changing the IDs of ad modules and how they are downloaded.

๐Ÿ“Š How often do you get annoyed by ads in the Xiaomi gallery?
Always, every time you open.
Sometimes, when you watch a video.
No adverts (already disabled)
Didn't notice the commercials.
I'm not worried about it.

Method 1: Disabling personalized advertising in MIUI settings

The safest and most official method is to deactivate personalized recommendations through the settings menu, which does not require root rights and is suitable for all models, but only removes a portion of the ads (banners at the bottom of the screen and some pop-ups).

Instructions for MIUI 12-14:

  1. Open Settings โ†’ Google โ†’ Advertising (if the item is missing, skip the step).
  2. Click Remove the Advertising ID and confirm the action.
  3. Return to the main settings menu and go to Settings โ†’ Special Options โ†’ Notifications and Status bar.
  4. Turn off the Show Recommendations option (some versions call Advertising Notices).
  5. Then go to Settings โ†’ Applications โ†’ Application Management โ†’ Gallery.
  6. Press Notifications and turn off all switches.

For Chinese firmware (CN), the path may be different:

Settings โ†’ Additional โ†’ Advertising โ†’ Disable personalization


Settings โ†’ Applications โ†’ Gallery โ†’ Storage โ†’ Clear data

This method works on the Xiaomi 13 Pro, Redmi Note 11 and other global firmware models, but devices with MIUI for China may need additional shutdown via ADB (see Method 3).

โ˜‘๏ธ Preparing for the Advertising Disconnection

Done: 0 / 4

If the ads appear even after personalization is turned off, the problem may be cached data.The Xiaomi system gallery keeps the ad modules in local storage, and cleaning them sometimes helps reduce the number of impressions.

Step-by-step:

  1. Go to Settings โ†’ Applications โ†’ Application Management.
  2. Find the Gallery app (or com.miui.gallery) and open its settings.
  3. Press Warehouse. โ†’ Clear the cache.
  4. Then select Clear Data (this will delete all gallery settings, but not the media files themselves!).
  5. Reset the device.

After the reboot, check the gallery: banner ads should disappear for 1-2 weeks. However, this method does not block the dynamic download of new ads from Xiaomi servers, ADB-team).

โš ๏ธ Warning: Clearing the gallery data will reset all albums, tags and display settings.We recommend pre-exporting important albums to Google Photos or your computer.

MethodEfficiencyRequired rightsRisks.
Disabling personalizationRemove 60-70% of advertisingNo.Advertising may return after update
Clearing the cache/dataTemporary effect (1โ€“2 weeks)No.Resetting user albums
ADB-teamRemoves 90% of adsUSB debuggingMay disrupt the operation of system utilities
Root + removal of APKComplete removalRoot accessThe device's risk "brick"

Method 3: Disabling Advertising through ADB (without root)

For users who are ready for more radical measures, there is a method to disable ads via Android Debug Bridge (ADB), which does not require root rights, but will require connecting the smartphone to the computer and enabling debugging mode.

Advantages of the method:

  • ๐Ÿ”ง Removes advertising at the system level.
  • ๐Ÿ”„ It works even after the updates. MIUI (unless you reset the settings).
  • ๐Ÿ“ฑ Suitable for all models Xiaomi/Redmi/POCO.

Instructions:

  1. Download and install ADB Tools on your computer.
  2. On your smartphone, turn on Settings โ†’ About Phone โ†’ MIUI version (click 7 times to activate the developer mode).
  3. Return to Settings โ†’ Additional โ†’ For developers and enable USB debugging.
  4. Connect the phone to the PC and enter in the command line (terminal):
adb shell pm disable-user --user 0 com.miui.systemAdSolution


adb shell pm disable-user --user 0 com.android.browser




adb shell pm hide com.miui.msa.global

For Chinese firmware (CN), use additional commands:

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


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

After you execute the commands, restart the device. Gallery ads should disappear, but some system features (such as Mi Drop for file transfer) may stop working.

What to do if ADB is not working?
If commands return the error "device unauthorized", check the phone's debugging permission (pop-up when connecting). If the device is not detected, install the Xiaomi USB Drivers drivers from the official website.

โš ๏ธ Attention: On some firmware MIUI 14 pm disable-user commands can be blocked by Xiaomi antivirus, in which case you need to temporarily disable Security. โ†’ Real-time scanning.

Method 4: Removing Advertising Using Root Rights

If you are ready to get root access (for example, through Magisk), you can completely remove advertising modules from the system APK. This method gives 100% result, but requires technical skills and risks canceling the warranty.

Tools required:

  • ๐Ÿ“ฑ Smartphone with unlocked bootloader (bootloader).
  • ๐Ÿ”ง Installed by Magisk or other root manager.
  • ๐Ÿ’ป Programme MT Manager or Root Explorer.

Step-by-step:

  1. Download and install MT Manager from XDA Developers.
  2. Open the application and provide root access.
  3. Go to /system/priv-app/MiuiGallery (the path may vary depending on the version of MIUI).
  4. Find the MiuiGallery.apk file and open it in MT Manager.
  5. Go to Smali and find folders: com/miui/gallery/ads/com/miui/gallery/recommend/
  6. Delete these folders and save the changes.
  7. Reset the device.

After removing the ad modules, the gallery will cease to update through system updates. To avoid errors, it is recommended to block the application update through Magisk (Disable Flag Secure module).

๐Ÿ’ก

Before editing system APKs, back up /system/priv-app/MiuiGallery via TWRP or Magisk to help restore the gallery in case of a crash.

If previous methods seem too complicated, the easiest way to get rid of ads is to use a third-party gallery.This doesn't require root rights or ADB, but strips some of the features of MIUI (like the built-in video editor with Xiaomi effects).

The best alternatives to the standard gallery:

  • ๐Ÿ“ท Google Photos: Full cloud sync, AI search, but no video editing.
  • ๐Ÿ–ผ๏ธ Simple Gallery Pro: Open source, no ads, tag support for albums.
  • ๐ŸŽฌ Gallery by Cheetah Mobile: Lightweight, with built-in video player (but requires analytics to be turned off).
  • ๐Ÿ”’ A+ Gallery: Album encryption, support RAW-file.

How to make an alternative gallery application by default:

  1. Install the selected gallery from Google Play.
  2. Open any image through the file manager.
  3. In the pop-up window, select a new gallery and tick Always.
  4. Go to Settings โ†’ Applications โ†’ By default and assign a new gallery for all media types.

Cons of this method:

  • There is no integration with MIUI system functions (e.g., quick photo sharing via Mi Share).
  • Some galleries (like Google Photos) consume more battery due to background synchronization.

๐Ÿ’ก

Replacing the gallery with an alternative is the safest way, but only if you donโ€™t use MIUIโ€™s unique features (e.g. editing effects videos or face albums).

What to do if the ad returns after the MIUI update

One of the most common problems is the return of ads after installing a new MIUI update. This is because Xiaomi restores ad modules through the system APK or server settings.

Steps to block ads after the update:

  1. Turn off automatic gallery update: Settings โ†’ Annexes โ†’ gallery โ†’ โ‹ฎ โ†’ Turn off auto-update
  2. Block ad domains via hosts file (root or Magisk required): 127.0.0.1 ad.mi.com 127.0.0.1 globalapi.ad.xiaomi.com 127.0.0.1 sdkconfig.ad.xiaomi.com
  3. Use the Magisk Disable MIUI Ads module (available in the Magisk repository).

If the ad appears after the upgrade to MIUI 14, check out the following:

  • ๐Ÿ” In the settings Safety โ†’ Autostart disable Autostart for com.miui.systemAdSolution.
  • ๐Ÿ“ต B Settings โ†’ Accounts. โ†’ Mi Account. โ†’ Synchronization Disable Personalized Recommendations.
  • ๐Ÿ”„ If you are using Magisk, upgrade Universal SafetyNet Fix and Zygisk.
Can I turn off advertising without a computer?
Yes, but the efficiency will be lower. Use the combination: Turn off personalization in settings (Method 1). Clear the gallery cache (Method 2). Install an alternative gallery (Method 5). This will remove ~80% of the ads, but does not guarantee complete healing.
Why did the ads reappear after the reset?
When reset to factory settings, all system settings are restored APK, To avoid this, make a backup copy before resetting via TWRP. After the reset, immediately perform ADB-Use Magisk to block gallery updates.
Is it safe to remove ads through root?
Removing advertising modules through root is safe if: You use proven tools (MT Manager, Magisk). You back up the system partition. You do not delete other system files (only /ads/ and /recommend/ folders). Risks: Gallery may stop opening some formats (for example, HEIF). After updating MIUI, you will need to repeat the procedure.
Is there an official way to complain about ads in Xiaomi?
Yes, you can send feedback through: Settings โ†’ Review (Advertising Complaints are available in some regions) Official Xiaomi Community Forum (section) MIUI Xiaomi social networks (e.g. Twitter or Facebook) are not effective, however, as Xiaomi rarely removes ads for individual complaints.
Which Xiaomi models are most affected by advertising?
The most aggressive advertising is observed on: Budget models: Redmi 9/10/Note 11, POCO M4/M5 (Global firmware). Chinese versions: All devices on MIUI CN (for example, Xiaomi 12S Ultra). Old flagships: Xiaomi Mi 10/11 after upgrading to MIUI 13/14. New flagships (Xiaomi 13/14, Redmi K60) less advertising due to the optimization of firmware for the premium segment.