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.
Why Xiaomi Gallery Has Advertising and Can It Be Removed Forever?
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.
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:
- Open Settings โ Google โ Advertising (if the item is missing, skip the step).
- Click Remove the Advertising ID and confirm the action.
- Return to the main settings menu and go to Settings โ Special Options โ Notifications and Status bar.
- Turn off the Show Recommendations option (some versions call Advertising Notices).
- Then go to Settings โ Applications โ Application Management โ Gallery.
- 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 dataThis 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
Method 2: Reset gallery settings and clear cache
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:
- Go to Settings โ Applications โ Application Management.
- Find the Gallery app (or com.miui.gallery) and open its settings.
- Press Warehouse. โ Clear the cache.
- Then select Clear Data (this will delete all gallery settings, but not the media files themselves!).
- 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.
| Method | Efficiency | Required rights | Risks. |
|---|---|---|---|
| Disabling personalization | Remove 60-70% of advertising | No. | Advertising may return after update |
| Clearing the cache/data | Temporary effect (1โ2 weeks) | No. | Resetting user albums |
| ADB-team | Removes 90% of ads | USB debugging | May disrupt the operation of system utilities |
| Root + removal of APK | Complete removal | Root access | The 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:
- Download and install ADB Tools on your computer.
- On your smartphone, turn on Settings โ About Phone โ MIUI version (click 7 times to activate the developer mode).
- Return to Settings โ Additional โ For developers and enable USB debugging.
- 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.globalFor Chinese firmware (CN), use additional commands:
adb shell pm uninstall --user 0 com.xiaomi.midrop
adb shell pm uninstall --user 0 com.miui.analyticsAfter 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?
โ ๏ธ 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:
- Download and install MT Manager from XDA Developers.
- Open the application and provide root access.
- Go to /system/priv-app/MiuiGallery (the path may vary depending on the version of MIUI).
- Find the MiuiGallery.apk file and open it in MT Manager.
- Go to Smali and find folders: com/miui/gallery/ads/com/miui/gallery/recommend/
- Delete these folders and save the changes.
- 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.
Method 5: Replace the standard gallery with an alternative
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:
- Install the selected gallery from Google Play.
- Open any image through the file manager.
- In the pop-up window, select a new gallery and tick Always.
- 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:
- Turn off automatic gallery update: Settings โ Annexes โ gallery โ โฎ โ Turn off auto-update
- 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
- 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.