Advertising in the standard Xiaomi gallery is one of the most annoying features of MIUI firmware faced by owners of Redmi, POCO and Xiaomi lineup. Even after buying a premium model like Xiaomi 13 Ultra or the budget Redmi Note 12, users are forced to watch banners at the bottom of the screen when viewing photos, advertising blocks in the album βRecommendedβ and pop-up notifications about βpopular servicesβ.
Compounding the problem, Xiaomi is actively monetizing its firmware, and with each update of MIUI, advertising integrations become more intrusive. For example, MIUI 14 has personalized banners based on the analysis of your photos, and in some regions (for example, in India), advertising in the gallery is shown even when viewing screenshots. In this article, we will analyze all the current ways to disable advertising in the Xiaomi gallery for 2026, including methods without root rights and using ADB.
Why Xiaomi Gallery Has Advertising and Can It Be Removed Forever?
Advertising in the Gallery app (or Mi Gallery in global versions) is built into the MIUI firmware layer. It appears for several reasons:
- π± Firmware monetization β Xiaomi compensates for the low price of smartphones due to advertising in system applications.
- π Regional settings β in some countries (China, India, Russia) advertising is more active due to partnerships with local services.
- π Updates MIUI β After firmware updates, advertising modules can return even if you have previously disabled them.
- π Data collection β Gallery app analyzes your photos for targeted advertising (for example, photo printing or cloud storage offers).
Can you take out ads forever? It depends on the method you choose.
| Method | Root is required. | Efficiency | Risks. | Reset after update |
|---|---|---|---|---|
| Disconnection in MIUI settings | β No. | β οΈ Partially (30-50%) | No. | β Yes. |
| ADB-team | β No. | β Tall (80-90%) | Resetting settings when incorrectly entered | β No. |
| Removal of system applications | β Yes. | β Complete (100%) | Loss of functionality, risk of "brick" | β No. |
| Third-party gallery (Google Photos, Simple Gallery) | β No. | β Complete (100%) | Loss of some MIUI features (e.g. cloud backup) | β No. |
If you are not ready to root or use ADB, the most reliable way is to install a third-party gallery, but this will not solve the problem completely: some advertising notifications may come through Xiaomi system services (for example, msa or MiuiDaemon).
β οΈ Attention: B MIUI 14 Xiaomi added protection from disabling advertising through ADB. If after completing the commands, the advertisement returns, try rolling back the version of the Gallery application through APK or use Magisk modules.
Method 1: Disabling Advertising through MIUI Settings (without root)
The easiest, but least effective, method is to use the built-in MIUI settings, which are suitable for users who donβt want to go into technical details but are willing to put up with a partial result.
The instructions are relevant for MIUI 12, 13 and 14 (including global and Chinese versions):
- Open the Gallery app.
- Slip on the three dots in the upper right corner β select Settings.
- Go to the Guidelines (or Recommendations in the global version).
- Turn off all switches: π Recommended albums π Popular services π Personalized advertising (if any)
About the programme
Annex version
You're a developer!
Additionally.
Showing ads
This method removes only a portion of the ads - banners at the bottom of the screen and some pop-up notifications. Advertising albums (e.g., "Trends" or "Popular") can stay.
π‘
If your MIUI version doesnβt have a βRecommendationsβ option, try changing the region in your phone settings to India or Europe β sometimes this reveals additional options.
Method 2: ADB-commands to completely disable advertising (without root)
A more radical method is the use of ADB (Android Debug Bridge. It allows you to disable ad modules at the system level without getting root rights. MIUI 12-14, It may require re-execution after major updates.
What you need:
- π₯οΈ Computer with Windows, macOS or Linux.
- π± USB-cable (preferably original).
- π§ Included debugging by USB smartphone.
- π¦ Utility. ADB (You can download from the official Android website).
Step-by-step:
- Turn on USB debugging: Go to Settings β About Phone. tap the MIUI version 7 times to activate Developer Mode. Return to Settings β Additional β For Developers. Activate USB debugging and confirm permission.
File transfer
ADB
adb devicesThe name of your device with the number should appear.
Enter
adb shell pm hide com.miui.gallery/miui.gallery.ad.AdActivity
adb shell pm hide com.miui.gallery/com.android.gallery3d.app.MovieActivity
adb shell settings put global hidden_api_policy 1Reboot your smartphone.
If the ad remains after the reboot, try additional commands:
adb shell settings put global captive_portal_detection_enabled 0
adb shell settings put global captive_portal_server falseThese commands disable portal verification (which is sometimes used to display ads) and block some of the system notifications.
USB debugging enabled
Installed ADB drivers on PC
The phone is connected in MTP mode
Command Prompt Opened on behalf of the Administrator
Backup of important data is made-->
β οΈ Note: On some models (e.g, POCO F5 or Redmi K60) Pm hide commands may not work due to limitations MIUI 14 In this case, try an alternative method using AppOps (described below).
Method 3: Using AppOps to block ad permissions (without root)
AppOps (Application Operations) is a hidden Android tool that allows you to manage application permissions at the system level, and it can block the galleryβs access to the Internet and notifications, which will effectively turn off ads.
Instructions:
- Install AppOps (Rikka) from Google Play.
- Open the app and give it root rights (if any) or permission to use ADB (if no root).
- Find the Gallery app (or com.miui.gallery) in the list.
- Turn off the following permissions: π INTERNET (internet) π‘ ACCESS_NETWORK_STATE (checkout) π POST_NOTIFICATIONS (notice)
Reboot the phone.
After that, the gallery will lose the ability to download banner ads from the Internet, but some features (such as cloud synchronization or object recognition in photos) will also stop working.
What if AppOps doesnβt find the Gallery?
Method 4: Remove Advertising Modules via Magisk (root required)
If you have root rights (for example, through Magisk), you can completely remove advertising components from system applications, this method gives 100% result, but requires caution - incorrect actions can lead to loss of functionality or "brick" of the device.
Step-by-step:
- Install Magisk Manager and get root rights (if not already done).
- Download and install the module Disable_MIUI_Ads (current-age MIUI 14).
- Activate the module in Magisk and restart the phone.
- After the reboot, check the gallery - the ad should disappear.
How to make a third-party gallery the default app:
- Install the selected gallery from Google Play.
- Open Settings β Applications β By default.
- Select Gallery β click on the current application (Mi Gallery) and change it to the installed one.
- Disable or freeze the standard gallery through Settings β Applications β Application Management β Gallery β Disable.
If you want to keep MIUI functionality but remove ads, you can use two galleries in parallel: standard (for editing photos) and third-party (for viewing).
Standard MIUI
Google Photo
Simple Gallery
Another (I will write in the comments)-->
What to do if the ad returns after the MIUI update
One of the most annoying things about MIUI is that it brings back ads after it updates, and that's because Xiaomi resets some of the settings when you install new firmware. Here's how to deal with it:
- π Automate. ADB-commands β create a script (such as a.bat file) and run it after each update.
- π₯ Download the Gallery version β download the old version APK (For example, with APKMirror and install it on top of the current one.
- π« Block Gallery Updates - in Settings β Annexes β gallery β Three-pointed β Turn off auto-update.
- π§ Use Magisk modules β some modules (e.g, MIUI Bloater Remover Automatically Restores Blocks After Updates.
If the ad appears as pop-up notifications, check the following system applications and disable their permissions to display notifications:
- com.xiaomi.msa.global (Xiaomi Service Framework)
- com.miui.systemAdSolution (Advertising Module)
- com.miui.analytics (Analytics)
MIUI 14 also has a new ad mechanism via MiuiDaemon, and to turn it off, follow the command:
adb shell pm disable-user --user 0 com.xiaomi.midropπ‘
After the update MIUI Advertising is back, first of all check if the settings in AppOps have dropped or if they have not flown off. ADB-Most often, the problem is solved by repeating instructions.