How to permanently disable advertising in the Xiaomi Gallery: instructions for MIUI and HyperOS

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.

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.

๐Ÿ“Š What kind of Xiaomi model do you have?
Redmi Note 12/13
POCO X5/X6
Xiaomi 13/14
Redmi K60/K70
Another model

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.

  1. Open the Gallery app.
  2. Slip on the three dots in the upper right corner and select Settings.
  3. Scroll down to the About section (or additionally in HyperOS).
  4. Click on Advertising Preferences (in some versions โ€“ Personalized Recommendations).
  5. 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

Done: 0 / 4

โš ๏ธ 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.

  1. Go to Settings โ†’ Applications โ†’ Application Management.
  2. Find the gallery on the list and tap it.
  3. 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:

  1. Open Settings โ†’ Xiaomi account.
  2. Go to Mi Account. โ†’ Confidentiality.
  3. 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.

MethodEfficiencySide effectsNeed 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:

  1. 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.gallery

If the last command doesnโ€™t work, try:

adb shell pm disable-user --user 0 com.android.gallery3d

Reboot 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:

  1. Install the Xiaomi Debloater module via Magisk:
  2. After the reboot, open Terminal (or ADB) and execute: su pm uninstall -k --user 0 com.miui.systemAdSolution
  3. 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?
Without a backup, you risk disrupting not only the Gallery, but other system applications such as the Camera or Settings. In the worst case, the phone may get stuck on bootloop. Always create a backup via TWRP or OrangeFox before editing system files.

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:

  1. Install the selected application from Google Play.
  2. Go to Settings โ†’ Applications โ†’ By default.
  3. Select the Gallery and specify the new app.
  4. 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:

  1. 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).
  2. 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.

โ“ Can you turn off advertising without rooting and ADB?
Yes, but the efficiency will be lower: ๐Ÿ”ง Method 1 (Gallery settings) + Method 2 (blocking the Internet). ๐Ÿ“ฑ Install Google Photos and make it the default app. ๐ŸŒ Change the firmware region to India (in the system settings). If these methods don't work, it's all that remains. ADB root.
โ“ Is it harmful to turn off advertising for the phone?
Turning off ads doesnโ€™t harm your device, but some methods have risks: ๐Ÿ”„ ADB-Commands: Can be reset after system update. ๐Ÿ›  Root/Magisk: Violation of system integrity can lead to problems with Mi Account (for example, locking the device when checking Find Device). ๐Ÿ“‰ Delete system files: Bootloop risk if you make an error. The safest way is to avoid the gallery (e.g. Google Photos).
โ“ Why there is no advertising in Chinese firmware, but there is a global one?
Xiaomi has different business models for different regions: ๐Ÿ‡จ๐Ÿ‡ณ China: Ad-free firmware but limited to Google services (no Play Market, GMS). ๐ŸŒ Global/EEA: Advertising is enabled by default, but there is support for Google Services. ๐Ÿ‡ฎ๐Ÿ‡ณ India: Minimal advertising due to local data protection laws. To switch to Chinese firmware, you need to unlock the bootloader and flash the device through Fastboot. Please note that Google Play, YouTube and other services may stop working after that.
โ“ How to check which apps show ads in the Gallery?
Use NetGuard or PCAPdroid to monitor network activity: Install PCAPdroid from Google Play. Start recording traffic. Open the Gallery and wait for the ads to appear. Stop recording and check which domains and applications are active (e.g. ad.mi.com, tracker.xiaomi.com). Block these domains through the hosts file or DNS-You can also use the App Inspector (requires root) to find hidden advertising modules in the Gallery.