Advertising in the standard Xiaomi Gallery has become one of the most annoying features of the MIUI firmware and the new HyperOS. Users of Redmi, POCO and Xiaomi flagship models regularly encounter banners, service recommendations and even video ads directly in the photo viewing interface, and advertising blocks appear not only in the main menu, but also when opening individual shots, which makes using the application extremely uncomfortable.
In this article, weโll look at all the current ways to disable ads, from official settings to hidden developer settings. Itโs important to understand that Xiaomi is constantly updating its ad-show mechanisms, so some methods may stop working after major firmware updates. Weโve tested instructions on the latest versions of MIUI 14 and HyperOS 1.0 (2026), but if your smartphone is running on an older build, check the compatibility of the methods in the comments below.
Warning: some solutions require superuser rights or third-party apps to be installed. If youโre not prepared for this manipulation, focus on the first three methods, which work without additional tools. Also remember that disabling ads may affect some of the Galleryโs features, such as cloud backups or content recommendations.
Why is there an advertisement in the Xiaomi Gallery?
Embedded advertising in MIUI and HyperOS is part of Xiaomiโs business model, which allows the company to monetize its devices after sale. Even flagship models (such as Xiaomi 14 Ultra or Redmi K70 Pro) are not immune to inserts.
- ๐ฑ Regional firmware: In versions MIUI There is no advertising for China, and in global and Russian assemblies it is active by default.
- ๐ System Updates: After installing new firmware versions, advertising modules can be turned on automatically, even if you have previously disabled them.
- ๐ Xiaomi Services: Linking a Mi Account, Using Mi Cloud or GetApps Activates Personalized Advertising.
- ๐ Behavior Analytics: The system tracks which photos you view and selects โrelevantโ offers (e.g., photo printing or cloud storage).
Interestingly, in HyperOS (a new firmware from Xiaomi, released in 2026), advertising has become less intrusive, but it has not completely disappeared. Now banners are more often masquerading as โhelpful hintsโ or integrated into the Discovery section (formerly Recommendations), which makes them difficult to block by standard methods.
If you notice that the ads came after the update, itโs no coincidence Xiaomi regularly adds new ad SDKs to system apps, so even after resetting the settings, banners can come back in a few days.
Method 1: Disabling Advertising through Gallery Settings
The easiest way is to use the built-in app options, and unfortunately, in the latest versions of MIUI and HyperOS, these settings are hidden deeper, but they still work.
- Open the Gallery app.
- Slip on the three dots in the upper right corner and select Settings.
- Scroll down to the About section (or additionally in HyperOS).
- Click on Advertising Preferences (in some versions โ Personalized Recommendations).
- Turn off the sliders: ๐ Personalized recommendations ๐ Advertising (if any) ๐ Improve recommendations based on use
Resetting settings
Clear the data
Reset the application settings
After these actions, the banners in the main menu of the Gallery should disappear, but advertising when viewing individual photos may remain, in which case move to the next method.
โ๏ธ Preparing for the Advertising Disconnection
โ ๏ธ Note: HyperOS may not have Advertising Preferences, in which case you can change your system region to India (via Settings). โ Additionally. โ Region โ Indian firmware usually has less advertising.
Method 2: Block ads via MIUI/HyperOS settings
If disabling the ads in the app itself doesn't work, try blocking them at the system level.
- Go to Settings โ Applications โ Application Management.
- Find the gallery on the list and tap it.
- Select Permissions and Disable: ๐ก Internet access (this will block the download of banner ads) ๐ Location (so that the system does not select geo-targeted advertising)
Clear the cache
Clear the data
We also recommend you to disable personalized advertising at the Mi Account level:
- Open Settings โ Xiaomi account.
- Go to Mi Account. โ Confidentiality.
- Turn off the sliders: ๐ Personalized recommendations ๐ Usage analysis
Important: Turning off the Internet for the Gallery will block not only ads, but also cloud syncing of photos through Mi Cloud. If you use this feature, skip this step.
| Method | Efficiency | Side effects | Need root? |
|---|---|---|---|
| Disconnection in Gallery settings | โญโญโโโ | Advertising may return after update | โ No. |
| Blocking the Internet for the application | โญโญโญโโ | Cloud synchronization is not working | โ No. |
| Transition of region to India | โญโญโญโโ | Some features may be missing (e.g. Google Services) | โ No. |
| ADB-commands (see Method 4) | โญโญโญโญโ | Reset after resetting settings | โ No. |
| Removal via Magisk (root) | โญโญโญโญโญ | Risk of disrupting the system | โ Yes. |
Method 3: Using ADB to Deeply Disable Advertising
If previous methods have not worked, try disabling advertising modules through the ADB (Android Debug Bridge. This method does not require root rights, but will require a computer and a computer. USB-Instructions:
- Turn on Developer Mode on your phone: Go to Settings โ About Phone. Tap 7 times on MIUI Version (or HyperOS Assembly Number).
Settings โ Additional โ For Developers
USB debugging
ADB
Enter
adb devices
adb shell pm list packages | grep -i gallery
adb shell pm disable-user --user 0 com.miui.galleryIf the last command doesnโt work, try:
adb shell pm disable-user --user 0 com.android.gallery3dReboot the phone.
These commands disable the System Gallery, so after the reboot you will need to install an alternative app (like Google Photos or Simple Gallery).If you want to return the standard Gallery without ads, use the command:
adb shell pm enable com.miui.galleryโ ๏ธ Note: The name of the Gallery package may vary in HyperOS. To find out, use the command adb shell pm list packages. | find "gallery" (for Windows) or adb shell pm list packages | grep -i gallery macOS/Linux).
๐ก
If ADB doesnโt recognize the device, try reinstalling drivers via the Mi Flash Tool or using Wireless ADB (included in the developer settings).
Method 4: Removing Advertising Modules with Magisk (root)
If you have root rights, you can remove the advertising components from the Gallery completely.
- ๐ฑ Installed by Magisk (last version).
- ๐ Xiaomi Debloater or Universal Debloater.
- ๐ง Root Explorer app or app or MT Manager.
Step-by-step:
- Install the Xiaomi Debloater module via Magisk:
- After the reboot, open Terminal (or ADB) and execute: su pm uninstall -k --user 0 com.miui.systemAdSolution
- To remove ads from the Gallery manually: Open Root Explorer and follow the path /system/priv-app/Gallery2. Delete the.odex and.vdex files associated with the ads (e.g. ad*.odex). Reboot the device.
If after these actions the Gallery stopped running, restore deleted files from the backup or reinstall the application via APK. To do this, download the original Gallery.apk for your model from the Xiaomi Firmware Updater website.
What happens if you delete system files without backup?
Method 5: Alternative galleries without advertising
If none of these things have worked or you don't want to risk the stability of the system, the safest option is to install a side gallery.
- ๐ท Google Photos โ Automatic sorting, cloud storage (15GB free), no ads. minus: requires synchronization with your Google account.
- ๐ผ Simple Gallery Pro is open source, dark theme support, album encryption (โ300โฝ), without advertising.
- ๐ A+ Gallery - lightweight, no analytics, gestures. Free version with minimal advertising (banners only in settings).
- ๐ F-Stop Gallery โ for professionals, support RAW, Photo tagging. Free version with restrictions.
To make an alternative gallery the default app:
- Install the selected application from Google Play.
- Go to Settings โ Applications โ By default.
- Select the Gallery and specify the new app.
- Disable or freeze the standard Xiaomi Gallery through Settings โ Applications โ Application Management โ Gallery โ Disable.
If you use Google Photos, we recommend turning off automatic download on the mobile network to avoid wasting traffic. Open the application, go to Settings โ Backup and Sync โ Mobile Data Settings and select Only via Wi-Fi.
๐ก
Installing a third-party gallery is the safest way to get rid of ads, but some features (like editing photos with Xiaomi effects) will not be available.
What if the advertisements returned after the update?
Xiaomi regularly releases updates for the Gallery that can restore ad modules. If banners have reappeared, try:
- Download the old version of Gallery.apk from APKMirror (select the version for your model). Remove updates through Settings โ Apps โ Gallery โ Three dots โ Remove updates. Install the downloaded APK (allow installation from unknown sources).
- Block Updates: Open Settings โ Apps โ Gallery โ Additional. Uncheck Auto Update.
Use the patch for Magisk
- Install Disable Flag Secure (for HyperOS) or MIUI Bloater Remover.
- Reboot the phone.
If you reset your settings frequently, consider installing custom firmware (like LineageOS or Pixel Experience) where there are no default ads.