How to permanently remove recommendations in the gallery Xiaomi: 5 working ways

The banner ads and unnecessary recommendations in the standard Xiaomi gallery annoy many users. Instead of quickly viewing photos, you are forced to flip through offers to buy cloud storage, app ads or โ€œusefulโ€ tips from MIUI. Worst of all, these elements appear even in offline mode โ€“ the system downloads them in advance and demonstrates them every time the album opens.

Compounding the problem, Xiaomi is actively integrating ad mechanisms into system applications, including gallery. According to research by XDA Developers, the latest versions of MIUI 14 and HyperOS have seen a 30 percent increase in the number of embedded ads compared to 2022. But the good news is that all of these recommendations can be disabled in at least five different ways, from simple tweaks to radical measures like removing system components.

In this guide, we will analyze all the current methods, including hidden MIUI settings, editing configuration files and using ADB. Separately, we will dwell on the nuances for different versions of firmware and smartphone models - from budget Redmi to flagship Xiaomi 13 Ultra. If you are tired of intrusive banners in the gallery - read on.

The reason for the advertising and โ€œusefulโ€ hints lies in the business model of Xiaomi, which monetizes its smartphones not only through sales, but also through built-in advertising in the MIUI brand shell. Gallery is one of the most visited applications, so it is actively used for display:

  • ๐Ÿ“ข Advertising banners (applications, games, services Xiaomi)
  • ๐Ÿ’พ Offers to buy cloud storage Mi Cloud
  • ๐Ÿ” ยซUseful Photo Editing Tips (links to Mi Photo Editor)
  • ๐ŸŽ Promotional offers from partners (for example, discounts on AliExpress)

Technically, recommendations are loaded through the system service msa (Miui System Ads), which works even without an active Internet connection, the data is cached in advance and shown when you open the gallery. Interestingly, on devices for the European market (EEA), some of the ads are disabled by default due to local data protection laws, but the โ€œusefulโ€ tips remain.

๐Ÿ“Š How often do you see recommendations in the Xiaomi Gallery?
Always, every time you open.
Sometimes, once every few days.
No advertising, but there are clues.
Never seen one.

It's important to understand that the gallery recommendations are not a virus or a smartphone infection. It's a regular MIUI feature that can be deactivated. But Xiaomi doesn't make this process obvious: there's no direct "Disable Ads" switch in the settings. You'll have to use workarounds.

Method 1: Disabling personalized recommendations in MIUI settings

The easiest and safest way to do this is to deactivate personalization through the settings menu, which won't eliminate ads completely, but it will significantly reduce the number of impressions. MIUI 12-14 and HyperOS:

  1. Open the Settings app.
  2. Go to the About Phone (or About Device) section.
  3. Switch to All settings (or additional settings).
  4. Choose Personalization and Recommendations (on some firmwares โ€“ MIUI Recommendations).
  5. Turn off all the switches on this menu, especially: ๐Ÿ”„ ยซPersonalized recommendationsยป ๐Ÿ“Š ยซAnalysis of application useยป ๐Ÿ” ยซShow recommendations in the gallery (if any)

After that, restart your smartphone. The effect will not be noticeable immediately - the system can show cached banners for another 1-2 days. If the recommendations remain, move to the next method.

โ˜‘๏ธ Preparing for the Advertising Disconnection

Done: 0 / 4

โš ๏ธ Note: Some firmware for the Chinese market (China) ROM) The item "Personalization and recommendations" may not be available, in which case use Method 3 or Method 5.

If you've got recommendations after you've updated the Gallery app or changed the firmware, resetting it will help, and it won't delete your photos, but it will return all the app settings to default.

  1. Open Settings โ†’ Applications โ†’ Application Management.
  2. Find the Gallery (or Mi Gallery) in the list and tap it.
  3. Choose a storage (or memory)
  4. Click Erase Data and Clear Cache.
  5. Confirm the action and restart the phone.

Instructions:

  1. Download and install ADB Tools on your computer.
  2. Turn on the smartphone Developer Mode (7 times tap the build number in Settings โ†’ About the phone).
  3. Activate Debugging by USB in the Developer Menu.
  4. Connect your phone to your PC and execute at the command line: adb shell pm disable-user --user 0 com.miui.msa.global
  5. Reset the device.

If the recommendations remain after the reboot, execute an additional command to disable the second advertising module:

adb shell pm disable-user --user 0 com.xiaomi.midrop

๐Ÿ’ก

Before using ADB, check if the "Allow debugging over USB" option is enabled on your smartphone in the developer settings. Without this, commands will not work.

โš ๏ธ Note: On some firmware, disabling msa may cause Mi Cloud malfunctions and contact synchronization. If you notice problems, return the service with the command: adb shell pm enable com.miui.msa.global

Method 4: Remove system APKs (root only)

If you have root rights, you can completely delete the files that are responsible for displaying ads, and this method gives 100% results, but you need to be careful - wrong actions can lead to system failure.

List of files to delete (use Root Explorer or ADB with superuser rights):

  • ๐Ÿ“ /system/priv-app/Msa (folder)
  • ๐Ÿ“„ /system/priv-app/MiuiSystemAdSolution.apk
  • ๐Ÿ“„ /system/app/MiuiDaemon.apk
  • ๐Ÿ“„ /data/app/com.miui.msa.global-*/base.apk

Before deleting, back up the folders! For example, through the command:

adb backup -f msa_backup.ab -apk -obb -shared com.miui.msa.global
What happens if you delete the wrong file?
Removing critical system APKs (such as framework-res.apk) will result in a bootloop, where the phone will stop turning on and will be stuck on the Xiaomi logo.

Once deleted, clear the gallery cache and restart the device. There will be no more ads, but remember: the next MIUI update, deleted files can be restored.

If all the previous methods didnโ€™t help or seem too complicated, install a third-party gallery. This is a radical, but the easiest solution.

AnnexPlusesCons
Google PhotoAutomatic sorting, cloud storage, no advertisingRequires a Google account, high battery load
Simple GalleryEasy, no advertising, support for dark topicsNo cloud synchronization
A+ GalleryMinimalist design, gesture supportPaid version for advanced functions

To make a third-party gallery the default app:

  1. Install the selected application from Google Play.
  2. Open Settings โ†’ Applications โ†’ By default.
  3. Slip on the item Gallery and select a new application.

๐Ÿ’ก

Installing an alternative gallery not only removes ads, but often improves performance โ€“ third-party apps are optimized better than the system Mi Gallery.

If you still want to return the standard gallery, just repeat the steps and choose Mi Gallery as the default app.

Frequent problems and solutions

When you turn off recommendations, users experience common errors, and here are the most common ways to fix them:

  • ๐Ÿ”„ Advertising returns after update MIUI Solution: Repeat Method 3 (disconnecting via ADB) Or install an ad blocker like Blokada.
  • ๐Ÿ“ต The debugging doesn't work. USB Solution: Install official Xiaomi drivers from mi.com and reconnect the device.
  • โš ๏ธ After removal APK Phone does not turn on Solution: Load to Fastboot (Power button) + Volume down) and reflash the device via the Mi Flash Tool.

If none of the methods worked, check if your smartphone has custom firmware (like LineageOS or Pixel Experience), in which case the ads can be built into the firmware itself, and removing it will require manual editing of files in /system.

Can I turn off recommendations without root and ADB?
Yes, but not completely. Methods 1 and 2 (disable personalization and reset gallery) don't require root or ADB, but only remove a portion of the adverts. 100% of the result requires at least ADB (Method 3).
Why did the MIUI update come back?
Xiaomi regularly updates its ad modules through OTA updates. If you have disabled ads through ADB, after the firmware update, the msa service can be activated again, the solution is to repeat the disabling command or use Magisk to block the module.
Is it safe to remove system APKs without rooting?
No! Deleting system files without root permissions will crash, and the best you can do without root is to disable applications through ADB, but not physically delete them.
How to return a standard gallery after installing an alternative?
Go to Settings โ†’ Applications โ†’ Default โ†’ Gallery and select Mi Gallery. If there is no option, clear the data of the alternative application or reinstall it.
Does this work for Poco and Black Shark?
Yes, all methods are relevant for MIUI or HyperOS devices, including Poco, Black Shark and Redmi, except for the China ROM models, where some menu items may not be available.