How to permanently remove ads after watching a video in the Xiaomi gallery

You just watched a video in the standard Xiaomi gallery, and instead of returning to the album, there is an annoying ad? This problem is familiar to millions of smartphone users on MIUI, the brand's brand shell. Advertising in the gallery after playing the video not only interferes with, but also collects data about your preferences for targeted ads, even if you turned off personalization in the settings.

In this article, weโ€™ll look at all the current ways to remove ads, from standard MIUI settings to hidden features that arenโ€™t mentioned in the official documentation. Importantly, the methods work on shell versions from MIUI 12 to MIUI 14 (including HyperOS), but the effectiveness may vary depending on the firmware region. If you use a smartphone with a global version of the software (MI in the model name), some menu items may be called differently โ€” weโ€™ll specify alternative paths.

So, we warn you beforehand, the manufacturer is actively blocking bypasses through updates, so after the system is upgraded, the ads may come back, so you have to repeat the procedure or combine several ways, and let's start with the simplest, and gradually move on to radical measures.

The reason is because Xiaomi has monetized its services, and it has integrated the MSA (Mi System Ads) ad module directly into its system applications, including the gallery.

  • ๐Ÿ“Š Analyzes your activity: what videos you watch, how long, which albums you open more often.
  • ๐ŸŽฏ Selects ads based on the data collected (even if you have disabled โ€œpersonalized adsโ€ in your account settings).
  • ๐Ÿ”„ Updated via Google Play Services or system updates, so blocking through hosts often stops working.
  • ๐Ÿ’ฐ Xiaomi brings millions of dollars annually โ€” according to the companyโ€™s reports, up to 30% of smartphone profits are formed due to advertising in services.

It's important to understand that post-video ads are not a bug, they're a feature. In Chinese firmware (CN), they can be disabled through hidden settings, whereas in global (MI/EU), the manufacturer specifically limits these capabilities. Moreover, with the release of MIUI 14 and HyperOS, advertising mechanisms have become even more aggressive: they can now show banners even when viewing photos on the album "Favorites".

๐Ÿ“Š How often do you encounter ads in the Xiaomi Gallery?
All the time, after every video.
Sometimes, 1-2 times a day.
There is no advertising, but I am afraid that it will appear.
I have a different brand of phone.

Method 1: Disabling personalized advertising in MIUI settings

The first and most obvious step is to deactivate targeted ads in your system settings, which will not remove banners completely, but will reduce their frequency and aggressiveness.

Instructions:

  1. Open Settings โ†’ Google โ†’ Advertising.
  2. Click Reset Ad ID (this will reset your profile for targeting).
  3. Activate the switch to Turn off personalized advertising.
  4. Return to the main settings menu and go to Memory โ†’ Cleanup (or Applications โ†’ Manage applications in new versions).
  5. Find the Gallery app, open its settings and click Clear Cache and Clear Data.

After this action, the ads may disappear for 1-2 days, but then return, because Xiaomi ignores Google's settings and uses its own data collection mechanism through the Mi Account, and you need to block it:

  • ๐Ÿ”ง Go to Settings โ†’ Xiaomi account โ†’ Mi Account โ†’ Privacy.
  • ๐Ÿšซ Disable items Personalized recommendations and usage analytics.
  • ๐Ÿ”„ Sign out of your Mi Account and re-enter (this will reset the cache of services).

๐Ÿ’ก

If the gallery is slower after cleaning the cache, restart the phone and the system will automatically restore the thumbnails of the albums within 5-10 minutes.

Method 2: Blocking Ads through Hidden MIUI Settings (without root)

MIUI has a Hidden Settings hidden menu where you can turn off the ad modules, which works on most devices, but the path to the menu may be different.

For devices with MIUI 12-13:

Settings โ†’ About Phone โ†’ MIUI version (shap 7 times in a row until the message โ€œYou became a developerโ€ appears)


Settings โ†’ Additional โ†’ Special features โ†’ Hidden Settings โ†’ Ad Services




Turn off all switches in this section.

For MIUI 14/HyperOS, the path is different.

Settings โ†’ Applications โ†’ Application Management โ†’ Three points (menu) โ†’ Show system


Find "MSA" (Mi System Ads) โ†’ Disable and clean the cache




Find "Analytics" โ†’ Disconnect and clean the cache

If there is no Hidden Settings option, try an alternative method via ADB (no superuser rights):

  1. Install ADB Tools on your PC.
  2. Connect your phone via USB, activate debugging via USB in the developer settings.
  3. Enter in the command line: adb shell pm uninstall --user 0 com.miui.systemAdSolution

USB debugging enabled in the developer settings

Installed drivers Xiaomi on PC

Downloaded and unpacked by ADB Tools

The phone is connected in the file transfer mode (MTP).

-->

โš ๏ธ Attention: After update MIUI To keep the lock on working, create a task in Automation (Xiaomi's automation app) with the team ADB, which will be performed after each switching on the phone.

Method 3: Use of alternative galleries (with MIUI functions retained)

If standard methods don't work, the most reliable option is to install a third-party gallery, but here's the caveat: most alternative applications don't support:

  • ๐Ÿ–ผ๏ธ Transition animations (the effect of "unfolding" photos, as in the MIUI).
  • ๐Ÿ” Search by content (object recognition in the photo).
  • ๐ŸŽฅ Video editor with overlay of music and effects.
  • ๐Ÿ“ Cloud Albums (Sync with Mi Cloud).

We tested 10 popular galleries and selected the ones that are as close to the functionality of Xiaomi as possible:

AnnexAnimation supportVideo editorCloud synchronizationAdvertising
Google PhotoโŒ No.โœ… Yeah (basic)โœ… Yes, Google Drive)โŒ No.
Simple Galleryโœ… Yes (customizable)โŒ No.โŒ No.โŒ No (Pro version)
A+ Galleryโœ… Yeah (seems like) MIUI)โœ… Yes (extended)โŒ No.โŒ No.
QuickPicโŒ No.โŒ No.โŒ No.โœ… Available (in the free version)

Our choice is A+ Gallery, which is an app that replicates MIUI design, supports gestures and animations, and has a built-in video editor to completely replace the standard gallery:

  1. Install A+ Gallery from Google Play.
  2. Go to Settings โ†’ Applications โ†’ By default โ†’ Gallery.
  3. Select A+ Gallery as the default app.
  4. Open the standard Xiaomi gallery, go to its settings and turn off auto-start.
How to get back a standard Xiaomi gallery if something goes wrong?
If system functions stop working after the standard gallery autorun is disabled (e.g., screenshots are not saved), follow: 1. Go to Settings โ†’ Applications โ†’ Application Management โ†’ Gallery. 2. Click Reset (this will return all default permissions). 3. Reboot your phone. After that, the system gallery will be active again, but the ads can come back.

Method 4: Blocking Advertising via DNS (for advanced users)

This is a method that is suitable for those who are willing to sacrifice Internet speed for the sake of no advertising, and we will redirect queries to Xiaomi ad servers to the black hole through Private DNS.

Instructions:

  1. Go to Settings โ†’ Connections and Sharing โ†’ Private DNS.
  2. Select the Private DNS Host Name and enter one of the addresses: dns.adguard.com or one.one.one.one.one
  3. Save the settings and restart the phone.

For more aggressive blocking, use AdGuard Home on your router or the Blokada app (no rooting permissions required) to filter network-level traffic and block:

  • ๐Ÿ“ต Advertising banners in the gallery and other system applications.
  • ๐Ÿ”— Tracking pixels that collect data about your activity.
  • ๐Ÿ“ฑ Push notifications from Mi Video, Mi Browser and other Xiaomi services.

โš ๏ธ Attention: Use of third-party DNS It may lead to problems with:

  • ๐Ÿ”„ Update system applications (they may stop loading).
  • ๐ŸŽฎ Online Games (possible lags due to traffic redirection).
  • ๐Ÿ“บ Streaming video (some services block access when using the service) VPN/DNS).

๐Ÿ’ก

Private DNS blocks network-level advertising, but does not affect Xiaomi system notifications.To completely remove banners, combine this method with disabling MSA via ADB.

Method 5: Radical measures โ€“ removing system applications (requires unlocking the bootloader)

If you're willing to go to extreme lengths, you can completely remove the advertising modules from the firmware.

  • ๐Ÿ”“ Unlocked bootloader (bootloader).
  • ๐Ÿ› ๏ธ Superuser rights (root).
  • ๐Ÿ“ฑ Backup of data (procedure may result in resetting).

Step-by-step:

  1. Install Magisk and get root access.
  2. Download App Systemizer or Titanium Backup from XDA Developers.
  3. Find and remove the following packages: com.miui.systemAdSolution com.xiaomi.midrop com.miui.video com.android.browser (if you don't use Mi Browser)
  4. Reboot your phone in Recovery Mode and do wipe cache.

โš ๏ธ Note: Removal of system applications may result in:

  • ๐Ÿšจ Stopping services (for example, stop working Mi Cloud or Quick Share).
  • ๐Ÿ”„ Cyclical reboot (bootloop) if critical components are removed.
  • ๐Ÿ“ต Loss of warranty (unlocking the bootloader will void the official Xiaomi warranty).

The alternative is to freeze unnecessary apps through Magisk or Lucky Patcher, which is less risky but requires regular updates to the frozen packet list after system updates.

What to do if the ad returns after the MIUI update

Xiaomi regularly releases patches that restore ad modules. If banners reappear after the update, follow the following steps:

  1. Check MSA version: Settings โ†’ Applications โ†’ Application management โ†’ Three points โ†’ Show system โ†’ MSA If the version has changed (for example, from 4.5.6 to 4.7.2), then the module has been updated through Google Play.
  2. Updates rolled back: Settings โ†’ Applications โ†’ MSA โ†’ Three points โ†’ Remove updates
  3. Block Automatic Updates: Google Play โ†’ Menu โ†’ Settings โ†’ Auto-Update Apps โ†’ Never
  4. Re-disconnection via ADB: adb shell pm uninstall --user 0 com.miui.systemAdSolution

If neither method works, there are two options:

  • ๐Ÿ”„ Reverse to the previous version MIUI (via Fastboot or Recovery).
  • ๐Ÿ“ฑ Install custom firmware (such as LineageOS or Pixel Experience) where there are no built-in ads.

๐Ÿ’ก

After each major MIUI update (for example, from 13 to 14), the ad mechanisms become more aggressive. If you are not ready to fight them all the time, consider switching to a smartphone of a different brand or custom firmware.

โ“ Why Ads Are Coming Even After Personalization Is Disabled?
Xiaomi uses its own data collection mechanism (MSA), which is independent of Googleโ€™s settings. Even if you have disabled personalized ads in your Mi Account, the system modules continue to analyze your activity locally. To completely stop collecting data, you need to block com.miui.systemAdSolution through ADB or root.
โ“ Can you remove advertising without root rights?
Yes, but temporarily. The most effective methods without root are: disabling MSA via ADB (runs until the next update); using Private DNS (blocks some of the ads at the network level); installing an alternative gallery (like A+ Gallery); however, without superuser rights, Xiaomi will sooner or later restore the ad modules through updates.
โ“ Why is it after removal? MSA Screenshots stopped working?
The com.miui.systemAdSolution app is linked to MIUI system services, including screenshot processing and screen recording. If screenshots are no longer saved after it is removed: Install the MSA back via adb shell cmd package install-existing com.miui.systemAdSolution. Use a third-party screenshot app (e.g. Screenshot Easy). Reset the gallery settings to Settings โ†’ Apps โ†’ Gallery โ†’ Storage Reset โ†’
โ“ How to check if my gallery collects viewing data?
To do this: Install Packet Capture. Start recording network activity. Open the gallery and watch the video. Stop recording and check for domain requests: api.mi.com ad.mi.com data.mistat.xiaomi.com If you have any requests, your activity is tracked. Block these domains via Private DNS or firewall.
โ“ Is there a Xiaomi smartphone without advertising in the gallery?
Officially, no, but there are exceptions: ๐Ÿ“ฑ Smartphones for the European market (EEA In the firmware name) have less advertising due to laws GDPR. ๐ŸŒ Devices with Chinese firmware (CN) Allows you to disable advertising through hidden settings. ๐Ÿ›ก๏ธ Xiaomi Pro models (e.g. Mi 11 Pro, 12S Ultra) have a โ€œcleanโ€ version MIUI No advertising inserts. Before buying, check the firmware version of the IMEI Official check-up site of Xiaomi.