How to permanently disable ads in the Xiaomi gallery: instructions for MIUI 14 and below

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.

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.

MethodRoot is required.EfficiencyRisks.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):

  1. Open the Gallery app.
  2. Slip on the three dots in the upper right corner β†’ select Settings.
  3. Go to the Guidelines (or Recommendations in the global version).
  4. 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:

  1. 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 devices

The 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 1

Reboot 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 false

These 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:

  1. Install AppOps (Rikka) from Google Play.
  2. Open the app and give it root rights (if any) or permission to use ADB (if no root).
  3. Find the Gallery app (or com.miui.gallery) in the list.
  4. 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?
If AppOps does not show com.miui.gallery in the list, try: 1. Reinstall Gallery app via APK (download from APKMirror site). 2. Use an alternative utility - Shizuku + AppOps (requires ADB). 3. Manually add the application via ADB: adb shell am start -n com.rikka.appops/.MainActivity

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:

  1. Install Magisk Manager and get root rights (if not already done).
  2. Download and install the module Disable_MIUI_Ads (current-age MIUI 14).
  3. Activate the module in Magisk and restart the phone.
  4. After the reboot, check the gallery - the ad should disappear.

How to make a third-party gallery the default app:

  1. Install the selected gallery from Google Play.
  2. Open Settings β†’ Applications β†’ By default.
  3. Select Gallery β†’ click on the current application (Mi Gallery) and change it to the installed one.
  4. 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.

❓ Can I turn off advertising in the gallery without a computer?
Yes, but the efficiency will be lower. Use: Gallery settings (method 1); AppOps app to block permissions; Third-party gallery (e.g. Simple Gallery); Root rights will be required to remove ads completely without a PC.
❓ Why is it still showing up after you turn off the ad in the settings?
Standard settings MIUI They only block a portion of the ads. You can remove them completely. ADB-Using Magisk modules (method 4) by installing an alternative gallery (method 5). β†’ Memory. β†’ Cleaning (there may be a clause "Recommended Content").
❓ Will the gallery work without internet after the permissions are blocked?
Yes, the Xiaomi Gallery will work offline, but will lose the following features: Cloud sync with Mi Cloud; Automatic facial/object recognition (using cloud services); Download themes and stickers for editing; Local albums, viewing and basic photo editing will remain available.
❓ Can I return a standard gallery after installing a third-party gallery?
Yes, for that: Open the Settings β†’ Annexes β†’ Select Gallery and change the default app to Mi Gallery. If the standard gallery has been disabled, turn it on to Settings. β†’ Annexes β†’ Application management β†’ gallery β†’ If you have removed the system gallery through ADB or root, it can only be restored by flashing the phone.
❓ Whether it hurts. ADB-phone?
Sami on his own. ADB-The commands don't harm the device if you type them in correctly: ⚠️ A team error can result in resetting settings or system applications failure. ⚠️ Some commands (e.g. pm uninstall) remove applications irrevocably (reflashing is required to restore the application). βœ… Safe commands (e.g. pm hide) only hide elements and do not affect stability. TWRP Mi Backup).