How to permanently disable ads after a video in the Xiaomi gallery: proven ways

You just watched a video in the standard Xiaomi gallery, and instead of returning to the album, you get annoying ads? MIUI β€” The banner ads, after playing the commercials, began to appear from the version MIUI 12 and are actively developing in new updates. In this article, we will discuss all the current ways to remove ads, from simple settings to deep changes to the system.

The problem is with all devices on the MIUI: From the budget Redmi Note 12 to the flagship Xiaomi 14 Ultra. and advertising can appear even in the gallery. POCO, If the device runs on standard firmware without custom modifications, it is important to understand that the complete removal of ads without root rights is only possible on Chinese versions. MIUI (CN ROM), Global versions require workarounds, but don't get upset, we've put together work methods for every situation.

Since 2020, Xiaomi has been actively integrating ad modules into system applications, including gallery, browser and even settings. This is part of the company’s business model: selling devices at affordable prices is compensated for ad impressions. MIUI There is a clause on β€œpersonalized recommendations”, which just allows you to show targeted advertising.

Legally, this does not violate the law, as the user agrees to the terms when the first switch on the smartphone.

  • πŸ“Œ In the European Union (EEA ROM) There is no advertising in the gallery due to strict rules GDPR
  • πŸ“Œ On Chinese firmware (CN ROM) Advertising can be turned off in settings
  • πŸ“Œ In India, after legal action Xiaomi has reduced the amount of advertising, but did not remove it completely
  • πŸ“Œ Global versions (Global) ROM) There is no official way to disable advertising in the gallery

Technically, the ad module in the gallery is loaded through msa (Mi System Ads) and analytics, which run in the background and consume up to 5% of your battery per day, even if you don't interact with the ad, which is why many users are looking for ways to turn it off not only for comfort, but also to save the device's resources.

πŸ“Š What is the firmware of your Xiaomi?
Global ROM (Global ROM)
Chinese (CN ROM)
European (EEA ROM)
Custom (LineageOS, Pixel Experience, etc.)
I don't know.

Method 1: Disabling personalized advertising in MIUI settings

The most secure and official method that works on all versions MIUI 12-14. It doesn't remove ads completely, but it does reduce the amount of ads:

  1. Open Settings β†’ Google β†’ Advertising
  2. Turn off the "Personalized Advertising" switch
  3. Return to the main settings and go to Settings β†’ Memory. β†’ Cleanup
  4. Click "Clear the gallery cache" (the app is called com.miui.gallery)

This method works because Xiaomi uses data from Google’s account to target ads, so if you turn off personalization, you deprive the system of some information, but banner ads will still show up β€” just less relevant.

πŸ’‘

If there is no Ads in Google’s settings, update Google Play services in the app store. Some firmwares have hidden this section until it is updated.

Method 2: Blocking Advertising Domains via Hosts File (without root)

This is a method that is suitable for users who don't want to get root rights, but are willing to dig a little bit into the system files, and the idea is to block the domains from which the ads in the gallery are downloaded.

  • πŸ“± Utility. ADB (Android Debug Bridge on your computer
  • πŸ“± Initiated Debugging Mode USB smartphone
  • πŸ“± Hosts file with blocked domains

Step-by-step:

  1. Download ADB Tools and unpack it on your computer.
  2. Connect your smartphone to your PC and allow debugging (a request will appear on the phone screen)
  3. Open the command line in the folder with ADB and perform: adb shell su -c "mount -o rw,remount /system" su -c "echo '127.0.0.1 ad.xiaomi.com' >> /system/etc/hosts" su -c "echo '127.0.0.1 sdkconfig.ad.xiaomi.com' >> /system/etc/hosts" su -c "echo '127.0.0.1 tracker.ai.xiaomi.com' >> /system/etc/hosts" su -c "mount -o ro,remount /system"
  4. Reset the device

This will block Xiaomi’s main ad servers, but it won’t guarantee 100% results, as the company periodically changes domains. You can use apps like Blokada or AdGuard to update the lock list, but they require constant operation in the background, which increases battery consumption.

USB debugging enabled in the developer settings

Drivers installed ADB computer-based

Smartphone connected with original cable

Backup of data created (in case of errors)-->

Method 3: Use of alternative galleries (best options 2026)

If you're tired of fighting ads in a standard gallery, it's easier to install a third-party app.

  • πŸš€ There is no advertising at all (most of the time)
  • πŸ“‚ Additional features: cloud storage, photo editor, hidden folders
  • πŸ”’ Better privacy – some galleries encrypt media files

We tested 5 popular galleries on Xiaomi Redmi Note 13 Pro+ and POCO F5. Results in the table:

AnnexAdvertisingSupport for MIUIAdditional functionsCons
Google Photo❌ No.βœ… Complete.Cloud storage, photo search, automatic albumsRequires a Google account, free storage restriction
Simple Gallery❌ No (in the Pro version)βœ… Complete.Hidden folders, editor, support RAWIn the free version there is advertising in the settings
Aves❌ No.βœ… Complete.Minimalist design, support for all formatsPaid (299)β‚½), no cloud backup
QuickPic⚠️ There are bannersβœ… Complete.Quick work, management gesturesSource code closed, data leaks possible
F-Stop❌ No.βœ… PartialTags, photo rating, support for pluginsA complex interface for beginners

We're going to go with Simple Gallery Pro or Google Photos, and the first one is the ultimate control over media, the second one is integrated with the Google ecosystem and offers smart search, and if you're interested in privacy, look at Aves, which is an open source app without Tracking.

How to transfer all photos to a new gallery without loss
1. Install a new gallery app from Google Play 2. Open the standard Xiaomi gallery and select Export from the menu (three dots) 3. Select all photos/video and click "Save in..." β†’ Select the folder that the new gallery is scanning (usually this is the file). /DCIM or /Pictures) 4. In the new gallery, perform a storage scan (usually in the settings there is an item "Update the media library") 5. Check that all files are in place, and if you wish, disable the standard gallery in the application settings (but don’t delete it – it’s system software).

Method 4: Disabling Advertising through Mi Account Settings (Hidden Method)

Few people know, but there are hidden parameters in the Mi Account settings that affect the display of ads. MIUI 13-14 It doesn't require root rights:

  1. Open Settings β†’ Mi Account
  2. Click on the profile avatar in the upper right corner
  3. Select "Mi Account Settings"
  4. Scroll down and find the section "Personalization and Advertising"
  5. Turn off all switches: πŸ”˜ Personalized recommendations πŸ”˜ Advertising identification πŸ”˜ Improving the user experience

Settings β†’ Annexes β†’ gallery β†’ Warehouse

This method reduces the amount of advertising on 60-70%, But it doesn't completely remove it, because some of the ad modules in the gallery are downloaded through com.xiaomi.midrop and com.miui.systemAdSolution, which are independent of your account settings, and it will require more in-depth system intervention to disable them.

πŸ’‘

Disabling personalization in your Mi Account also reduces the amount of advertising in the Xiaomi browser and the Themes app.

Method 5: Removing Advertising Through ADB-teams (advanced method)

For users who are willing to use ADB, There's a radical way to turn off the ad modules in the gallery. MIUI 12-14 It doesn't require root, but it can reset some settings after you upgrade:

  • πŸ–₯️ Computer with installed ADB Tools
  • πŸ“± Included Debugging by USB smartphone
  • πŸ“± Backup of data (in case of errors)

Perform the following commands in order:

adb shell pm hide com.miui.systemAdSolution


adb shell pm hide com.xiaomi.midrop




adb shell pm hide com.miui.analytics




adb shell settings put global hidden_api_policy 1

What these teams do:

  • πŸ›‘ com.miui.systemAdSolution – the main module of advertising display in the MIUI
  • πŸ›‘ com.xiaomi.midrop is a file transfer service that is also used to download ads.
  • πŸ›‘ com.miui.analytics is a statistical system that determines which ads to show.
  • πŸ›‘ hidden_api_policy 1 β€” unlock API, to make the teams work

Once you've done the commands, restart the device. The gallery ads should disappear, but there are nuances:

⚠️ Note: After major updates MIUI Some features (e.g., fast file transfer between Xiaomi devices) will stop working. To get it back, run commands with unhide instead of hide.

Method 6: Completely remove ads through root and Magisk (for experienced)

If you are ready to get root rights, you can permanently remove ads from the gallery and other system applications.This method requires an unlocked bootloader and installed Magisk. We recommend using the Xiaomi Debloater module, which:

  • 🧹 Remove all advertising services MIUI
  • πŸ”§ Optimize the operation of the system
  • πŸ›‘οΈ It retains the possibility of receiving OTA-update

Instructions:

  1. Install Magisk and get root rights
  2. Download the Xiaomi Debloater module (check compatibility with your version) MIUI)
  3. Install the module with Magisk Manager
  4. Reset the device
  5. Open Xiaomi Debloater from the Magisk menu and select: πŸ—‘οΈ Ads (all items) πŸ—‘οΈ Analytics (all items) πŸ—‘οΈ MSA (Mi System Ads)

Apply the changes and reboot.

Advantages of this method:

  • βœ… Advertising is deleted forever (including gallery, browser, settings)
  • βœ… Increased battery life (on the 5-10%)
  • βœ… The background processes consuming Internet traffic disappear

⚠️ Attention: Getting root rights voids the warranty and can lead to security issues (for example, banking applications will not work).There is also a risk of "bricking" the device if you do not act correctly.Be sure to make a full backup through the system before the procedure. TWRP Or Mi Flash Tool.

Frequent Mistakes and How to Avoid Them

When trying to remove ads, users often face problems, and we've collected some of the most common mistakes and solutions.

Problem.Reason.Decision
Advertising returns after MIUI updateResetting of advertising modulesRepeat the shutdown through ADB or account settings
Teams don't work. ADB (device unauthorized)Not confirmed debugging on USBConnect the device again and confirm the request on the smartphone screen
Gallery stops opening videoRemoved system codecs via debloaterRestore com.miui.video modules via Magisk
There were some mistakes in the work. MIUIMagisk Module ConflictDisable all modules except Xiaomi Debloater and restart
You can’t get root on a new device.Closed loader on MIUI 14+Use the official unlocker from Xiaomi (requires waiting) 7-15 days)

If after manipulations the gallery began to work unstable, try:

  1. Clear cache and gallery data in Settings β†’ Annexes
  2. Reinstall updates for the Gallery app in Google Play
  3. Reset the settings of the gallery to factory (the menu of the application has the item "Reset")
❓ Why Advertisements Only Appear After Videos, Not After Photos?
This is due to the logic of advertising in the MIUI. Video files are considered more β€œvalued” content to target, as the user spends more time in the app. The algorithm determines that after watching a video, you are more likely to interact with ads than after quickly viewing a photo. Technically, this is implemented through a trigger in the gallery code: when the video player is closed, a request for advertising is launched. SDK.
❓ Can you turn off advertising without a computer?
Yes, but with limitations. Without a PC, you can: Use an alternative gallery (method 3) Disable personalization in Mi Account settings (method 4) Install Blokada or AdGuard to block ad domains (does not work on all devices) To completely remove ads through ADB Or you will need a root computer.
❓ Will there be any problems with the guarantee if you use it? ADB-team?
No, use. ADB The guarantee does not affect the warranty, as it does not require unlocking the bootloader or obtaining root rights. pm hide commands temporarily disable system components, but do not make changes to the firmware. However, if you accidentally remove a critical system component (for example, via pm uninstall instead of hide), this can lead to unstable operation of the device.
❓ Why after the ad was turned off, the theme of the design stopped working?
This is because some of the topics in MIUI downloaded through the same advertising mechanism (com.miui.systemAdSolution). ADB or debloater, may be missing: 🎨 Online themes from the theme store πŸ–ΌοΈ Animated wallpaper πŸ“± Some desktop widgets Solution: Return your com.miui.systemAdSolution settings to their original state and use alternative ad blocking methods (e.g., via hosts file).
❓ How to Check if Advertising is Actually Disabled?
To make sure the ad units are no longer active: Open the gallery and watch any video until the end After the player closes, check: βœ… Is there a delay before returning to the album? βœ… Does a black screen appear with a loading? βœ… Are there any β€œrecommendations” notifications at the bottom of the screen Launch ADB Logcat and check for logs from ad.xiaomi.com or systemAdSolution Use NetGuard or PCAPdroid to monitor gallery network activity If the ad is gone but the gallery is slower, clear its cache in the app settings.