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.
Why is Advertising in Xiaomi Gallery and Is It Legal?
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.
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:
- Open Settings β Google β Advertising
- Turn off the "Personalized Advertising" switch
- Return to the main settings and go to Settings β Memory. β Cleanup
- 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:
- Download ADB Tools and unpack it on your computer.
- Connect your smartphone to your PC and allow debugging (a request will appear on the phone screen)
- 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"
- 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:
| Annex | Advertising | Support for MIUI | Additional functions | Cons |
|---|---|---|---|---|
| Google Photo | β No. | β Complete. | Cloud storage, photo search, automatic albums | Requires a Google account, free storage restriction |
| Simple Gallery | β No (in the Pro version) | β Complete. | Hidden folders, editor, support RAW | In the free version there is advertising in the settings |
| Aves | β No. | β Complete. | Minimalist design, support for all formats | Paid (299)β½), no cloud backup |
| QuickPic | β οΈ There are banners | β Complete. | Quick work, management gestures | Source code closed, data leaks possible |
| F-Stop | β No. | β Partial | Tags, photo rating, support for plugins | A 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
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:
- Open Settings β Mi Account
- Click on the profile avatar in the upper right corner
- Select "Mi Account Settings"
- Scroll down and find the section "Personalization and Advertising"
- 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 1What 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:
- Install Magisk and get root rights
- Download the Xiaomi Debloater module (check compatibility with your version) MIUI)
- Install the module with Magisk Manager
- Reset the device
- 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 update | Resetting of advertising modules | Repeat the shutdown through ADB or account settings |
| Teams don't work. ADB (device unauthorized) | Not confirmed debugging on USB | Connect the device again and confirm the request on the smartphone screen |
| Gallery stops opening video | Removed system codecs via debloater | Restore com.miui.video modules via Magisk |
| There were some mistakes in the work. MIUI | Magisk Module Conflict | Disable 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:
- Clear cache and gallery data in Settings β Annexes
- Reinstall updates for the Gallery app in Google Play
- Reset the settings of the gallery to factory (the menu of the application has the item "Reset")